summaryrefslogtreecommitdiff
path: root/src/libultra/io/ai.c
blob: b6c5516525583fe17a3e9b7be3ef3080789a7469 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "stdbool.h"
#include "PR/rcp.h"

s32 __osAiDeviceBusy(void) {
    register s32 status = IO_READ(AI_STATUS_REG);

    if (status & AI_STATUS_FIFO_FULL) {
        return true;
    } else {
        return false;
    }
}