Kernel - Slight reworks to timer code
[tpg/acess2.git] / Kernel / include / timers.h
1 /*
2  * Acess2 Kernel
3  * - By John Hodge (thePowersGang)
4  *
5  * timers.h
6  * - Kernel timers
7  */
8 #ifndef _KERNEL_TIMERS_H_
9 #define _KERNEL_TIMERS_H_
10 /**
11  * \file timers.h
12  * \brief Kernel timers
13  */
14
15 typedef struct sTimer   tTimer;
16
17 /**
18  * \brief Timer callback function
19  */
20 typedef void (tTimerCallback)(void *);
21
22 /**
23  * \brief Creates a one-shot timer
24  * \param Delta Period of the timer
25  * \param Callback      Function to call each time
26  * \param Argument      Argument to pass to the callback
27  */
28 extern tTimer   *Time_CreateTimer(int Delta, tTimerCallback *Callback, void *Argument);
29 /**
30  * \brief Removed an active timer
31  */
32 extern void     Time_RemoveTimer(tTimer *Timer);
33 /**
34  * \brief Wait for a period of milliseconds
35  */
36 extern void     Time_Delay(int Delay);
37
38 #endif
39

UCC git Repository :: git.ucc.asn.au