mirror of
https://github.com/zeldaret/tmc
synced 2026-09-02 02:02:30 -04:00
clang-format pass and workflow
This commit is contained in:
+6
-5
@@ -167,11 +167,12 @@
|
||||
#define DmaClear16Defvars(dmaNum, dest, size) DmaClearDefvars(dmaNum, dest, size, 16)
|
||||
#define DmaClear32Defvars(dmaNum, dest, size) DmaClearDefvars(dmaNum, dest, size, 32)
|
||||
|
||||
#define DmaWait(DmaNo) \
|
||||
{ \
|
||||
vu32 *(DmaCntp) = (vu32 *)REG_ADDR_DMA##DmaNo; \
|
||||
while (DmaCntp[2] & (DMA_ENABLE << 16)) ; \
|
||||
}
|
||||
#define DmaWait(DmaNo) \
|
||||
{ \
|
||||
vu32*(DmaCntp) = (vu32*)REG_ADDR_DMA##DmaNo; \
|
||||
while (DmaCntp[2] & (DMA_ENABLE << 16)) \
|
||||
; \
|
||||
}
|
||||
|
||||
#define IntrEnable(flags) \
|
||||
{ \
|
||||
|
||||
@@ -11,17 +11,18 @@
|
||||
#define RESET_REGS 0x80
|
||||
#define RESET_ALL 0xFF
|
||||
|
||||
#define SystemCall(x) { asm("svc " #x); }
|
||||
#define SystemCall(x) \
|
||||
{ asm("svc " #x); }
|
||||
|
||||
extern void SoundBiasReset();
|
||||
extern void SoundBiasSet();
|
||||
|
||||
#define Stop() \
|
||||
{ \
|
||||
SoundBiasReset(); \
|
||||
SystemCall(3); \
|
||||
SoundBiasSet(); \
|
||||
}
|
||||
#define Stop() \
|
||||
{ \
|
||||
SoundBiasReset(); \
|
||||
SystemCall(3); \
|
||||
SoundBiasSet(); \
|
||||
}
|
||||
|
||||
void SoftReset(u32 resetFlags);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user