ApertureOS
timer_manager.h
Go to the documentation of this file.
1 #ifndef _TIMER_MANAGER_H_
2 #define _TIMER_MANAGER_H_
3 
4 #include "types.h"
5 
6 #define MAX_TIMERS 2048
7 
8 typedef void (*TickHandler)();
9 
10 void Timers_Setup ();
11 UID Timers_CreateNew(uint32_t ticks, bool periodic, TickHandler handler);
12 void Timers_Delete(UID uid);
14 
15 #endif /* end of include guard: _TIMER_MANAGER_H_ */
void(* TickHandler)()
Definition: timer_manager.h:8
uint64_t UID
Definition: types.h:8
void Timers_StartTimer(UID uid)
Definition: timer_manager.c:122
UID uid
Definition: threads.h:15
void Timers_Setup()
Definition: timer_manager.c:23
UID Timers_CreateNew(uint32_t ticks, bool periodic, TickHandler handler)
Definition: timer_manager.c:94
void Timers_Delete(UID uid)
Definition: timer_manager.c:112