Prusa MINI Firmware overview
|
Go to the documentation of this file.
74 #ifndef INC_FREERTOS_H
75 #error "include FreeRTOS.h must appear in source files before include task.h"
88 #define tskKERNEL_VERSION_NUMBER "V9.0.0"
89 #define tskKERNEL_VERSION_MAJOR 9
90 #define tskKERNEL_VERSION_MINOR 0
91 #define tskKERNEL_VERSION_BUILD 0
193 #define tskIDLE_PRIORITY ( ( UBaseType_t ) 0U )
203 #define taskYIELD() portYIELD()
217 #define taskENTER_CRITICAL() portENTER_CRITICAL()
218 #define taskENTER_CRITICAL_FROM_ISR() portSET_INTERRUPT_MASK_FROM_ISR()
232 #define taskEXIT_CRITICAL() portEXIT_CRITICAL()
233 #define taskEXIT_CRITICAL_FROM_ISR( x ) portCLEAR_INTERRUPT_MASK_FROM_ISR( x )
242 #define taskDISABLE_INTERRUPTS() portDISABLE_INTERRUPTS()
252 #define taskENABLE_INTERRUPTS() portENABLE_INTERRUPTS()
257 #define taskSCHEDULER_SUSPENDED ( ( BaseType_t ) 0 )
258 #define taskSCHEDULER_NOT_STARTED ( ( BaseType_t ) 1 )
259 #define taskSCHEDULER_RUNNING ( ( BaseType_t ) 2 )
359 #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
361 const char *
const pcName,
362 const uint16_t usStackDepth,
363 void *
const pvParameters,
475 #if( configSUPPORT_STATIC_ALLOCATION == 1 )
477 const char *
const pcName,
478 const uint32_t ulStackDepth,
479 void *
const pvParameters,
552 #if( portUSING_MPU_WRAPPERS == 1 )
1376 #ifdef configUSE_APPLICATION_TASK_TAG
1377 #if configUSE_APPLICATION_TASK_TAG == 1
1398 #if( configNUM_THREAD_LOCAL_STORAGE_POINTERS > 0 )
1712 #define xTaskNotify( xTaskToNotify, ulValue, eAction ) xTaskGenericNotify( ( xTaskToNotify ), ( ulValue ), ( eAction ), NULL )
1713 #define xTaskNotifyAndQuery( xTaskToNotify, ulValue, eAction, pulPreviousNotifyValue ) xTaskGenericNotify( ( xTaskToNotify ), ( ulValue ), ( eAction ), ( pulPreviousNotifyValue ) )
1803 #define xTaskNotifyFromISR( xTaskToNotify, ulValue, eAction, pxHigherPriorityTaskWoken ) xTaskGenericNotifyFromISR( ( xTaskToNotify ), ( ulValue ), ( eAction ), NULL, ( pxHigherPriorityTaskWoken ) )
1804 #define xTaskNotifyAndQueryFromISR( xTaskToNotify, ulValue, eAction, pulPreviousNotificationValue, pxHigherPriorityTaskWoken ) xTaskGenericNotifyFromISR( ( xTaskToNotify ), ( ulValue ), ( eAction ), ( pulPreviousNotificationValue ), ( pxHigherPriorityTaskWoken ) )
1925 #define xTaskNotifyGive( xTaskToNotify ) xTaskGenericNotify( ( xTaskToNotify ), ( 0 ), eIncrement, NULL )
PRIVILEGED_FUNCTION TaskHandle_t xTaskGetIdleTaskHandle(void)
struct xTASK_PARAMETERS TaskParameters_t
uint16_t usStackHighWaterMark
Definition: task.h:177
struct xTASK_STATUS TaskStatus_t
TaskFunction_t pvTaskCode
Definition: task.h:156
#define portNUM_CONFIGURABLE_REGIONS
Definition: portable.h:126
BaseType_t(* TaskHookFunction_t)(void *)
Definition: task.h:109
void * pvParameters
Definition: task.h:159
UBaseType_t uxCurrentPriority
Definition: task.h:173
PRIVILEGED_FUNCTION BaseType_t xTaskGenericNotifyFromISR(TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue, BaseType_t *pxHigherPriorityTaskWoken)
eNotifyAction
Definition: task.h:123
PRIVILEGED_FUNCTION BaseType_t xTaskGetSchedulerState(void)
#define pxMutexHolder
Definition: queue.c:108
PRIVILEGED_FUNCTION eSleepModeStatus eTaskConfirmSleepModeStatus(void)
PRIVILEGED_FUNCTION BaseType_t xTaskNotifyWait(uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait)
PRIVILEGED_FUNCTION BaseType_t xTaskGenericNotify(TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue)
uint16_t usStackDepth
Definition: task.h:158
PRIVILEGED_FUNCTION void vTaskNotifyGiveFromISR(TaskHandle_t xTaskToNotify, BaseType_t *pxHigherPriorityTaskWoken)
eTaskState
Definition: task.h:112
PRIVILEGED_FUNCTION BaseType_t xTaskPriorityDisinherit(TaskHandle_t const pxMutexHolder)
PRIVILEGED_FUNCTION void vTaskStartScheduler(void)
Definition: tasks.c:1826
struct xMEMORY_REGION MemoryRegion_t
PRIVILEGED_FUNCTION BaseType_t xTaskCallApplicationTaskHook(TaskHandle_t xTask, void *pvParameter)
const char * pcTaskName
Definition: task.h:170
const char *const pcName
Definition: task.h:157
PRIVILEGED_FUNCTION void vTaskPriorityInherit(TaskHandle_t const pxMutexHolder)
PRIVILEGED_FUNCTION void vTaskPlaceOnEventListRestricted(List_t *const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely)
PRIVILEGED_FUNCTION void vTaskPlaceOnUnorderedEventList(List_t *pxEventList, const TickType_t xItemValue, const TickType_t xTicksToWait)
Definition: tasks.c:2837
PRIVILEGED_FUNCTION TickType_t xTaskGetTickCountFromISR(void)
Definition: tasks.c:2142
PRIVILEGED_FUNCTION TickType_t xTaskGetTickCount(void)
Definition: tasks.c:2127
uint32_t ulRunTimeCounter
Definition: task.h:175
PRIVILEGED_FUNCTION void vTaskMissedYield(void)
Definition: tasks.c:3076
PRIVILEGED_FUNCTION eTaskState eTaskGetState(TaskHandle_t xTask)
UBaseType_t xTaskNumber
Definition: task.h:171
PRIVILEGED_FUNCTION BaseType_t xTaskRemoveFromUnorderedEventList(ListItem_t *pxEventListItem, const TickType_t xItemValue)
Definition: tasks.c:2962
PRIVILEGED_FUNCTION void vTaskSuspend(TaskHandle_t xTaskToSuspend)
#define PRIVILEGED_FUNCTION
Definition: mpu_wrappers.h:204
PRIVILEGED_FUNCTION BaseType_t xTaskAbortDelay(TaskHandle_t xTask)
uint32_t TickType_t
Definition: portmacro.h:105
PRIVILEGED_FUNCTION BaseType_t xTaskRemoveFromEventList(const List_t *const pxEventList)
Definition: tasks.c:2894
PRIVILEGED_FUNCTION UBaseType_t uxTaskGetNumberOfTasks(void)
Definition: tasks.c:2173
PRIVILEGED_FUNCTION BaseType_t xTaskResumeFromISR(TaskHandle_t xTaskToResume)
PRIVILEGED_FUNCTION void vTaskPlaceOnEventList(List_t *const pxEventList, const TickType_t xTicksToWait)
Definition: tasks.c:2820
void * TaskHandle_t
Definition: task.h:103
PRIVILEGED_FUNCTION void * pvTaskIncrementMutexHeldCount(void)
PRIVILEGED_FUNCTION void vTaskDelete(TaskHandle_t xTaskToDelete)
PRIVILEGED_FUNCTION TaskHandle_t xTaskGetHandle(const char *pcNameToQuery)
PRIVILEGED_FUNCTION UBaseType_t uxTaskGetSystemState(TaskStatus_t *const pxTaskStatusArray, const UBaseType_t uxArraySize, uint32_t *const pulTotalRunTime)
unsigned long UBaseType_t
Definition: portmacro.h:99
PRIVILEGED_FUNCTION TaskHandle_t xTaskGetCurrentTaskHandle(void)
PRIVILEGED_FUNCTION UBaseType_t uxTaskPriorityGet(TaskHandle_t xTask)
eSleepModeStatus
Definition: task.h:181
struct xTIME_OUT TimeOut_t
PRIVILEGED_FUNCTION void vTaskResume(TaskHandle_t xTaskToResume)
MemoryRegion_t xRegions[portNUM_CONFIGURABLE_REGIONS]
Definition: task.h:162
portSTACK_TYPE StackType_t
Definition: portmacro.h:97
uint32_t ulLengthInBytes
Definition: task.h:147
StackType_t * puxStackBuffer
Definition: task.h:161
PRIVILEGED_FUNCTION BaseType_t xTaskIncrementTick(void)
Definition: tasks.c:2499
Definition: FreeRTOS.h:910
void(* TaskFunction_t)(void *)
Definition: projdefs.h:77
PRIVILEGED_FUNCTION void vTaskPrioritySet(TaskHandle_t xTask, UBaseType_t uxNewPriority)
UBaseType_t uxPriority
Definition: task.h:160
PRIVILEGED_FUNCTION uint32_t ulTaskNotifyTake(BaseType_t xClearCountOnExit, TickType_t xTicksToWait)
TaskHandle_t xHandle
Definition: task.h:169
PRIVILEGED_FUNCTION void vTaskGetInfo(TaskHandle_t xTask, TaskStatus_t *pxTaskStatus, BaseType_t xGetFreeStackSpace, eTaskState eState)
PRIVILEGED_FUNCTION void vTaskGetRunTimeStats(char *pcWriteBuffer)
uint32_t ulParameters
Definition: task.h:148
PRIVILEGED_FUNCTION char * pcTaskGetName(TaskHandle_t xTaskToQuery)
Definition: tasks.c:2181
long BaseType_t
Definition: portmacro.h:98
PRIVILEGED_FUNCTION UBaseType_t uxTaskGetTaskNumber(TaskHandle_t xTask)
PRIVILEGED_FUNCTION void vTaskDelay(const TickType_t xTicksToDelay)
PRIVILEGED_FUNCTION BaseType_t xTaskResumeAll(void)
Definition: tasks.c:2017
PRIVILEGED_FUNCTION void vTaskSetTaskNumber(TaskHandle_t xTask, const UBaseType_t uxHandle)
UBaseType_t uxBasePriority
Definition: task.h:174
BaseType_t xOverflowCount
Definition: task.h:137
PRIVILEGED_FUNCTION void vTaskStepTick(const TickType_t xTicksToJump)
PRIVILEGED_FUNCTION void vTaskSwitchContext(void)
Definition: tasks.c:2761
void * pvBaseAddress
Definition: task.h:146
StackType_t * pxStackBase
Definition: task.h:176
eTaskState eCurrentState
Definition: task.h:172
PRIVILEGED_FUNCTION UBaseType_t uxTaskGetStackHighWaterMark(TaskHandle_t xTask)
TickType_t xTimeOnEntering
Definition: task.h:138
PRIVILEGED_FUNCTION void vTaskSuspendAll(void)
Definition: tasks.c:1944
PRIVILEGED_FUNCTION void vTaskEndScheduler(void)
Definition: tasks.c:1933
PRIVILEGED_FUNCTION void vTaskAllocateMPURegions(TaskHandle_t xTask, const MemoryRegion_t *const pxRegions)
BaseType_t xTaskNotifyStateClear(TaskHandle_t xTask)
PRIVILEGED_FUNCTION BaseType_t xTaskCheckForTimeOut(TimeOut_t *const pxTimeOut, TickType_t *const pxTicksToWait)
Definition: tasks.c:3015
PRIVILEGED_FUNCTION void vTaskList(char *pcWriteBuffer)
PRIVILEGED_FUNCTION void vTaskDelayUntil(TickType_t *const pxPreviousWakeTime, const TickType_t xTimeIncrement)
PRIVILEGED_FUNCTION TickType_t uxTaskResetEventItemValue(void)
Definition: tasks.c:4162
PRIVILEGED_FUNCTION UBaseType_t uxTaskPriorityGetFromISR(TaskHandle_t xTask)
PRIVILEGED_FUNCTION void vTaskSetTimeOutState(TimeOut_t *const pxTimeOut)
Definition: tasks.c:3007