summaryrefslogtreecommitdiff
path: root/src/sys/sys_timer.c
diff options
context:
space:
mode:
authorpetrie911 <69443847+petrie911@users.noreply.github.com>2024-04-24 23:14:49 -0500
committerGitHub <noreply@github.com>2024-04-25 01:14:49 -0300
commit0c9be776da37e754a9b9422a945bf1bc5cfd7e75 (patch)
tree645f323b60ddd6b8bd2c85adfe961003898b5190 /src/sys/sys_timer.c
parenta6b80a5825c4a9ae06223a3879c864589ff13cf1 (diff)
Cumulative docs update (#221)
* lights fix * names * remove header * so many names * format * more docs * makefile
Diffstat (limited to 'src/sys/sys_timer.c')
-rw-r--r--src/sys/sys_timer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sys/sys_timer.c b/src/sys/sys_timer.c
index 6e33932e..c3ffaa17 100644
--- a/src/sys/sys_timer.c
+++ b/src/sys/sys_timer.c
@@ -23,7 +23,7 @@ s32 Timer_CreateTask(u64 time, TimerAction action, s32* address, s32 value) {
task->action = action;
task->address = address;
task->value = value;
- return osSetTimer(&task->timer, time, 0, &gTimerTaskMsgQueue, task);
+ return osSetTimer(&task->timer, time, 0, &gTimerTaskMesgQueue, task);
}
void Timer_Increment(s32* address, s32 value) {
@@ -45,6 +45,6 @@ void Timer_Wait(u64 time) {
OSTimer timer;
OSMesg dummy;
- osSetTimer(&timer, time, 0, &gTimerWaitMsgQueue, NULL);
- osRecvMesg(&gTimerWaitMsgQueue, &dummy, OS_MESG_BLOCK);
+ osSetTimer(&timer, time, 0, &gTimerWaitMesgQueue, NULL);
+ MQ_WAIT_FOR_MESG(&gTimerWaitMesgQueue, &dummy);
}