Periodic and one-shot timer scheduling. More...
#include <stdbool.h>#include <stdint.h>

Go to the source code of this file.
Macros | |
| #define | SYS_TIMER_CAPACITY 8 |
| Maximum number of timers available in static-pool implementations. | |
Typedefs | |
| typedef struct sys_timer_t | sys_timer_t |
| Timer. | |
Functions | |
Lifecycle | |
| sys_timer_t * | sys_timer_init (uint32_t interval_ms, void(*callback)(sys_timer_t *), void *userdata) |
| Allocate and configure a timer from the pool. More... | |
| void | sys_timer_deinit (sys_timer_t *timer) |
| Stop and release a timer back to the pool. More... | |
Methods | |
| bool | sys_timer_start (sys_timer_t *timer) |
| Start a timer. More... | |
| void * | sys_timer_userdata (sys_timer_t *timer) |
| Return user data associated with a timer. More... | |
Periodic and one-shot timer scheduling.
Definition in file timer.h.