-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added VU1 support! * small fixes * fixed documentation * added packet2 structs and enums * added packet2 send wrapper in libdma * fixed enums, added tte * added chain functions * added unpack modes to types * added vif related functions * removed unecessary comment * changed naming convention * changed naming convention * fixed include dependency * added packet2 * moved vu1 class from libdraw to sample * implemented packet2 in sample * refactored vu1.c to libvu * moved vif_added_bytes to packet2 * fixed flush cache bug * refactored libvu * fixed spaces * small naming fix * added channel choice in upload_program() * naming fixes + wait gif tag * small upgrade to start program * removed unecessary flush * refactored to one create() func * moved vu stuff from libvu to libpacket2 * fixed typo * -_vu_unpack_add*, refactored _vu to _helpers * comments fix * changed helpers to utils * added print(), fixed bug in add() * added offset, double buffer to open_unpack() * moved func upload_program() added "utils_" * +print_qw(), changed packet2_add() * added some warning in comment * changed offset to dest_address, fixed counting bug * refactored sample * dma wait() before send()
- Loading branch information
Showing
21 changed files
with
2,445 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# _____ ___ ____ ___ ____ | ||
# ____| | ____| | | |____| | ||
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project. | ||
#----------------------------------------------------------------------- | ||
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org | ||
# Licenced under Academic Free License version 2.0 | ||
# Review ps2sdk README & LICENSE files for further details. | ||
|
||
SAMPLE_DIR = draw/vu1 | ||
|
||
include $(PS2SDKSRC)/Defs.make | ||
include $(PS2SDKSRC)/samples/Rules.samples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# _____ ___ ____ ___ ____ | ||
# ____| | ____| | | |____| | ||
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project. | ||
#----------------------------------------------------------------------- | ||
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org | ||
# Licenced under Academic Free License version 2.0 | ||
# Review ps2sdk README & LICENSE files for further details. | ||
|
||
EE_BIN = vu1.elf | ||
EE_OBJS = micro_programs/draw_3D.o \ | ||
main.o | ||
EE_LIBS = -ldraw -lgraph -lmath3d -lpacket2 -ldma | ||
EE_DVP = dvp-as | ||
#EE_VCL = vcl | ||
|
||
all: zbyszek.c $(EE_BIN) | ||
$(EE_STRIP) --strip-all $(EE_BIN) | ||
|
||
# Original VCL tool preferred. | ||
# It can be runned on WSL, but with some tricky commands: | ||
# https://github.com/microsoft/wsl/issues/2468#issuecomment-374904520 | ||
#%.vsm: %.vcl | ||
# $(EE_VCL) $< >> $@ | ||
|
||
%.o: %.vsm | ||
$(EE_DVP) $< -o $@ | ||
|
||
zbyszek.c: | ||
bin2c zbyszek.raw zbyszek.c zbyszek | ||
|
||
clean: | ||
rm -f $(EE_BIN) $(EE_OBJS) zbyszek.c | ||
|
||
run: $(EE_BIN) | ||
ps2client execee host:$(EE_BIN) | ||
|
||
reset: | ||
ps2client reset | ||
|
||
include $(PS2SDK)/samples/Makefile.pref | ||
include $(PS2SDK)/samples/Makefile.eeglobal |
Oops, something went wrong.
f870e2d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good ;D