From 2d1d54ff430e6abe17d3fc1ba9f0324b29addc80 Mon Sep 17 00:00:00 2001 From: Matias Israelson <57065102+israpps@users.noreply.github.com> Date: Thu, 5 Sep 2024 12:43:33 -0300 Subject: [PATCH] add arcade UART variant --- .github/workflows/compile.yml | 6 +++--- Makefile | 8 +++++++- embed.make | 4 ++-- iop/__precompiled/acuart_tty.irx | Bin 0 -> 6672 bytes src/main.c | 28 ++++++++++++++++++++++------ 5 files changed, 34 insertions(+), 12 deletions(-) create mode 100644 iop/__precompiled/acuart_tty.irx diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 744b01c..c56cf31 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -15,9 +15,9 @@ jobs: fail-fast: false matrix: eth: ["ETH=0", "ETH=1"] - bdmstuff: ["EXFAT=0", "EXFAT=1", "EXFAT=1 MX4SIO=1"] - ds34: ["DS34=0", "DS34=1"] - coh: ["COH=0", "COH=1"] + bdmstuff: ["EXFAT=1", "EXFAT=1 MX4SIO=1"] #"EXFAT=0", + #ds34: ["DS34=0", "DS34=1"] + coh: ["COH=1", "COH=1 ACUART=1"] #"COH=0", exclude: - bdmstuff: "EXFAT=1 MX4SIO=1" coh: "COH=1" diff --git a/Makefile b/Makefile index c8c176a..bbe79d5 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ CDVDFSV ?= 1 # ----------------------------- # .SILENT: -BIN_NAME = $(HAS_EXFAT)$(HAS_DS34)$(HAS_ETH)$(HAS_SMB)$(HAS_DVRP)$(HAS_XFROM)$(HAS_MX4SIO)$(HAS_COH)$(HAS_EESIO)$(HAS_UDPTTY)$(HAS_TTY2SIOR)$(HAS_IOP_RESET) +BIN_NAME = $(HAS_EXFAT)$(HAS_DS34)$(HAS_ETH)$(HAS_SMB)$(HAS_DVRP)$(HAS_XFROM)$(HAS_MX4SIO)$(HAS_COH)$(HAS_EESIO)$(HAS_UDPTTY)$(HAS_ACUART)$(HAS_IOP_RESET) ifeq ($(DEBUG), 0) EE_BIN = UNC-BOOT$(BIN_NAME).ELF EE_BIN_PKD = BOOT$(BIN_NAME).ELF @@ -65,6 +65,12 @@ ifeq ($(COH), 1) EE_CFLAGS += -DSUPPORT_SYSTEM_2X6 HOMEBREW_DONGLEMAN = 1 EE_OBJS += mcman_irx.o + ifeq ($(ACUART), 1) + $(info -- adding support for arcade UART) + EE_OBJS += acuart_tty_irx.o + EE_CFLAGS += -DACUART + HAS_ACUART = -ACUART + endif endif ifeq ($(XFROM),1) diff --git a/embed.make b/embed.make index 9971847..6df918b 100644 --- a/embed.make +++ b/embed.make @@ -171,8 +171,8 @@ $(EE_ASM_DIR)ps2kbd_irx.s: $(PS2SDK)/iop/irx/ps2kbd.irx | $(EE_ASM_DIR) $(EE_ASM_DIR)sior_irx.s: $(PS2SDK)/iop/irx/sior.irx | $(EE_ASM_DIR) $(BIN2S) $< $@ sior_irx -$(EE_ASM_DIR)tty2sior_irx.s:iop/__precompiled/tty2sior.irx | $(EE_ASM_DIR) - $(BIN2S) $< $@ tty2sior_irx +$(EE_ASM_DIR)acuart_tty_irx.s: iop/__precompiled/acuart_tty.irx | $(EE_ASM_DIR) + $(BIN2S) $< $@ acuart_tty_irx iop/AllowDVDV.irx: iop/AllowDVDV $(MAKE) -C $< diff --git a/iop/__precompiled/acuart_tty.irx b/iop/__precompiled/acuart_tty.irx new file mode 100644 index 0000000000000000000000000000000000000000..bf9b247e44e02fef3eff317038446095b0e3fa34 GIT binary patch literal 6672 zcmb7Je{9v&6+iFx6$%#kwmh)9I={8wZ~Im&dz$JhdC6W|&~9T15S%PA(w|C`La}{w zxR~v$R_(H;ub4vkgC#G}R{rSPS_-m+ZOtHzEM#$!Y?^7tf*R&rWQj3EH{U*=`_8wt zB8$7pm(RWDoO|xM=bm%!?c*mKH$4!EL?moMu1LaB9f(C`A`wTVPFyh(mlaYhfykbC zX*ffqO1n`YKh6*Eh3#mG$VGfhL4c}7?Q-r{)iL?a)UbhKv}KZ_3bbf)q(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