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