74 #ifndef INC_FREERTOS_H 75 #error "include FreeRTOS.h must appear in source files before include timers.h" 96 #define tmrCOMMAND_EXECUTE_CALLBACK_FROM_ISR ( ( BaseType_t ) -2 ) 97 #define tmrCOMMAND_EXECUTE_CALLBACK ( ( BaseType_t ) -1 ) 98 #define tmrCOMMAND_START_DONT_TRACE ( ( BaseType_t ) 0 ) 99 #define tmrCOMMAND_START ( ( BaseType_t ) 1 ) 100 #define tmrCOMMAND_RESET ( ( BaseType_t ) 2 ) 101 #define tmrCOMMAND_STOP ( ( BaseType_t ) 3 ) 102 #define tmrCOMMAND_CHANGE_PERIOD ( ( BaseType_t ) 4 ) 103 #define tmrCOMMAND_DELETE ( ( BaseType_t ) 5 ) 105 #define tmrFIRST_FROM_ISR_COMMAND ( ( BaseType_t ) 6 ) 106 #define tmrCOMMAND_START_FROM_ISR ( ( BaseType_t ) 6 ) 107 #define tmrCOMMAND_RESET_FROM_ISR ( ( BaseType_t ) 7 ) 108 #define tmrCOMMAND_STOP_FROM_ISR ( ( BaseType_t ) 8 ) 109 #define tmrCOMMAND_CHANGE_PERIOD_FROM_ISR ( ( BaseType_t ) 9 ) 118 typedef void * TimerHandle_t;
123 typedef void (*TimerCallbackFunction_t)( TimerHandle_t xTimer );
129 typedef void (*PendedFunction_t)(
void *, uint32_t );
260 TimerHandle_t xTimerCreate(
const char *
const pcTimerName,
const TickType_t xTimerPeriodInTicks,
const UBaseType_t uxAutoReload,
void *
const pvTimerID, TimerCallbackFunction_t pxCallbackFunction ) PRIVILEGED_FUNCTION;
282 void *pvTimerGetTimerID(
const TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
303 void vTimerSetTimerID( TimerHandle_t xTimer,
void *pvNewID ) PRIVILEGED_FUNCTION;
340 BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
351 TaskHandle_t xTimerGetTimerDaemonTaskHandle(
void ) PRIVILEGED_FUNCTION;
403 #define xTimerStart( xTimer, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_START, ( xTaskGetTickCount() ), NULL, ( xTicksToWait ) ) 445 #define xTimerStop( xTimer, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_STOP, 0U, NULL, ( xTicksToWait ) ) 525 #define xTimerChangePeriod( xTimer, xNewPeriod, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_CHANGE_PERIOD, ( xNewPeriod ), NULL, ( xTicksToWait ) ) 563 #define xTimerDelete( xTimer, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_DELETE, 0U, NULL, ( xTicksToWait ) ) 687 #define xTimerReset( xTimer, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_RESET, ( xTaskGetTickCount() ), NULL, ( xTicksToWait ) ) 773 #define xTimerStartFromISR( xTimer, pxHigherPriorityTaskWoken ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_START_FROM_ISR, ( xTaskGetTickCountFromISR() ), ( pxHigherPriorityTaskWoken ), 0U ) 836 #define xTimerStopFromISR( xTimer, pxHigherPriorityTaskWoken ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_STOP_FROM_ISR, 0, ( pxHigherPriorityTaskWoken ), 0U ) 909 #define xTimerChangePeriodFromISR( xTimer, xNewPeriod, pxHigherPriorityTaskWoken ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_CHANGE_PERIOD_FROM_ISR, ( xNewPeriod ), ( pxHigherPriorityTaskWoken ), 0U ) 995 #define xTimerResetFromISR( xTimer, pxHigherPriorityTaskWoken ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_RESET_FROM_ISR, ( xTaskGetTickCountFromISR() ), ( pxHigherPriorityTaskWoken ), 0U ) 1086 BaseType_t xTimerPendFunctionCallFromISR( PendedFunction_t xFunctionToPend,
void *pvParameter1, uint32_t ulParameter2, BaseType_t *pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION;
1120 BaseType_t xTimerPendFunctionCall( PendedFunction_t xFunctionToPend,
void *pvParameter1, uint32_t ulParameter2, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
1131 const char * pcTimerGetTimerName( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
1137 BaseType_t xTimerCreateTimerTask(
void ) PRIVILEGED_FUNCTION;
1138 BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;