fremoclock  1_3A01
FREMO Clock - Software for UTG
Timer.h
Go to the documentation of this file.
1 
22 #ifndef _OS_TIMER_H_
23 #define _OS_TIMER_H_
24 
25 #include <stdint.h> // typedef int8_t, typedef uint16_t, typedef uint32_t
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
37 void SetTimer(uint32_t *pulTimer, uint32_t ulValue);
38 
47 int8_t AddTimer(uint32_t *pulTimer, uint32_t ulValue);
48 
58 int8_t CheckTimer(uint32_t *pulTimer);
59 
65 void ResetTimer(uint32_t *pulTimer);
66 
75 void WaitTimer(uint16_t usValue);
76 
77 #ifdef __cplusplus
78 }
79 #endif
80 
81 #endif /* _OS_TIMER_H_ */
void WaitTimer(uint16_t usValue)
Wait for usValue milliseconds.
Definition: Timer.c:121
void SetTimer(uint32_t *pulTimer, uint32_t ulValue)
Set a timer.
Definition: Timer.c:69
int8_t CheckTimer(uint32_t *pulTimer)
Check if timer is elapsed, incactive or still busy.
Definition: Timer.c:28
void ResetTimer(uint32_t *pulTimer)
Reset a timer.
Definition: Timer.c:115
int8_t AddTimer(uint32_t *pulTimer, uint32_t ulValue)
Add time period to an already initialized timer.
Definition: Timer.c:94