mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-08-18 13:13:11 -04:00
14 lines
227 B
C
14 lines
227 B
C
#include "libultra_internal.h"
|
|
#include "data.h"
|
|
|
|
int __osSpDeviceBusy()
|
|
{
|
|
register u32 stat = IO_READ(SP_STATUS_REG);
|
|
|
|
if (stat & (SP_STATUS_DMA_BUSY | SP_STATUS_DMA_FULL | SP_STATUS_IO_FULL)) {
|
|
return 1;
|
|
}
|
|
|
|
return 0;
|
|
}
|