mirror of
https://github.com/zeldaret/mm.git
synced 2026-08-18 13:13:22 -04:00
29746156af
* pfsisplug OK * Remove duplicate struct * Apply suggestions from code review Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
28 lines
485 B
C
28 lines
485 B
C
#include "global.h"
|
|
|
|
s32 osContStartQuery(OSMesgQueue* mq) {
|
|
s32 ret;
|
|
|
|
__osSiGetAccess();
|
|
|
|
if (__osContLastPoll != 0) {
|
|
__osPackRequestData(0);
|
|
__osSiRawStartDma(1, &__osContPifRam);
|
|
osRecvMesg(mq, NULL, OS_MESG_BLOCK);
|
|
}
|
|
|
|
ret = __osSiRawStartDma(0, &__osContPifRam);
|
|
|
|
__osContLastPoll = 0;
|
|
|
|
__osSiRelAccess();
|
|
|
|
return ret;
|
|
}
|
|
|
|
void osContGetQuery(OSContStatus* data) {
|
|
u8 pattern;
|
|
|
|
__osContGetInitData(&pattern, data);
|
|
}
|