6 /* ---------------------------- included header files ---------------------- */
8 /* ---------------------------- global definitions ------------------------- */
10 #define TIMEOUT_MAX_TIMEOUTS 32
12 /* ---------------------------- global macros ------------------------------ */
14 /* ---------------------------- type definitions --------------------------- */
16 typedef int timeout_time_t
;
17 typedef unsigned int timeout_mask_t
;
21 timeout_time_t
*timeouts
;
24 /* ---------------------------- forward declarations ----------------------- */
26 /* ---------------------------- exported variables (globals) --------------- */
28 /* ---------------------------- interface functions ------------------------ */
30 timeout_t
*timeout_create(
34 timeout_mask_t
timeout_tick(
35 timeout_t
*to
, timeout_time_t n_ticks
);
37 timeout_t
*to
, timeout_mask_t mask
, timeout_time_t ticks_before_alarm
);
39 #endif /* TIMEOUT_H */