| 522 | } |
| 523 | |
| 524 | BOOL SIGetResponse(s32 chan, void* data) |
| 525 | { |
| 526 | BOOL rc; |
| 527 | BOOL enabled; |
| 528 | |
| 529 | enabled = OSDisableInterrupts(); |
| 530 | SIGetResponseRaw(chan); |
| 531 | rc = InputBufferValid[chan]; |
| 532 | InputBufferValid[chan] = FALSE; |
| 533 | if (rc) |
| 534 | { |
| 535 | ((u32*)data)[0] = InputBuffer[chan][0]; |
| 536 | ((u32*)data)[1] = InputBuffer[chan][1]; |
| 537 | } |
| 538 | OSRestoreInterrupts(enabled); |
| 539 | return rc; |
| 540 | } |
| 541 | |
| 542 | static void AlarmHandler(OSAlarm* alarm, OSContext* context) |
| 543 | { |
no test coverage detected