mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-03-13 03:17:43 +03:00
14 lines
242 B
C
14 lines
242 B
C
#include "global.h"
|
|
#include "PR/rcp.h"
|
|
#include "hardware.h"
|
|
|
|
s32 __osAiDeviceBusy(void) {
|
|
register s32 status = HW_REG(AI_STATUS_REG, u32);
|
|
|
|
if (status & AI_STATUS_AI_FULL) {
|
|
return 1;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|