mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-08-13 17:03:47 -04:00
12 lines
235 B
C
12 lines
235 B
C
|
#include "global.h"
|
||
|
|
||
|
s32 __osSiDeviceBusy(void) {
|
||
|
register u32 status = HW_REG(SI_STATUS_REG, u32);
|
||
|
|
||
|
if (status & (SI_STATUS_DMA_BUSY | SI_STATUS_IO_READ_BUSY)) {
|
||
|
return true;
|
||
|
} else {
|
||
|
return false;
|
||
|
}
|
||
|
}
|