34 #error "include FreeRTOS.h must appear in source files before include timers.h"
55#define tmrCOMMAND_EXECUTE_CALLBACK_FROM_ISR ( ( BaseType_t ) -2 )
56#define tmrCOMMAND_EXECUTE_CALLBACK ( ( BaseType_t ) -1 )
57#define tmrCOMMAND_START_DONT_TRACE ( ( BaseType_t ) 0 )
58#define tmrCOMMAND_START ( ( BaseType_t ) 1 )
59#define tmrCOMMAND_RESET ( ( BaseType_t ) 2 )
60#define tmrCOMMAND_STOP ( ( BaseType_t ) 3 )
61#define tmrCOMMAND_CHANGE_PERIOD ( ( BaseType_t ) 4 )
62#define tmrCOMMAND_DELETE ( ( BaseType_t ) 5 )
64#define tmrFIRST_FROM_ISR_COMMAND ( ( BaseType_t ) 6 )
65#define tmrCOMMAND_START_FROM_ISR ( ( BaseType_t ) 6 )
66#define tmrCOMMAND_RESET_FROM_ISR ( ( BaseType_t ) 7 )
67#define tmrCOMMAND_STOP_FROM_ISR ( ( BaseType_t ) 8 )
68#define tmrCOMMAND_CHANGE_PERIOD_FROM_ISR ( ( BaseType_t ) 9 )
77struct tmrTimerControl;
229#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
233 void *
const pvTimerID,
359#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
360 TimerHandle_t xTimerCreateStatic(
const char *
const pcTimerName,
363 void *
const pvTimerID,
507#define xTimerStart( xTimer, xTicksToWait ) \
508 xTimerGenericCommand( ( xTimer ), tmrCOMMAND_START, ( xTaskGetTickCount() ), NULL, ( xTicksToWait ) )
550#define xTimerStop( xTimer, xTicksToWait ) \
551 xTimerGenericCommand( ( xTimer ), tmrCOMMAND_STOP, 0U, NULL, ( xTicksToWait ) )
631#define xTimerChangePeriod( xTimer, xNewPeriod, xTicksToWait ) \
632 xTimerGenericCommand( ( xTimer ), tmrCOMMAND_CHANGE_PERIOD, ( xNewPeriod ), NULL, ( xTicksToWait ) )
670#define xTimerDelete( xTimer, xTicksToWait ) \
671 xTimerGenericCommand( ( xTimer ), tmrCOMMAND_DELETE, 0U, NULL, ( xTicksToWait ) )
795#define xTimerReset( xTimer, xTicksToWait ) \
796 xTimerGenericCommand( ( xTimer ), tmrCOMMAND_RESET, ( xTaskGetTickCount() ), NULL, ( xTicksToWait ) )
882#define xTimerStartFromISR( xTimer, pxHigherPriorityTaskWoken ) \
883 xTimerGenericCommand( ( xTimer ), tmrCOMMAND_START_FROM_ISR, ( xTaskGetTickCountFromISR() ), ( pxHigherPriorityTaskWoken ), 0U )
946#define xTimerStopFromISR( xTimer, pxHigherPriorityTaskWoken ) \
947 xTimerGenericCommand( ( xTimer ), tmrCOMMAND_STOP_FROM_ISR, 0, ( pxHigherPriorityTaskWoken ), 0U )
1020#define xTimerChangePeriodFromISR( xTimer, xNewPeriod, pxHigherPriorityTaskWoken ) \
1021 xTimerGenericCommand( ( xTimer ), tmrCOMMAND_CHANGE_PERIOD_FROM_ISR, ( xNewPeriod ), ( pxHigherPriorityTaskWoken ), 0U )
1107#define xTimerResetFromISR( xTimer, pxHigherPriorityTaskWoken ) \
1108 xTimerGenericCommand( ( xTimer ), tmrCOMMAND_RESET_FROM_ISR, ( xTaskGetTickCountFromISR() ), ( pxHigherPriorityTaskWoken ), 0U )
1199#if ( INCLUDE_xTimerPendFunctionCall == 1 )
1201 void * pvParameter1,
1202 uint32_t ulParameter2,
1238#if ( INCLUDE_xTimerPendFunctionCall == 1 )
1240 void * pvParameter1,
1241 uint32_t ulParameter2,
1343#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
1363 BaseType_t *
const pxHigherPriorityTaskWoken,
1369 BaseType_t *
const pxHigherPriorityTaskWoken,
1372#define xTimerGenericCommand( xTimer, xCommandID, xOptionalValue, pxHigherPriorityTaskWoken, xTicksToWait ) \
1373 ( ( xCommandID ) < tmrFIRST_FROM_ISR_COMMAND ? \
1374 xTimerGenericCommandFromTask( xTimer, xCommandID, xOptionalValue, pxHigherPriorityTaskWoken, xTicksToWait ) : \
1375 xTimerGenericCommandFromISR( xTimer, xCommandID, xOptionalValue, pxHigherPriorityTaskWoken, xTicksToWait ) )
1376#if ( configUSE_TRACE_FACILITY == 1 )
1382#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
1397 void vApplicationGetTimerTaskMemory(
StaticTask_t ** ppxTimerTaskTCBBuffer,
1403#if ( configUSE_DAEMON_TASK_STARTUP_HOOK != 0 )
1416 void vApplicationDaemonTaskStartupHook(
void );
struct xSTATIC_TIMER StaticTimer_t
struct xSTATIC_TCB StaticTask_t
#define configSTACK_DEPTH_TYPE
Definition FreeRTOSConfig.h:107
#define PRIVILEGED_FUNCTION
Definition mpu_wrappers.h:269
long BaseType_t
Definition portmacro.h:59
unsigned long UBaseType_t
Definition portmacro.h:60
uint16_t TickType_t
Definition portmacro.h:63
portSTACK_TYPE StackType_t
Definition portmacro.h:58
struct tskTaskControlBlock * TaskHandle_t
Definition task.h:92
TickType_t xTimerGetExpiryTime(TimerHandle_t xTimer) PRIVILEGED_FUNCTION
UBaseType_t uxTimerGetReloadMode(TimerHandle_t xTimer) PRIVILEGED_FUNCTION
void * pvTimerGetTimerID(const TimerHandle_t xTimer) PRIVILEGED_FUNCTION
BaseType_t xTimerGetReloadMode(TimerHandle_t xTimer) PRIVILEGED_FUNCTION
void vTimerSetTimerID(TimerHandle_t xTimer, void *pvNewID) PRIVILEGED_FUNCTION
TickType_t xTimerGetPeriod(TimerHandle_t xTimer) PRIVILEGED_FUNCTION
BaseType_t xTimerIsTimerActive(TimerHandle_t xTimer) PRIVILEGED_FUNCTION
const char * pcTimerGetName(TimerHandle_t xTimer) PRIVILEGED_FUNCTION
void vTimerSetReloadMode(TimerHandle_t xTimer, const BaseType_t xAutoReload) PRIVILEGED_FUNCTION
BaseType_t xTimerGenericCommandFromISR(TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t *const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait) PRIVILEGED_FUNCTION
void(* TimerCallbackFunction_t)(TimerHandle_t xTimer)
Definition timers.h:83
BaseType_t xTimerGenericCommandFromTask(TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t *const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait) PRIVILEGED_FUNCTION
void vTimerResetState(void) PRIVILEGED_FUNCTION
void(* PendedFunction_t)(void *arg1, uint32_t arg2)
Definition timers.h:89
TaskHandle_t xTimerGetTimerDaemonTaskHandle(void) PRIVILEGED_FUNCTION
struct tmrTimerControl * TimerHandle_t
Definition timers.h:78
BaseType_t xTimerCreateTimerTask(void) PRIVILEGED_FUNCTION