74 #ifndef INC_FREERTOS_H
75 #error "include FreeRTOS.h must appear in source files before include timers.h"
129 #define tmrCOMMAND_EXECUTE_CALLBACK_FROM_ISR ( ( BaseType_t ) -2 )
130 #define tmrCOMMAND_EXECUTE_CALLBACK ( ( BaseType_t ) -1 )
131 #define tmrCOMMAND_START_DONT_TRACE ( ( BaseType_t ) 0 )
132 #define tmrCOMMAND_START ( ( BaseType_t ) 1 )
133 #define tmrCOMMAND_RESET ( ( BaseType_t ) 2 )
134 #define tmrCOMMAND_STOP ( ( BaseType_t ) 3 )
135 #define tmrCOMMAND_CHANGE_PERIOD ( ( BaseType_t ) 4 )
136 #define tmrCOMMAND_DELETE ( ( BaseType_t ) 5 )
138 #define tmrFIRST_FROM_ISR_COMMAND ( ( BaseType_t ) 6 )
139 #define tmrCOMMAND_START_FROM_ISR ( ( BaseType_t ) 6 )
140 #define tmrCOMMAND_RESET_FROM_ISR ( ( BaseType_t ) 7 )
141 #define tmrCOMMAND_STOP_FROM_ISR ( ( BaseType_t ) 8 )
142 #define tmrCOMMAND_CHANGE_PERIOD_FROM_ISR ( ( BaseType_t ) 9 )
292 #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
296 void *
const pvTimerID,
407 #if( configSUPPORT_STATIC_ALLOCATION == 1 )
411 void *
const pvTimerID,
454 #define xTimerDelete( xTimer, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_DELETE, 0U, NULL, ( xTicksToWait ) )
508 #define xTimerStart( xTimer, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_START, ( xTaskGetTickCount() ), NULL, ( xTicksToWait ) )
548 #define xTimerStop( xTimer, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_STOP, 0U, NULL, ( xTicksToWait ) )
671 #define xTimerReset( xTimer, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_RESET, ( xTaskGetTickCount() ), NULL, ( xTicksToWait ) )
748 #define xTimerChangePeriod( xTimer, xNewPeriod, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_CHANGE_PERIOD, ( xNewPeriod ), NULL, ( xTicksToWait ) )
828 #define xTimerStartFromISR( xTimer, pxHigherPriorityTaskWoken ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_START_FROM_ISR, ( xTaskGetTickCountFromISR() ), ( pxHigherPriorityTaskWoken ), 0U )
888 #define xTimerStopFromISR( xTimer, pxHigherPriorityTaskWoken ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_STOP_FROM_ISR, 0, ( pxHigherPriorityTaskWoken ), 0U )
957 #define xTimerChangePeriodFromISR( xTimer, xNewPeriod, pxHigherPriorityTaskWoken ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_CHANGE_PERIOD_FROM_ISR, ( xNewPeriod ), ( pxHigherPriorityTaskWoken ), 0U )
1040 #define xTimerResetFromISR( xTimer, pxHigherPriorityTaskWoken ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_RESET_FROM_ISR, ( xTaskGetTickCountFromISR() ), ( pxHigherPriorityTaskWoken ), 0U )
1288 BaseType_t xTimerCreateTimerTask(
void) PRIVILEGED_FUNCTION;
TaskHandle_t xTimerGetTimerDaemonTaskHandle(void) PRIVILEGED_FUNCTION
Simply returns the handle of the timer service/daemon task. It it not valid to call xTimerGetTimerDae...
void * TaskHandle_t
Type by which tasks are referenced.
Definition: task.h:132
BaseType_t xTimerPendFunctionCallFromISR(PendedFunction_t xFunctionToPend, void *pvParameter1, uint32_t ulParameter2, BaseType_t *pxHigherPriorityTaskWoken) PRIVILEGED_FUNCTION
Used from application interrupt service routines to defer the execution of a function to the RTOS dae...
Definition: FreeRTOS.h:1035
uint32_t TickType_t
FreeRTOS definition for a single tick.
Definition: portmacro.h:98
TimerHandle_t xTimerCreateStatic(const char *const pcTimerName, const TickType_t xTimerPeriodInTicks, const UBaseType_t uxAutoReload, void *const pvTimerID, TimerCallbackFunction_t pxCallbackFunction, StaticTimer_t *pxTimerBuffer) PRIVILEGED_FUNCTION
Creates a new software timer instance, and returns a handle by which the created software timer can b...
unsigned long UBaseType_t
FreeRTOS definition for unsigned long ints.
Definition: portmacro.h:92
void * TimerHandle_t
Type by which software timers are referenced. For example, a call to xTimerCreate() returns an TimerH...
Definition: timers.h:154
long BaseType_t
FreeRTOS definition for long ints.
Definition: portmacro.h:91
void vTimerSetTimerID(TimerHandle_t xTimer, void *pvNewID) PRIVILEGED_FUNCTION
Sets the ID assigned to the timer.
TickType_t xTimerGetPeriod(TimerHandle_t xTimer) PRIVILEGED_FUNCTION
Returns the period of a timer.
BaseType_t xTimerPendFunctionCall(PendedFunction_t xFunctionToPend, void *pvParameter1, uint32_t ulParameter2, TickType_t xTicksToWait) PRIVILEGED_FUNCTION
Used to defer the execution of a function to the RTOS daemon task (the timer service task,...
TimerHandle_t xTimerCreate(const char *const pcTimerName, const TickType_t xTimerPeriodInTicks, const UBaseType_t uxAutoReload, void *const pvTimerID, TimerCallbackFunction_t pxCallbackFunction) PRIVILEGED_FUNCTION
Creates a new software timer instance, and returns a handle by which the created software timer can b...
const char * pcTimerGetName(TimerHandle_t xTimer) PRIVILEGED_FUNCTION
Returns the name that was assigned to a timer when the timer was created.
TickType_t xTimerGetExpiryTime(TimerHandle_t xTimer) PRIVILEGED_FUNCTION
Returns the time in ticks at which the timer will expire. If this is less than the current tick count...
void(* PendedFunction_t)(void *, uint32_t)
Definition: timers.h:167
void * pvTimerGetTimerID(const TimerHandle_t xTimer) PRIVILEGED_FUNCTION
Returns the ID assigned to the timer.
void(* TimerCallbackFunction_t)(TimerHandle_t xTimer)
Definition: timers.h:160
BaseType_t xTimerIsTimerActive(TimerHandle_t xTimer) PRIVILEGED_FUNCTION
Queries a timer to see if it is active or dormant.