Golem  v0.1.1
Generic Operating system Libraries for Embedded Multitasking
 All Data Structures Files Functions Variables Pages
/home/ruud/Engineering/software/projects/golem-project-code/trunk/glm_alarm.h
Go to the documentation of this file.
1 
18 #ifndef _GLM_ALARM_H_
19 #define _GLM_ALARM_H_
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 /* INCLUDES *******************************************************************/
26 #include <stdbool.h>
27 #include "glm_intbase.h"
28 #include "glm_signal.h"
29 
30 
31 /* TYPES **********************************************************************/
32 typedef void (*p_callback_func_t)(void);
33 
34 
35 /* PUBLIC FUNCTIONS ***********************************************************/
36 
41 extern bool alarm_init();
42 
43 
45 extern void alarm_reset();
46 
47 
52 extern char * alarm_name();
53 
54 
66 extern bool alarm_set(uint_base_t a_time, signal_t a_signal);
67 
68 
88 extern bool alarm_set_cb(uint_base_t a_time, p_callback_func_t a_func);
89 
90 
93 extern void alarm_check_due();
94 
95 
96 #ifdef __cplusplus
97 }
98 #endif
99 
100 #endif /* _GLM_ALARM_H_ */
101