diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2020-05-19 13:38:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-19 13:38:28 -0400 |
commit | 28588d4a447def7794c3bb2a8dc6bb7ed60c44e5 (patch) | |
tree | 0d390f46bea9248cbe3135c8c934510b5fc6cfec /arm9/lib/include/OS_alarm.h | |
parent | 567c5518602e9977e26cf61218f629fa149c6c35 (diff) | |
parent | 57724b2acd34b70c1cbd0f4a9c786b08c0ffef5e (diff) |
Merge branch 'master' into master
Diffstat (limited to 'arm9/lib/include/OS_alarm.h')
-rw-r--r-- | arm9/lib/include/OS_alarm.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arm9/lib/include/OS_alarm.h b/arm9/lib/include/OS_alarm.h new file mode 100644 index 00000000..6971248a --- /dev/null +++ b/arm9/lib/include/OS_alarm.h @@ -0,0 +1,27 @@ +// +// Created by red031000 on 2020-05-17. +// + +#ifndef POKEDIAMOND_OS_ALARM_H +#define POKEDIAMOND_OS_ALARM_H + +#include "types.h" +#include "OS_thread.h" + +typedef void (*OSAlarmHandler) (void *); + +struct OSiAlarm +{ + OSAlarmHandler handler; + void *arg; + + u32 tag; + OSTick fire; + OSAlarm *prev; + OSAlarm *next; + + OSTick period; + OSTick start; +}; + +#endif //POKEDIAMOND_OS_ALARM_H |