pokediamond/include/nitro/OS_alarm_shared.h
Michael Panzlaff 9ff579dac8 cleanup header includes and orders
Not complete, but a good start.
2021-06-24 15:57:31 +02:00

37 lines
639 B
C

/*
* NOTE:
* This file is shared between ARM9 and ARM7
* DO NOT PUT PROC SPECIFIC CODE IN HERE
* Thank You!
*/
/*
* DO NOT INCLUDE THIS FILE DIRECTLY
* Include OS_alarm.h from the specific proc's lib
*/
#ifndef POKEDIAMOND_OS_ALARM_SHARED_H
#define POKEDIAMOND_OS_ALARM_SHARED_H
#include "nitro/types.h"
#include "nitro/OS_tick_shared.h"
#include "nitro/OS_thread_shared.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_SHARED_H