34 #error "include FreeRTOS.h must appear in source files before include timers.h"
57#define tmrCOMMAND_EXECUTE_CALLBACK_FROM_ISR ( ( BaseType_t ) -2 )
58#define tmrCOMMAND_EXECUTE_CALLBACK ( ( BaseType_t ) -1 )
59#define tmrCOMMAND_START_DONT_TRACE ( ( BaseType_t ) 0 )
60#define tmrCOMMAND_START ( ( BaseType_t ) 1 )
61#define tmrCOMMAND_RESET ( ( BaseType_t ) 2 )
62#define tmrCOMMAND_STOP ( ( BaseType_t ) 3 )
63#define tmrCOMMAND_CHANGE_PERIOD ( ( BaseType_t ) 4 )
64#define tmrCOMMAND_DELETE ( ( BaseType_t ) 5 )
66#define tmrFIRST_FROM_ISR_COMMAND ( ( BaseType_t ) 6 )
67#define tmrCOMMAND_START_FROM_ISR ( ( BaseType_t ) 6 )
68#define tmrCOMMAND_RESET_FROM_ISR ( ( BaseType_t ) 7 )
69#define tmrCOMMAND_STOP_FROM_ISR ( ( BaseType_t ) 8 )
70#define tmrCOMMAND_CHANGE_PERIOD_FROM_ISR ( ( BaseType_t ) 9 )
79struct tmrTimerControl;
231#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
235 void *
const pvTimerID,
361#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
362 TimerHandle_t xTimerCreateStatic(
const char *
const pcTimerName,
365 void *
const pvTimerID,
509#define xTimerStart( xTimer, xTicksToWait ) \
510 xTimerGenericCommand( ( xTimer ), tmrCOMMAND_START, ( xTaskGetTickCount() ), NULL, ( xTicksToWait ) )
552#define xTimerStop( xTimer, xTicksToWait ) \
553 xTimerGenericCommand( ( xTimer ), tmrCOMMAND_STOP, 0U, NULL, ( xTicksToWait ) )
633#define xTimerChangePeriod( xTimer, xNewPeriod, xTicksToWait ) \
634 xTimerGenericCommand( ( xTimer ), tmrCOMMAND_CHANGE_PERIOD, ( xNewPeriod ), NULL, ( xTicksToWait ) )
672#define xTimerDelete( xTimer, xTicksToWait ) \
673 xTimerGenericCommand( ( xTimer ), tmrCOMMAND_DELETE, 0U, NULL, ( xTicksToWait ) )
797#define xTimerReset( xTimer, xTicksToWait ) \
798 xTimerGenericCommand( ( xTimer ), tmrCOMMAND_RESET, ( xTaskGetTickCount() ), NULL, ( xTicksToWait ) )
884#define xTimerStartFromISR( xTimer, pxHigherPriorityTaskWoken ) \
885 xTimerGenericCommand( ( xTimer ), tmrCOMMAND_START_FROM_ISR, ( xTaskGetTickCountFromISR() ), ( pxHigherPriorityTaskWoken ), 0U )
948#define xTimerStopFromISR( xTimer, pxHigherPriorityTaskWoken ) \
949 xTimerGenericCommand( ( xTimer ), tmrCOMMAND_STOP_FROM_ISR, 0, ( pxHigherPriorityTaskWoken ), 0U )
1022#define xTimerChangePeriodFromISR( xTimer, xNewPeriod, pxHigherPriorityTaskWoken ) \
1023 xTimerGenericCommand( ( xTimer ), tmrCOMMAND_CHANGE_PERIOD_FROM_ISR, ( xNewPeriod ), ( pxHigherPriorityTaskWoken ), 0U )
1109#define xTimerResetFromISR( xTimer, pxHigherPriorityTaskWoken ) \
1110 xTimerGenericCommand( ( xTimer ), tmrCOMMAND_RESET_FROM_ISR, ( xTaskGetTickCountFromISR() ), ( pxHigherPriorityTaskWoken ), 0U )
1202 void * pvParameter1,
1203 uint32_t ulParameter2,
1239 void * pvParameter1,
1240 uint32_t ulParameter2,
1341#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
1354 BaseType_t *
const pxHigherPriorityTaskWoken,
1357#if ( configUSE_TRACE_FACILITY == 1 )
1363#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
1378 void vApplicationGetTimerTaskMemory(
StaticTask_t ** ppxTimerTaskTCBBuffer,
1380 uint32_t * pulTimerTaskStackSize );
1384#if ( configUSE_DAEMON_TASK_STARTUP_HOOK != 0 )
struct xSTATIC_TIMER StaticTimer_t
struct xSTATIC_TCB StaticTask_t
void vApplicationDaemonTaskStartupHook(void)
#define PRIVILEGED_FUNCTION
unsigned long UBaseType_t
portSTACK_TYPE StackType_t
struct tskTaskControlBlock * TaskHandle_t
BaseType_t xTimerPendFunctionCall(PendedFunction_t xFunctionToPend, void *pvParameter1, uint32_t ulParameter2, TickType_t xTicksToWait) PRIVILEGED_FUNCTION
BaseType_t xTimerPendFunctionCall( PendedFunction_t xFunctionToPend, ...
TickType_t xTimerGetExpiryTime(TimerHandle_t xTimer) PRIVILEGED_FUNCTION
TickType_t xTimerGetExpiryTime( TimerHandle_t xTimer );.
UBaseType_t uxTimerGetReloadMode(TimerHandle_t xTimer) PRIVILEGED_FUNCTION
UBaseType_t uxTimerGetReloadMode( TimerHandle_t xTimer );.
void * pvTimerGetTimerID(const TimerHandle_t xTimer) PRIVILEGED_FUNCTION
TimerHandle_t xTimerCreate( const char * const pcTimerName, TickType_t...
BaseType_t xTimerGetReloadMode(TimerHandle_t xTimer) PRIVILEGED_FUNCTION
BaseType_t xTimerGetReloadMode( TimerHandle_t xTimer );.
BaseType_t xTimerGenericCommand(TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t *const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait) PRIVILEGED_FUNCTION
void vTimerSetTimerID(TimerHandle_t xTimer, void *pvNewID) PRIVILEGED_FUNCTION
void vTimerSetTimerID( TimerHandle_t xTimer, void *pvNewID );
TickType_t xTimerGetPeriod(TimerHandle_t xTimer) PRIVILEGED_FUNCTION
TickType_t xTimerGetPeriod( TimerHandle_t xTimer );.
BaseType_t xTimerIsTimerActive(TimerHandle_t xTimer) PRIVILEGED_FUNCTION
BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer );.
const char * pcTimerGetName(TimerHandle_t xTimer) PRIVILEGED_FUNCTION
const char * const pcTimerGetName( TimerHandle_t xTimer );
void vTimerSetReloadMode(TimerHandle_t xTimer, const BaseType_t xAutoReload) PRIVILEGED_FUNCTION
void vTimerSetReloadMode( TimerHandle_t xTimer, const BaseType_t xAutoReload );
void(* TimerCallbackFunction_t)(TimerHandle_t xTimer)
TaskHandle_t xTimerGetTimerDaemonTaskHandle(void) PRIVILEGED_FUNCTION
TaskHandle_t xTimerGetTimerDaemonTaskHandle( void );.
BaseType_t xTimerPendFunctionCallFromISR(PendedFunction_t xFunctionToPend, void *pvParameter1, uint32_t ulParameter2, BaseType_t *pxHigherPriorityTaskWoken) PRIVILEGED_FUNCTION
BaseType_t xTimerPendFunctionCallFromISR( PendedFunction_t xFunctionToPend, ...
struct tmrTimerControl * TimerHandle_t
void(* PendedFunction_t)(void *, uint32_t)
BaseType_t xTimerCreateTimerTask(void) PRIVILEGED_FUNCTION
BaseType_t xTimerGetStaticBuffer( TimerHandle_t xTimer, StaticTimer_...