mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-28 08:24:55 -04:00
sp.c OK (#389)
* io/sp OK * Fixed function prototype * Made tharo's suggestions
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
#include "global.h"
|
||||
|
||||
#pragma GLOBAL_ASM("asm/non_matchings/boot/sp/__osSpDeviceBusy.s")
|
||||
s32 __osSpDeviceBusy(void) {
|
||||
register u32 status = HW_REG(SP_STATUS_REG, u32);
|
||||
|
||||
if (status & (SP_STATUS_DMA_BUSY | SP_STATUS_DMA_FULL | SP_STATUS_IO_FULL)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user