11 #ifndef FREERTOS_TIMERS_H
12 #define FREERTOS_TIMERS_H
16 #include "freertos/FreeRTOS.h"
23 typedef void* TimerHandle_t;
25 #define TimerCallbackFunction_t xtimer_callback_t
26 #define tmrTIMER_CALLBACK TimerCallbackFunction_t
28 TimerHandle_t xTimerCreate (
const char *
const pcTimerName,
29 const TickType_t xTimerPeriod,
30 const UBaseType_t uxAutoReload,
31 void *
const pvTimerID,
32 TimerCallbackFunction_t pxCallbackFunction);
33 BaseType_t xTimerDelete(TimerHandle_t xTimer, TickType_t xBlockTime);
34 BaseType_t xTimerStart (TimerHandle_t xTimer, TickType_t xBlockTime);
35 BaseType_t xTimerStop (TimerHandle_t xTimer, TickType_t xBlockTime);
36 BaseType_t xTimerReset (TimerHandle_t xTimer, TickType_t xTicksToWait);
38 void *pvTimerGetTimerID(
const TimerHandle_t xTimer);