Prusa MINI Firmware overview
|
Go to the source code of this file.
|
#define | tskKERNEL_VERSION_NUMBER "V9.0.0" |
|
#define | tskKERNEL_VERSION_MAJOR 9 |
|
#define | tskKERNEL_VERSION_MINOR 0 |
|
#define | tskKERNEL_VERSION_BUILD 0 |
|
#define | tskIDLE_PRIORITY ( ( UBaseType_t ) 0U ) |
|
#define | taskYIELD() portYIELD() |
|
#define | taskENTER_CRITICAL() portENTER_CRITICAL() |
|
#define | taskENTER_CRITICAL_FROM_ISR() portSET_INTERRUPT_MASK_FROM_ISR() |
|
#define | taskEXIT_CRITICAL() portEXIT_CRITICAL() |
|
#define | taskEXIT_CRITICAL_FROM_ISR(x) portCLEAR_INTERRUPT_MASK_FROM_ISR( x ) |
|
#define | taskDISABLE_INTERRUPTS() portDISABLE_INTERRUPTS() |
|
#define | taskENABLE_INTERRUPTS() portENABLE_INTERRUPTS() |
|
#define | taskSCHEDULER_SUSPENDED ( ( BaseType_t ) 0 ) |
|
#define | taskSCHEDULER_NOT_STARTED ( ( BaseType_t ) 1 ) |
|
#define | taskSCHEDULER_RUNNING ( ( BaseType_t ) 2 ) |
|
#define | xTaskNotify(xTaskToNotify, ulValue, eAction) xTaskGenericNotify( ( xTaskToNotify ), ( ulValue ), ( eAction ), NULL ) |
|
#define | xTaskNotifyAndQuery(xTaskToNotify, ulValue, eAction, pulPreviousNotifyValue) xTaskGenericNotify( ( xTaskToNotify ), ( ulValue ), ( eAction ), ( pulPreviousNotifyValue ) ) |
|
#define | xTaskNotifyFromISR(xTaskToNotify, ulValue, eAction, pxHigherPriorityTaskWoken) xTaskGenericNotifyFromISR( ( xTaskToNotify ), ( ulValue ), ( eAction ), NULL, ( pxHigherPriorityTaskWoken ) ) |
|
#define | xTaskNotifyAndQueryFromISR(xTaskToNotify, ulValue, eAction, pulPreviousNotificationValue, pxHigherPriorityTaskWoken) xTaskGenericNotifyFromISR( ( xTaskToNotify ), ( ulValue ), ( eAction ), ( pulPreviousNotificationValue ), ( pxHigherPriorityTaskWoken ) ) |
|
#define | xTaskNotifyGive(xTaskToNotify) xTaskGenericNotify( ( xTaskToNotify ), ( 0 ), eIncrement, NULL ) |
|
|
enum | eTaskState {
eRunning = 0,
eReady,
eBlocked,
eSuspended,
eDeleted,
eInvalid
} |
|
enum | eNotifyAction {
eNoAction = 0,
eSetBits,
eIncrement,
eSetValueWithOverwrite,
eSetValueWithoutOverwrite
} |
|
enum | eSleepModeStatus { eAbortSleep = 0,
eStandardSleep,
eNoTasksWaitingTimeout
} |
|
|
PRIVILEGED_FUNCTION void | vTaskAllocateMPURegions (TaskHandle_t xTask, const MemoryRegion_t *const pxRegions) |
|
PRIVILEGED_FUNCTION void | vTaskDelete (TaskHandle_t xTaskToDelete) |
|
PRIVILEGED_FUNCTION void | vTaskDelay (const TickType_t xTicksToDelay) |
|
PRIVILEGED_FUNCTION void | vTaskDelayUntil (TickType_t *const pxPreviousWakeTime, const TickType_t xTimeIncrement) |
|
PRIVILEGED_FUNCTION BaseType_t | xTaskAbortDelay (TaskHandle_t xTask) |
|
PRIVILEGED_FUNCTION UBaseType_t | uxTaskPriorityGet (TaskHandle_t xTask) |
|
PRIVILEGED_FUNCTION UBaseType_t | uxTaskPriorityGetFromISR (TaskHandle_t xTask) |
|
PRIVILEGED_FUNCTION eTaskState | eTaskGetState (TaskHandle_t xTask) |
|
PRIVILEGED_FUNCTION void | vTaskGetInfo (TaskHandle_t xTask, TaskStatus_t *pxTaskStatus, BaseType_t xGetFreeStackSpace, eTaskState eState) |
|
PRIVILEGED_FUNCTION void | vTaskPrioritySet (TaskHandle_t xTask, UBaseType_t uxNewPriority) |
|
PRIVILEGED_FUNCTION void | vTaskSuspend (TaskHandle_t xTaskToSuspend) |
|
PRIVILEGED_FUNCTION void | vTaskResume (TaskHandle_t xTaskToResume) |
|
PRIVILEGED_FUNCTION BaseType_t | xTaskResumeFromISR (TaskHandle_t xTaskToResume) |
|
PRIVILEGED_FUNCTION void | vTaskStartScheduler (void) |
|
PRIVILEGED_FUNCTION void | vTaskEndScheduler (void) |
|
PRIVILEGED_FUNCTION void | vTaskSuspendAll (void) |
|
PRIVILEGED_FUNCTION BaseType_t | xTaskResumeAll (void) |
|
PRIVILEGED_FUNCTION TickType_t | xTaskGetTickCount (void) |
|
PRIVILEGED_FUNCTION TickType_t | xTaskGetTickCountFromISR (void) |
|
PRIVILEGED_FUNCTION UBaseType_t | uxTaskGetNumberOfTasks (void) |
|
PRIVILEGED_FUNCTION char * | pcTaskGetName (TaskHandle_t xTaskToQuery) |
|
PRIVILEGED_FUNCTION TaskHandle_t | xTaskGetHandle (const char *pcNameToQuery) |
|
PRIVILEGED_FUNCTION UBaseType_t | uxTaskGetStackHighWaterMark (TaskHandle_t xTask) |
|
PRIVILEGED_FUNCTION BaseType_t | xTaskCallApplicationTaskHook (TaskHandle_t xTask, void *pvParameter) |
|
PRIVILEGED_FUNCTION TaskHandle_t | xTaskGetIdleTaskHandle (void) |
|
PRIVILEGED_FUNCTION UBaseType_t | uxTaskGetSystemState (TaskStatus_t *const pxTaskStatusArray, const UBaseType_t uxArraySize, uint32_t *const pulTotalRunTime) |
|
PRIVILEGED_FUNCTION void | vTaskList (char *pcWriteBuffer) |
|
PRIVILEGED_FUNCTION void | vTaskGetRunTimeStats (char *pcWriteBuffer) |
|
PRIVILEGED_FUNCTION BaseType_t | xTaskGenericNotify (TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue) |
|
PRIVILEGED_FUNCTION BaseType_t | xTaskGenericNotifyFromISR (TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue, BaseType_t *pxHigherPriorityTaskWoken) |
|
PRIVILEGED_FUNCTION BaseType_t | xTaskNotifyWait (uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait) |
|
PRIVILEGED_FUNCTION void | vTaskNotifyGiveFromISR (TaskHandle_t xTaskToNotify, BaseType_t *pxHigherPriorityTaskWoken) |
|
PRIVILEGED_FUNCTION uint32_t | ulTaskNotifyTake (BaseType_t xClearCountOnExit, TickType_t xTicksToWait) |
|
BaseType_t | xTaskNotifyStateClear (TaskHandle_t xTask) |
|
PRIVILEGED_FUNCTION BaseType_t | xTaskIncrementTick (void) |
|
PRIVILEGED_FUNCTION void | vTaskPlaceOnEventList (List_t *const pxEventList, const TickType_t xTicksToWait) |
|
PRIVILEGED_FUNCTION void | vTaskPlaceOnUnorderedEventList (List_t *pxEventList, const TickType_t xItemValue, const TickType_t xTicksToWait) |
|
PRIVILEGED_FUNCTION void | vTaskPlaceOnEventListRestricted (List_t *const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely) |
|
PRIVILEGED_FUNCTION BaseType_t | xTaskRemoveFromEventList (const List_t *const pxEventList) |
|
PRIVILEGED_FUNCTION BaseType_t | xTaskRemoveFromUnorderedEventList (ListItem_t *pxEventListItem, const TickType_t xItemValue) |
|
PRIVILEGED_FUNCTION void | vTaskSwitchContext (void) |
|
PRIVILEGED_FUNCTION TickType_t | uxTaskResetEventItemValue (void) |
|
PRIVILEGED_FUNCTION TaskHandle_t | xTaskGetCurrentTaskHandle (void) |
|
PRIVILEGED_FUNCTION void | vTaskSetTimeOutState (TimeOut_t *const pxTimeOut) |
|
PRIVILEGED_FUNCTION BaseType_t | xTaskCheckForTimeOut (TimeOut_t *const pxTimeOut, TickType_t *const pxTicksToWait) |
|
PRIVILEGED_FUNCTION void | vTaskMissedYield (void) |
|
PRIVILEGED_FUNCTION BaseType_t | xTaskGetSchedulerState (void) |
|
PRIVILEGED_FUNCTION void | vTaskPriorityInherit (TaskHandle_t const pxMutexHolder) |
|
PRIVILEGED_FUNCTION BaseType_t | xTaskPriorityDisinherit (TaskHandle_t const pxMutexHolder) |
|
PRIVILEGED_FUNCTION UBaseType_t | uxTaskGetTaskNumber (TaskHandle_t xTask) |
|
PRIVILEGED_FUNCTION void | vTaskSetTaskNumber (TaskHandle_t xTask, const UBaseType_t uxHandle) |
|
PRIVILEGED_FUNCTION void | vTaskStepTick (const TickType_t xTicksToJump) |
|
PRIVILEGED_FUNCTION eSleepModeStatus | eTaskConfirmSleepModeStatus (void) |
|
PRIVILEGED_FUNCTION void * | pvTaskIncrementMutexHeldCount (void) |
|
◆ tskKERNEL_VERSION_NUMBER
#define tskKERNEL_VERSION_NUMBER "V9.0.0" |
◆ tskKERNEL_VERSION_MAJOR
#define tskKERNEL_VERSION_MAJOR 9 |
◆ tskKERNEL_VERSION_MINOR
#define tskKERNEL_VERSION_MINOR 0 |
◆ tskKERNEL_VERSION_BUILD
#define tskKERNEL_VERSION_BUILD 0 |
◆ tskIDLE_PRIORITY
Defines the priority used by the idle task. This must not be modified.
◆ taskYIELD
◆ taskENTER_CRITICAL
◆ taskENTER_CRITICAL_FROM_ISR
◆ taskEXIT_CRITICAL
◆ taskEXIT_CRITICAL_FROM_ISR
◆ taskDISABLE_INTERRUPTS
◆ taskENABLE_INTERRUPTS
◆ taskSCHEDULER_SUSPENDED
#define taskSCHEDULER_SUSPENDED ( ( BaseType_t ) 0 ) |
◆ taskSCHEDULER_NOT_STARTED
#define taskSCHEDULER_NOT_STARTED ( ( BaseType_t ) 1 ) |
◆ taskSCHEDULER_RUNNING
#define taskSCHEDULER_RUNNING ( ( BaseType_t ) 2 ) |
◆ xTaskNotify
#define xTaskNotify |
( |
|
xTaskToNotify, |
|
|
|
ulValue, |
|
|
|
eAction |
|
) |
| xTaskGenericNotify( ( xTaskToNotify ), ( ulValue ), ( eAction ), NULL ) |
◆ xTaskNotifyAndQuery
#define xTaskNotifyAndQuery |
( |
|
xTaskToNotify, |
|
|
|
ulValue, |
|
|
|
eAction, |
|
|
|
pulPreviousNotifyValue |
|
) |
| xTaskGenericNotify( ( xTaskToNotify ), ( ulValue ), ( eAction ), ( pulPreviousNotifyValue ) ) |
◆ xTaskNotifyFromISR
#define xTaskNotifyFromISR |
( |
|
xTaskToNotify, |
|
|
|
ulValue, |
|
|
|
eAction, |
|
|
|
pxHigherPriorityTaskWoken |
|
) |
| xTaskGenericNotifyFromISR( ( xTaskToNotify ), ( ulValue ), ( eAction ), NULL, ( pxHigherPriorityTaskWoken ) ) |
◆ xTaskNotifyAndQueryFromISR
#define xTaskNotifyAndQueryFromISR |
( |
|
xTaskToNotify, |
|
|
|
ulValue, |
|
|
|
eAction, |
|
|
|
pulPreviousNotificationValue, |
|
|
|
pxHigherPriorityTaskWoken |
|
) |
| xTaskGenericNotifyFromISR( ( xTaskToNotify ), ( ulValue ), ( eAction ), ( pulPreviousNotificationValue ), ( pxHigherPriorityTaskWoken ) ) |
◆ xTaskNotifyGive
◆ TaskHandle_t
◆ TaskHookFunction_t
◆ TimeOut_t
◆ MemoryRegion_t
◆ TaskParameters_t
◆ TaskStatus_t
◆ eTaskState
Enumerator |
---|
eRunning | |
eReady | |
eBlocked | |
eSuspended | |
eDeleted | |
eInvalid | |
◆ eNotifyAction
Enumerator |
---|
eNoAction | |
eSetBits | |
eIncrement | |
eSetValueWithOverwrite | |
eSetValueWithoutOverwrite | |
◆ eSleepModeStatus
Enumerator |
---|
eAbortSleep | |
eStandardSleep | |
eNoTasksWaitingTimeout | |
◆ vTaskAllocateMPURegions()
◆ vTaskDelete()
◆ vTaskDelay()
◆ vTaskDelayUntil()
◆ xTaskAbortDelay()
◆ uxTaskPriorityGet()
◆ uxTaskPriorityGetFromISR()
◆ eTaskGetState()
task. h
eTaskState eTaskGetState( TaskHandle_t xTask );
INCLUDE_eTaskGetState must be defined as 1 for this function to be available. See the configuration section for more information.
Obtain the state of any task. States are encoded by the eTaskState enumerated type.
- Parameters
-
xTask | Handle of the task to be queried. |
- Returns
- The state of xTask at the time the function was called. Note the state of the task might change between the function being called, and the functions return value being tested by the calling task.
◆ vTaskGetInfo()
◆ vTaskPrioritySet()
◆ vTaskSuspend()
◆ vTaskResume()
◆ xTaskResumeFromISR()
◆ vTaskStartScheduler()
1831 #if( configSUPPORT_STATIC_ALLOCATION == 1 )
1835 uint32_t ulIdleTaskStackSize;
1839 vApplicationGetIdleTaskMemory( &pxIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &ulIdleTaskStackSize );
1842 ulIdleTaskStackSize,
1845 pxIdleTaskStackBuffer,
1846 pxIdleTaskTCBBuffer );
1860 xReturn = xTaskCreate( prvIdleTask,
1868 #if ( configUSE_TIMERS == 1 )
1890 #if ( configUSE_NEWLIB_REENTRANT == 1 )
◆ vTaskEndScheduler()
◆ vTaskSuspendAll()
◆ xTaskResumeAll()
2103 #if( configUSE_PREEMPTION != 0 )
2105 xAlreadyYielded =
pdTRUE;
2123 return xAlreadyYielded;
◆ xTaskGetTickCount()
◆ xTaskGetTickCountFromISR()
◆ uxTaskGetNumberOfTasks()
◆ pcTaskGetName()
◆ xTaskGetHandle()
◆ uxTaskGetStackHighWaterMark()
task.h
UBaseType_t uxTaskGetStackHighWaterMark( TaskHandle_t xTask );
INCLUDE_uxTaskGetStackHighWaterMark must be set to 1 in FreeRTOSConfig.h for this function to be available.
Returns the high water mark of the stack associated with xTask. That is, the minimum free stack space there has been (in words, so on a 32 bit machine a value of 1 means 4 bytes) since the task started. The smaller the returned number the closer the task has come to overflowing its stack.
- Parameters
-
xTask | Handle of the task associated with the stack to be checked. Set xTask to NULL to check the stack of the calling task. |
- Returns
- The smallest amount of free stack space there has been (in words, so actual spaces on the stack rather than bytes) since the task referenced by xTask was created.
◆ xTaskCallApplicationTaskHook()
task.h
BaseType_t xTaskCallApplicationTaskHook( TaskHandle_t xTask, void *pvParameter );
Calls the hook function associated with xTask. Passing xTask as NULL has the effect of calling the Running tasks (the calling task) hook function.
pvParameter is passed to the hook function for the task to interpret as it wants. The return value is the value returned by the task hook function registered by the user.
◆ xTaskGetIdleTaskHandle()
xTaskGetIdleTaskHandle() is only available if INCLUDE_xTaskGetIdleTaskHandle is set to 1 in FreeRTOSConfig.h.
Simply returns the handle of the idle task. It is not valid to call xTaskGetIdleTaskHandle() before the scheduler has been started.
◆ uxTaskGetSystemState()
configUSE_TRACE_FACILITY must be defined as 1 in FreeRTOSConfig.h for uxTaskGetSystemState() to be available.
uxTaskGetSystemState() populates an TaskStatus_t structure for each task in the system. TaskStatus_t structures contain, among other things, members for the task handle, task name, task priority, task state, and total amount of run time consumed by the task. See the TaskStatus_t structure definition in this file for the full member list.
NOTE: This function is intended for debugging use only as its use results in the scheduler remaining suspended for an extended period.
- Parameters
-
pxTaskStatusArray | A pointer to an array of TaskStatus_t structures. The array must contain at least one TaskStatus_t structure for each task that is under the control of the RTOS. The number of tasks under the control of the RTOS can be determined using the uxTaskGetNumberOfTasks() API function. |
uxArraySize | The size of the array pointed to by the pxTaskStatusArray parameter. The size is specified as the number of indexes in the array, or the number of TaskStatus_t structures contained in the array, not by the number of bytes in the array. |
pulTotalRunTime | If configGENERATE_RUN_TIME_STATS is set to 1 in FreeRTOSConfig.h then *pulTotalRunTime is set by uxTaskGetSystemState() to the total run time (as defined by the run time stats clock, see http://www.freertos.org/rtos-run-time-stats.html) since the target booted. pulTotalRunTime can be set to NULL to omit the total run time information. |
- Returns
- The number of TaskStatus_t structures that were populated by uxTaskGetSystemState(). This should equal the number returned by the uxTaskGetNumberOfTasks() API function, but will be zero if the value passed in the uxArraySize parameter was too small.
Example usage:
// This example demonstrates how a human readable table of run time stats
// information is generated from raw data provided by uxTaskGetSystemState().
// The human readable table is written to pcWriteBuffer
void vTaskGetRunTimeStats( char *pcWriteBuffer )
{
TaskStatus_t *pxTaskStatusArray;
volatile UBaseType_t uxArraySize, x;
uint32_t ulTotalRunTime, ulStatsAsPercentage;
// Make sure the write buffer does not contain a string.
*pcWriteBuffer = 0x00;
// Take a snapshot of the number of tasks in case it changes while this
// function is executing.
uxArraySize = uxTaskGetNumberOfTasks();
// Allocate a TaskStatus_t structure for each task. An array could be
// allocated statically at compile time.
pxTaskStatusArray = pvPortMalloc( uxArraySize * sizeof( TaskStatus_t ) );
if( pxTaskStatusArray != NULL )
{
// Generate raw status information about each task.
uxArraySize = uxTaskGetSystemState( pxTaskStatusArray, uxArraySize, &ulTotalRunTime );
// For percentage calculations.
ulTotalRunTime /= 100UL;
// Avoid divide by zero errors.
if( ulTotalRunTime > 0 )
{
// For each populated position in the pxTaskStatusArray array,
// format the raw data as human readable ASCII data
for( x = 0; x < uxArraySize; x++ )
{
// What percentage of the total run time has the task used?
// This will always be rounded down to the nearest integer.
// ulTotalRunTimeDiv100 has already been divided by 100.
ulStatsAsPercentage = pxTaskStatusArray[ x ].ulRunTimeCounter / ulTotalRunTime;
if( ulStatsAsPercentage > 0UL )
{
sprintf( pcWriteBuffer, "%s\t\t%lu\t\t%lu%%\r\n", pxTaskStatusArray[ x ].pcTaskName, pxTaskStatusArray[ x ].ulRunTimeCounter, ulStatsAsPercentage );
}
else
{
// If the percentage is zero here then the task has
// consumed less than 1% of the total run time.
sprintf( pcWriteBuffer, "%s\t\t%lu\t\t<1%%\r\n", pxTaskStatusArray[ x ].pcTaskName, pxTaskStatusArray[ x ].ulRunTimeCounter );
}
pcWriteBuffer += strlen( ( char * ) pcWriteBuffer );
}
}
// The array is no longer needed, free the memory it consumes.
vPortFree( pxTaskStatusArray );
}
}
◆ vTaskList()
◆ vTaskGetRunTimeStats()
◆ xTaskGenericNotify()
◆ xTaskGenericNotifyFromISR()
◆ xTaskNotifyWait()
◆ vTaskNotifyGiveFromISR()
◆ ulTaskNotifyTake()
◆ xTaskNotifyStateClear()
◆ xTaskIncrementTick()
2555 if( xConstTickCount < xItemValue )
2590 #if ( configUSE_PREEMPTION == 1 )
2598 xSwitchRequired =
pdTRUE;
2613 #if ( ( configUSE_PREEMPTION == 1 ) && ( configUSE_TIME_SLICING == 1 ) )
2617 xSwitchRequired =
pdTRUE;
2626 #if ( configUSE_TICK_HOOK == 1 )
2647 #if ( configUSE_TICK_HOOK == 1 )
2654 #if ( configUSE_PREEMPTION == 1 )
2658 xSwitchRequired =
pdTRUE;
2667 return xSwitchRequired;
◆ vTaskPlaceOnEventList()
◆ vTaskPlaceOnUnorderedEventList()
◆ vTaskPlaceOnEventListRestricted()
◆ xTaskRemoveFromEventList()
2896 TCB_t *pxUnblockedTCB;
2944 #if( configUSE_TICKLESS_IDLE != 0 )
◆ xTaskRemoveFromUnorderedEventList()
2964 TCB_t *pxUnblockedTCB;
◆ vTaskSwitchContext()
2774 #if ( configGENERATE_RUN_TIME_STATS == 1 )
2776 #ifdef portALT_GET_RUN_TIME_COUNTER_VALUE
2777 portALT_GET_RUN_TIME_COUNTER_VALUE( ulTotalRunTime );
2779 ulTotalRunTime = portGET_RUN_TIME_COUNTER_VALUE();
2789 if( ulTotalRunTime > ulTaskSwitchedInTime )
2791 pxCurrentTCB->ulRunTimeCounter += ( ulTotalRunTime - ulTaskSwitchedInTime );
2797 ulTaskSwitchedInTime = ulTotalRunTime;
2809 #if ( configUSE_NEWLIB_REENTRANT == 1 )
◆ uxTaskResetEventItemValue()
◆ xTaskGetCurrentTaskHandle()
◆ vTaskSetTimeOutState()
◆ xTaskCheckForTimeOut()
3027 #if( INCLUDE_xTaskAbortDelay == 1 )
3038 #if ( INCLUDE_vTaskSuspend == 1 )
◆ vTaskMissedYield()
◆ xTaskGetSchedulerState()
◆ vTaskPriorityInherit()
◆ xTaskPriorityDisinherit()
◆ uxTaskGetTaskNumber()
◆ vTaskSetTaskNumber()
◆ vTaskStepTick()
◆ eTaskConfirmSleepModeStatus()
◆ pvTaskIncrementMutexHeldCount()
#define taskYIELD_IF_USING_PREEMPTION()
Definition: tasks.c:104
#define taskSELECT_HIGHEST_PRIORITY_TASK()
Definition: tasks.c:174
static PRIVILEGED_DATA List_t *volatile pxDelayedTaskList
Definition: tasks.c:378
#define portMAX_DELAY
Definition: portmacro.h:106
static PRIVILEGED_DATA List_t xPendingReadyList
Definition: tasks.c:380
ListItem_t xStateListItem
Definition: tasks.c:301
eNotifyAction
Definition: task.h:123
UBaseType_t uxPriority
Definition: tasks.c:303
#define portPRIVILEGE_BIT
Definition: FreeRTOS.h:688
#define portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR(x)
Definition: FreeRTOS.h:807
#define configASSERT(x)
Definition: FreeRTOSConfig.h:162
eTaskState
Definition: task.h:112
static PRIVILEGED_INITIALIZED_DATA volatile TickType_t xNextTaskUnblockTime
Definition: tasks.c:404
#define listCURRENT_LIST_LENGTH(pxList)
Definition: list.h:296
#define taskSWITCH_DELAYED_LISTS()
Definition: tasks.c:239
#define errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY
Definition: projdefs.h:95
#define pdFAIL
Definition: projdefs.h:90
PRIVILEGED_FUNCTION void vListInsert(List_t *const pxList, ListItem_t *const pxNewListItem)
Definition: list.c:145
#define portTICK_TYPE_EXIT_CRITICAL()
Definition: FreeRTOS.h:805
static PRIVILEGED_INITIALIZED_DATA volatile BaseType_t xSchedulerRunning
Definition: tasks.c:399
static PRIVILEGED_INITIALIZED_DATA volatile TickType_t xTickCount
Definition: tasks.c:397
#define listGET_OWNER_OF_HEAD_ENTRY(pxList)
Definition: list.h:348
PRIVILEGED_FUNCTION void vListInsertEnd(List_t *const pxList, ListItem_t *const pxNewListItem)
Definition: list.c:116
#define NULL
Definition: usbd_def.h:53
#define pdPASS
Definition: projdefs.h:89
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS()
Definition: FreeRTOS.h:680
uint32_t TickType_t
Definition: portmacro.h:105
#define listGET_LIST_ITEM_VALUE(pxListItem)
Definition: list.h:249
#define listSET_LIST_ITEM_VALUE(pxListItem, xValue)
Definition: list.h:239
#define taskENTER_CRITICAL()
Definition: task.h:217
static PRIVILEGED_INITIALIZED_DATA TaskHandle_t xIdleTaskHandle
Definition: tasks.c:405
#define pdFALSE
Definition: projdefs.h:86
#define portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR()
Definition: FreeRTOS.h:806
static PRIVILEGED_FUNCTION void prvAddCurrentTaskToDelayedList(TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely)
Definition: tasks.c:4692
unsigned long UBaseType_t
Definition: portmacro.h:99
#define traceTASK_SWITCHED_OUT()
Definition: FreeRTOSConfig.h:92
PRIVILEGED_FUNCTION UBaseType_t uxListRemove(ListItem_t *const pxItemToRemove)
Definition: list.c:212
#define prvAddTaskToReadyList(pxTCB)
Definition: tasks.c:259
#define listGET_LIST_ITEM_OWNER(pxListItem)
Definition: list.h:230
#define configMINIMAL_STACK_SIZE
Definition: FreeRTOSConfig.h:111
eSleepModeStatus
Definition: task.h:181
#define configMAX_PRIORITIES
Definition: FreeRTOSConfig.h:110
PRIVILEGED_FUNCTION BaseType_t xPortStartScheduler(void)
Definition: port.c:312
void
Definition: png.h:1083
static PRIVILEGED_INITIALIZED_DATA volatile UBaseType_t uxSchedulerSuspended
Definition: tasks.c:415
#define portDISABLE_INTERRUPTS()
Definition: portmacro.h:143
portSTACK_TYPE StackType_t
Definition: portmacro.h:97
PRIVILEGED_FUNCTION BaseType_t xTimerCreateTimerTask(void)
#define traceTASK_SWITCHED_IN()
Definition: FreeRTOSConfig.h:89
#define listLIST_IS_EMPTY(pxList)
Definition: list.h:291
Definition: FreeRTOS.h:910
ListItem_t xEventListItem
Definition: tasks.c:302
char pcTaskName[configMAX_TASK_NAME_LEN]
Definition: tasks.c:305
void vTaskSetTimeOutState(TimeOut_t *const pxTimeOut)
Definition: tasks.c:3007
PRIVILEGED_INITIALIZED_DATA TCB_t *volatile pxCurrentTCB
Definition: tasks.c:372
static void prvResetNextTaskUnblockTime(void)
Definition: tasks.c:3635
#define taskCHECK_FOR_STACK_OVERFLOW()
Definition: StackMacros.h:165
#define prvGetTCBFromHandle(pxHandle)
Definition: tasks.c:272
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID()
Definition: FreeRTOS.h:740
static PRIVILEGED_INITIALIZED_DATA volatile UBaseType_t uxCurrentNumberOfTasks
Definition: tasks.c:396
PRIVILEGED_FUNCTION void vPortEndScheduler(void)
Definition: port.c:399
long BaseType_t
Definition: portmacro.h:98
#define pdTRUE
Definition: projdefs.h:87
static PRIVILEGED_INITIALIZED_DATA volatile BaseType_t xNumOfOverflows
Definition: tasks.c:402
static PRIVILEGED_INITIALIZED_DATA volatile UBaseType_t uxPendedTicks
Definition: tasks.c:400
#define traceTASK_INCREMENT_TICK(xTickCount)
Definition: FreeRTOS.h:546
void vApplicationTickHook(void)
Application Idle Hook.
Definition: cpu_utils.c:89
BaseType_t xOverflowCount
Definition: task.h:137
#define taskEXIT_CRITICAL()
Definition: task.h:232
static PRIVILEGED_DATA List_t pxReadyTasksLists[configMAX_PRIORITIES]
Definition: tasks.c:375
#define portTICK_TYPE_ENTER_CRITICAL()
Definition: FreeRTOS.h:804
#define listLIST_ITEM_CONTAINER(pxListItem)
Definition: list.h:367
BaseType_t xTaskIncrementTick(void)
Definition: tasks.c:2499
TickType_t xTimeOnEntering
Definition: task.h:138
#define taskEVENT_LIST_ITEM_VALUE_IN_USE
Definition: tasks.c:285
static PRIVILEGED_INITIALIZED_DATA volatile BaseType_t xYieldPending
Definition: tasks.c:401
#define tskIDLE_PRIORITY
Definition: task.h:193
#define mtCOVERAGE_TEST_MARKER()
Definition: FreeRTOS.h:748