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