mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-08-11 11:52:41 -04:00
11 lines
255 B
C
11 lines
255 B
C
#include "libultra_internal.h"
|
|
#include "hardware.h"
|
|
|
|
s32 __osSpDeviceBusy() {
|
|
register u32 status = HW_REG(SP_STATUS_REG, u32);
|
|
if (status & (SP_STATUS_IO_FULL | SP_STATUS_DMA_FULL | SP_STATUS_DMA_BUSY)) {
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|