Skip to content

Commit

Permalink
Merge pull request #451 from qnox32/mx4sio_v1.2
Browse files Browse the repository at this point in the history
mx4sio v1.2
  • Loading branch information
rickgaiser committed Jul 15, 2023
2 parents c52e8eb + c089dac commit f7942b1
Show file tree
Hide file tree
Showing 6 changed files with 1,137 additions and 1,207 deletions.
5 changes: 2 additions & 3 deletions iop/sio/mx4sio_bd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
# Licenced under Academic Free License version 2.0
# Review ps2sdk README & LICENSE files for further details.


IOP_INCS += -I$(PS2SDKSRC)/iop/fs/bdm/include -I$(PS2SDKSRC)/iop/system/sio2man/include

IOP_OBJS = spi_sdcard_crc7.o spi_sdcard_driver.o crc16.o ioplib.o sio2man_hook.o mx4sio.o imports.o
IOP_OBJS += spi_sdcard_crc7.o spi_sdcard_driver.o crc16.o ioplib.o sio2man_hook.o mx4sio.o imports.o

IOP_CFLAGS = -Wno-strict-aliasing
IOP_CFLAGS += -Wno-strict-aliasing

IOP_LDFLAGS = -lgcc

Expand Down
5 changes: 3 additions & 2 deletions iop/sio/mx4sio_bd/src/module_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@

#ifndef MINI_DRIVER
#include "stdio.h"
#define M_PRINTF(format, args...) printf("MX4SIO: " format, ##args)
#define M_PRINTF(format, args...) printf("MX4SIO: " format, ##args);
#else
#define M_PRINTF(format, args...) \
do { \
} while (0)
#endif


#ifdef DEBUG
#define M_DEBUG M_PRINTF
#else
Expand All @@ -20,6 +21,6 @@
} while (0)
#endif

#define U64_2XU32(val) ((u32*)val)[1], ((u32*)val)[0]
#define U64_2XU32(val) ((u32 *)val)[1], ((u32 *)val)[0]

#endif
Loading

0 comments on commit f7942b1

Please sign in to comment.