/* * Copyright (C) 2019 Gunar Schorcht * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. * * FreeRTOS to RIOT-OS adaption module for source code compatibility */ #ifndef FREERTOS_TIMERS_H #define FREERTOS_TIMERS_H #ifndef DOXYGEN #include "freertos/FreeRTOS.h" #ifdef __cplusplus extern "C" { #endif typedef void* TimerHandle_t; typedef void (*TimerCallbackFunction_t)(void*); #define tmrTIMER_CALLBACK TimerCallbackFunction_t TimerHandle_t xTimerCreate (const char * const pcTimerName, const TickType_t xTimerPeriod, const UBaseType_t uxAutoReload, void * const pvTimerID, TimerCallbackFunction_t pxCallbackFunction); BaseType_t xTimerDelete(TimerHandle_t xTimer, TickType_t xBlockTime); BaseType_t xTimerStart (TimerHandle_t xTimer, TickType_t xBlockTime); BaseType_t xTimerStop (TimerHandle_t xTimer, TickType_t xBlockTime); BaseType_t xTimerReset (TimerHandle_t xTimer, TickType_t xTicksToWait); void *pvTimerGetTimerID(const TimerHandle_t xTimer); #ifdef __cplusplus } #endif #endif /* DOXYGEN */ #endif /* FREERTOS_TIMERS_H */