Threads.h
Go to the documentation of this file.
#ifndef __Threads_H
#define __Threads_H
#ifdef __cplusplus
extern "C" {
#endif
/*Defines of Threads*/
extern void vTask_FsmVCR( void *pvParameters );
extern void vTask_FsmTape( void *pvParameters );
extern void vTask_Read_Buttons( void *pvParameters );
#ifdef __cplusplus
}
#endif
#endif
bFsmVCRDispatchEvent
_Bool bFsmVCRDispatchEvent(int32_t s32Event)
dispatch event VCR FSM
Definition: FsmVCR.c:100
portSUPPRESS_TICKS_AND_SLEEP
#define portSUPPRESS_TICKS_AND_SLEEP(xExpectedIdleTime)
Definition: portmacro.h:117
pcTaskGetName
char * pcTaskGetName(TaskHandle_t xTaskToQuery)
Definition: tasks.c:2268
eIncrement
@ eIncrement
Definition: task.h:86
traceTASK_DELAY
#define traceTASK_DELAY()
Definition: FreeRTOS.h:505
configSTACK_DEPTH_TYPE
#define configSTACK_DEPTH_TYPE
Definition: FreeRTOS.h:827
taskYIELD_IF_USING_PREEMPTION
#define taskYIELD_IF_USING_PREEMPTION()
Definition: tasks.c:65
xPortStartScheduler
BaseType_t xPortStartScheduler(void)
Definition: port.c:252
xTaskRemoveFromEventList
BaseType_t xTaskRemoveFromEventList(const List_t *const pxEventList)
Definition: tasks.c:2983
xTasksWaitingTermination
static PRIVILEGED_DATA List_t xTasksWaitingTermination
Definition: tasks.c:359
tskTCB
struct tskTaskControlBlock tskTCB
taskSELECT_HIGHEST_PRIORITY_TASK
#define taskSELECT_HIGHEST_PRIORITY_TASK()
Definition: tasks.c:150
xTaskCallApplicationTaskHook
BaseType_t xTaskCallApplicationTaskHook(TaskHandle_t xTask, void *pvParameter) PRIVILEGED_FUNCTION
uxTaskGetSystemState
UBaseType_t uxTaskGetSystemState(TaskStatus_t *const pxTaskStatusArray, const UBaseType_t uxArraySize, uint32_t *const pulTotalRunTime) PRIVILEGED_FUNCTION
portPRE_TASK_DELETE_HOOK
#define portPRE_TASK_DELETE_HOOK(pvTaskToDelete, pxYieldPending)
Definition: FreeRTOS.h:271
pxDelayedTaskList
static PRIVILEGED_DATA List_t *volatile pxDelayedTaskList
Definition: tasks.c:353
vTask_FsmTape
void vTask_FsmTape(void *pvParameters)
run FSM for Tape
Definition: Threads.c:52
listSET_LIST_ITEM_OWNER
#define listSET_LIST_ITEM_OWNER(pxListItem, pxOwner)
Definition: list.h:180
xTaskResumeAll
BaseType_t xTaskResumeAll(void)
Definition: tasks.c:2104
portTICK_RATE_MS
#define portTICK_RATE_MS
Definition: FreeRTOS.h:913
portMAX_DELAY
#define portMAX_DELAY
Definition: portmacro.h:65
tskDELETED_CHAR
#define tskDELETED_CHAR
Definition: tasks.c:115
TaskHookFunction_t
BaseType_t(* TaskHookFunction_t)(void *)
Definition: task.h:68
task.h
tskTaskControlBlock::pxStack
StackType_t * pxStack
Definition: tasks.c:279
vTaskResume
void vTaskResume(TaskHandle_t xTaskToResume)
Definition: tasks.c:1776
xPendingReadyList
static PRIVILEGED_DATA List_t xPendingReadyList
Definition: tasks.c:355
xTASK_STATUS::uxCurrentPriority
UBaseType_t uxCurrentPriority
Definition: task.h:135
taskRESET_READY_PRIORITY
#define taskRESET_READY_PRIORITY(uxPriority)
Definition: tasks.c:171
xLIST
Definition: list.h:165
BUTTON_T6
#define BUTTON_T6
Definition: AppBoard2Buttons.h:29
vTaskAllocateMPURegions
void vTaskAllocateMPURegions(TaskHandle_t xTask, const MemoryRegion_t *const pxRegions) PRIVILEGED_FUNCTION
uxTopReadyPriority
static PRIVILEGED_DATA volatile UBaseType_t uxTopReadyPriority
Definition: tasks.c:373
traceTASK_PRIORITY_SET
#define traceTASK_PRIORITY_SET(pxTask, uxNewPriority)
Definition: FreeRTOS.h:509
eNotifyAction
eNotifyAction
Definition: task.h:83
xTASK_PARAMETERS::pvParameters
void * pvParameters
Definition: task.h:118
pxMutexHolder
#define pxMutexHolder
Definition: queue.c:67
uxTaskGetNumberOfTasks
UBaseType_t uxTaskGetNumberOfTasks(void)
Definition: tasks.c:2260
uxSchedulerSuspended
static PRIVILEGED_DATA volatile UBaseType_t uxSchedulerSuspended
Definition: tasks.c:390
portTASK_FUNCTION_PROTO
#define portTASK_FUNCTION_PROTO(vFunction, pvParameters)
Definition: portmacro.h:147
vTaskEndScheduler
void vTaskEndScheduler(void)
Definition: tasks.c:2020
BUTTON_T3
#define BUTTON_T3
Definition: AppBoard2Buttons.h:26
traceTASK_NOTIFY
#define traceTASK_NOTIFY()
Definition: FreeRTOS.h:629
vTaskStepTick
void vTaskStepTick(const TickType_t xTicksToJump) PRIVILEGED_FUNCTION
configMINIMAL_STACK_SIZE
#define configMINIMAL_STACK_SIZE
Definition: FreeRTOSConfig.h:25
vTaskPrioritySet
void vTaskPrioritySet(TaskHandle_t xTask, UBaseType_t uxNewPriority)
Definition: tasks.c:1465
vPortFree
void vPortFree(void *pv)
Definition: heap_1.c:123
xQueueReceive
BaseType_t xQueueReceive(QueueHandle_t xQueue, void *const pvBuffer, TickType_t xTicksToWait)
Definition: queue.c:1240
xTASK_PARAMETERS::xRegions
MemoryRegion_t xRegions[portNUM_CONFIGURABLE_REGIONS]
Definition: task.h:121
prvInitialiseNewTask
static void prvInitialiseNewTask(TaskFunction_t pxTaskCode, const char *const pcName, const uint32_t ulStackDepth, void *const pvParameters, UBaseType_t uxPriority, TaskHandle_t *const pxCreatedTask, TCB_t *pxNewTCB, const MemoryRegion_t *const xRegions)
Definition: tasks.c:822
portPRIVILEGE_BIT
#define portPRIVILEGE_BIT
Definition: FreeRTOS.h:719
portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR
#define portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR(x)
Definition: FreeRTOS.h:863
tskTaskControlBlock
Definition: tasks.c:269
portBYTE_ALIGNMENT_MASK
#define portBYTE_ALIGNMENT_MASK
Definition: portable.h:65
TCB_t
tskTCB TCB_t
Definition: tasks.c:342
vListInitialise
void vListInitialise(List_t *const pxList)
Definition: list.c:38
eTaskState
eTaskState
Definition: task.h:72
ES2_V4_app.h
global header file for project
vTaskInternalSetTimeOutState
void vTaskInternalSetTimeOutState(TimeOut_t *const pxTimeOut)
Definition: tasks.c:3097
xTASK_PARAMETERS::usStackDepth
uint16_t usStackDepth
Definition: task.h:117
xLIST_ITEM
Definition: list.h:141
uxDeletedTasksWaitingCleanUp
static PRIVILEGED_DATA volatile UBaseType_t uxDeletedTasksWaitingCleanUp
Definition: tasks.c:360
xTaskAbortDelay
BaseType_t xTaskAbortDelay(TaskHandle_t xTask) PRIVILEGED_FUNCTION
PRIVILEGED_DATA
#define PRIVILEGED_DATA
Definition: mpu_wrappers.h:175
vTaskStartScheduler
void vTaskStartScheduler(void)
Definition: tasks.c:1900
listCURRENT_LIST_LENGTH
#define listCURRENT_LIST_LENGTH(pxList)
Definition: list.h:255
xTASK_STATUS::xHandle
TaskHandle_t xHandle
Definition: task.h:131
taskSWITCH_DELAYED_LISTS
#define taskSWITCH_DELAYED_LISTS()
Definition: tasks.c:214
errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY
#define errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY
Definition: projdefs.h:54
pdFAIL
#define pdFAIL
Definition: projdefs.h:49
portCLEAN_UP_TCB
#define portCLEAN_UP_TCB(pxTCB)
Definition: FreeRTOS.h:267
uxPendedTicks
static PRIVILEGED_DATA volatile UBaseType_t uxPendedTicks
Definition: tasks.c:375
tskSTACK_FILL_BYTE
#define tskSTACK_FILL_BYTE
Definition: tasks.c:77
vTask_FsmVCR
void vTask_FsmVCR(void *pvParameters)
run FSM for VCR
Definition: Threads.c:19
eNoAction
@ eNoAction
Definition: task.h:84
vTaskPlaceOnEventList
void vTaskPlaceOnEventList(List_t *const pxEventList, const TickType_t xTicksToWait)
Definition: tasks.c:2909
traceTASK_RESUME_FROM_ISR
#define traceTASK_RESUME_FROM_ISR(pxTaskToResume)
Definition: FreeRTOS.h:521
portTICK_TYPE_EXIT_CRITICAL
#define portTICK_TYPE_EXIT_CRITICAL()
Definition: FreeRTOS.h:861
traceTASK_PRIORITY_DISINHERIT
#define traceTASK_PRIORITY_DISINHERIT(pxTCBOfMutexHolder, uxOriginalPriority)
Definition: FreeRTOS.h:347
uxTaskResetEventItemValue
TickType_t uxTaskResetEventItemValue(void)
Definition: tasks.c:4382
listIS_CONTAINED_WITHIN
#define listIS_CONTAINED_WITHIN(pxList, pxListItem)
Definition: list.h:318
xTASK_STATUS::xTaskNumber
UBaseType_t xTaskNumber
Definition: task.h:133
uxListRemove
UBaseType_t uxListRemove(ListItem_t *const pxItemToRemove)
Definition: list.c:171
prvCheckTasksWaitingTermination
static void prvCheckTasksWaitingTermination(void)
Definition: tasks.c:3467
vTaskDelayUntil
void vTaskDelayUntil(TickType_t *const pxPreviousWakeTime, const TickType_t xTimeIncrement)
Definition: tasks.c:1203
tskTaskControlBlock::ucNotifyState
volatile uint8_t ucNotifyState
Definition: tasks.c:325
prvTaskIsTaskSuspended
static BaseType_t prvTaskIsTaskSuspended(const TaskHandle_t xTask) PRIVILEGED_FUNCTION
Definition: tasks.c:1730
vTask_FsmVCR
void vTask_FsmVCR(void *pvParameters)
run FSM for VCR
Definition: Threads.c:19
tskTaskControlBlock::xStateListItem
ListItem_t xStateListItem
Definition: tasks.c:276
xTaskGetIdleTaskHandle
TaskHandle_t xTaskGetIdleTaskHandle(void) PRIVILEGED_FUNCTION
vApplicationIdleHook
void vApplicationIdleHook(void)
count cycles for idle task
Definition: Main.c:134
listGET_OWNER_OF_HEAD_ENTRY
#define listGET_OWNER_OF_HEAD_ENTRY(pxList)
Definition: list.h:307
xTASK_PARAMETERS
Definition: task.h:114
eInvalid
@ eInvalid
Definition: task.h:78
xTASK_PARAMETERS::pvTaskCode
TaskFunction_t pvTaskCode
Definition: task.h:115
xTaskGenericNotifyFromISR
BaseType_t xTaskGenericNotifyFromISR(TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue, BaseType_t *pxHigherPriorityTaskWoken)
Definition: tasks.c:4669
tskSTATICALLY_ALLOCATED_STACK_ONLY
#define tskSTATICALLY_ALLOCATED_STACK_ONLY
Definition: tasks.c:98
xMEMORY_REGION
Definition: task.h:104
xQueueTape
void * xQueueTape
Definition: Globals.c:14
eSetBits
@ eSetBits
Definition: task.h:85
traceTASK_NOTIFY_WAIT
#define traceTASK_NOTIFY_WAIT()
Definition: FreeRTOS.h:625
vTaskNotifyGiveFromISR
void vTaskNotifyGiveFromISR(TaskHandle_t xTaskToNotify, BaseType_t *pxHigherPriorityTaskWoken)
Definition: tasks.c:4793
BUTTON_T7
#define BUTTON_T7
Definition: AppBoard2Buttons.h:30
xTaskGenericNotify
BaseType_t xTaskGenericNotify(TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue)
Definition: tasks.c:4563
xTimerCreateTimerTask
BaseType_t xTimerCreateTimerTask(void) PRIVILEGED_FUNCTION
xSchedulerRunning
static PRIVILEGED_DATA volatile BaseType_t xSchedulerRunning
Definition: tasks.c:374
traceINCREASE_TICK_COUNT
#define traceINCREASE_TICK_COUNT(x)
Definition: FreeRTOS.h:314
vTaskSwitchContext
void vTaskSwitchContext(void)
Definition: tasks.c:2850
eRunning
@ eRunning
Definition: task.h:73
tskREADY_CHAR
#define tskREADY_CHAR
Definition: tasks.c:114
traceTASK_NOTIFY_TAKE_BLOCK
#define traceTASK_NOTIFY_TAKE_BLOCK()
Definition: FreeRTOS.h:613
StaticTask_t
struct xSTATIC_TCB StaticTask_t
tskTaskControlBlock::pcTaskName
char pcTaskName[configMAX_TASK_NAME_LEN]
Definition: tasks.c:280
pdPASS
#define pdPASS
Definition: projdefs.h:48
uxTaskNumber
static PRIVILEGED_DATA UBaseType_t uxTaskNumber
Definition: tasks.c:378
PRIVILEGED_FUNCTION
#define PRIVILEGED_FUNCTION
Definition: mpu_wrappers.h:174
eDeleted
@ eDeleted
Definition: task.h:77
portTASK_CALLS_SECURE_FUNCTIONS
#define portTASK_CALLS_SECURE_FUNCTIONS()
Definition: FreeRTOS.h:763
portCONFIGURE_TIMER_FOR_RUN_TIME_STATS
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS()
Definition: FreeRTOS.h:711
TickType_t
uint32_t TickType_t
Definition: portmacro.h:64
xDelayedTaskList2
static PRIVILEGED_DATA List_t xDelayedTaskList2
Definition: tasks.c:352
uxTaskGetStackHighWaterMark
UBaseType_t uxTaskGetStackHighWaterMark(TaskHandle_t xTask) PRIVILEGED_FUNCTION
traceTASK_SUSPEND
#define traceTASK_SUSPEND(pxTaskToSuspend)
Definition: FreeRTOS.h:513
pvTaskIncrementMutexHeldCount
void * pvTaskIncrementMutexHeldCount(void) PRIVILEGED_FUNCTION
configMAX_TASK_NAME_LEN
#define configMAX_TASK_NAME_LEN
Definition: FreeRTOSConfig.h:23
tskTaskControlBlock::xEventListItem
ListItem_t xEventListItem
Definition: tasks.c:277
listGET_LIST_ITEM_VALUE
#define listGET_LIST_ITEM_VALUE(pxListItem)
Definition: list.h:208
eSetValueWithOverwrite
@ eSetValueWithOverwrite
Definition: task.h:87
listSET_LIST_ITEM_VALUE
#define listSET_LIST_ITEM_VALUE(pxListItem, xValue)
Definition: list.h:198
BUTTON_T5
#define BUTTON_T5
Definition: AppBoard2Buttons.h:28
eStandardSleep
@ eStandardSleep
Definition: task.h:146
taskENTER_CRITICAL
#define taskENTER_CRITICAL()
Definition: task.h:179
TaskHandle_t
void * TaskHandle_t
Definition: task.h:62
vTask_FsmTape
void vTask_FsmTape(void *pvParameters)
run FSM for Tape
Definition: Threads.c:52
eReady
@ eReady
Definition: task.h:74
pdFALSE
#define pdFALSE
Definition: projdefs.h:45
portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR
#define portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR()
Definition: FreeRTOS.h:862
vListInsertEnd
void vListInsertEnd(List_t *const pxList, ListItem_t *const pxNewListItem)
Definition: list.c:75
prvAddCurrentTaskToDelayedList
static void prvAddCurrentTaskToDelayedList(TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely)
Definition: tasks.c:4912
configMAX_PRIORITIES
#define configMAX_PRIORITIES
Definition: FreeRTOSConfig.h:22
xTASK_PARAMETERS::puxStackBuffer
StackType_t * puxStackBuffer
Definition: task.h:120
UBaseType_t
unsigned long UBaseType_t
Definition: portmacro.h:58
vTaskDelete
void vTaskDelete(TaskHandle_t xTaskToDelete)
Definition: tasks.c:1111
traceLOW_POWER_IDLE_END
#define traceLOW_POWER_IDLE_END()
Definition: FreeRTOS.h:324
traceTASK_NOTIFY_WAIT_BLOCK
#define traceTASK_NOTIFY_WAIT_BLOCK()
Definition: FreeRTOS.h:621
traceTASK_RESUME
#define traceTASK_RESUME(pxTaskToResume)
Definition: FreeRTOS.h:517
vTaskGetInfo
void vTaskGetInfo(TaskHandle_t xTask, TaskStatus_t *pxTaskStatus, BaseType_t xGetFreeStackSpace, eTaskState eState) PRIVILEGED_FUNCTION
eAbortSleep
@ eAbortSleep
Definition: task.h:145
xTASK_STATUS::eCurrentState
eTaskState eCurrentState
Definition: task.h:134
prvAddTaskToReadyList
#define prvAddTaskToReadyList(pxTCB)
Definition: tasks.c:234
listGET_LIST_ITEM_OWNER
#define listGET_LIST_ITEM_OWNER(pxListItem)
Definition: list.h:189
xTIME_OUT
Definition: task.h:95
eSleepModeStatus
eSleepModeStatus
Definition: task.h:144
vTaskDelay
void vTaskDelay(const TickType_t xTicksToDelay) PRIVILEGED_FUNCTION
Definition: tasks.c:1287
portDISABLE_INTERRUPTS
#define portDISABLE_INTERRUPTS()
Definition: portmacro.h:105
eTaskGetState
eTaskState eTaskGetState(TaskHandle_t xTask)
Definition: tasks.c:1332
vPortEndScheduler
void vPortEndScheduler(void)
Definition: port.c:339
portASSERT_IF_IN_ISR
#define portASSERT_IF_IN_ISR()
Definition: FreeRTOS.h:795
vTaskList
void vTaskList(char *pcWriteBuffer) PRIVILEGED_FUNCTION
xTASK_PARAMETERS::uxPriority
UBaseType_t uxPriority
Definition: task.h:119
eNoTasksWaitingTimeout
@ eNoTasksWaitingTimeout
Definition: task.h:147
xDelayedTaskList1
static PRIVILEGED_DATA List_t xDelayedTaskList1
Definition: tasks.c:351
pxPortInitialiseStack
StackType_t * pxPortInitialiseStack(StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters)
Definition: port.c:176
xTASK_STATUS::pxStackBase
StackType_t * pxStackBase
Definition: task.h:138
StackType_t
portSTACK_TYPE StackType_t
Definition: portmacro.h:56
xYieldPending
static PRIVILEGED_DATA volatile BaseType_t xYieldPending
Definition: tasks.c:376
xQueueVCR
void * xQueueVCR
Definition: Globals.c:13
taskSCHEDULER_NOT_STARTED
#define taskSCHEDULER_NOT_STARTED
Definition: task.h:220
xTASK_STATUS::pcTaskName
const char * pcTaskName
Definition: task.h:132
listLIST_IS_EMPTY
#define listLIST_IS_EMPTY(pxList)
Definition: list.h:250
stack_macros.h
portRESET_READY_PRIORITY
#define portRESET_READY_PRIORITY(uxPriority, uxTopReadyPriority)
Definition: tasks.c:172
tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE
#define tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE
Definition: tasks.c:96
uxCurrentNumberOfTasks
static PRIVILEGED_DATA volatile UBaseType_t uxCurrentNumberOfTasks
Definition: tasks.c:371
taskYIELD
#define taskYIELD()
Definition: task.h:165
xTASK_STATUS::usStackHighWaterMark
uint16_t usStackHighWaterMark
Definition: task.h:139
eTaskConfirmSleepModeStatus
eSleepModeStatus eTaskConfirmSleepModeStatus(void) PRIVILEGED_FUNCTION
portPOINTER_SIZE_TYPE
#define portPOINTER_SIZE_TYPE
Definition: FreeRTOS.h:289
vListInsert
void vListInsert(List_t *const pxList, ListItem_t *const pxNewListItem)
Definition: list.c:104
vTaskPriorityDisinheritAfterTimeout
void vTaskPriorityDisinheritAfterTimeout(TaskHandle_t const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask) PRIVILEGED_FUNCTION
xSTATIC_TCB
Definition: FreeRTOS.h:986
BUTTON_T4
#define BUTTON_T4
Definition: AppBoard2Buttons.h:27
BUTTON_T2
#define BUTTON_T2
Definition: AppBoard2Buttons.h:25
vTaskSuspend
void vTaskSuspend(TaskHandle_t xTaskToSuspend)
Definition: tasks.c:1629
taskSCHEDULER_SUSPENDED
#define taskSCHEDULER_SUSPENDED
Definition: task.h:219
xTaskGetTickCount
TickType_t xTaskGetTickCount(void)
Definition: tasks.c:2214
uxCriticalNesting
static UBaseType_t uxCriticalNesting
Definition: port.c:135
xTASK_STATUS
Definition: task.h:130
vTaskSetTimeOutState
void vTaskSetTimeOutState(TimeOut_t *const pxTimeOut)
Definition: tasks.c:3085
TaskFunction_t
void(* TaskFunction_t)(void *)
Definition: projdefs.h:36
FreeRTOS.h
configPRE_SUPPRESS_TICKS_AND_SLEEP_PROCESSING
#define configPRE_SUPPRESS_TICKS_AND_SLEEP_PROCESSING(x)
Definition: FreeRTOS.h:743
xTaskResumeFromISR
BaseType_t xTaskResumeFromISR(TaskHandle_t xTaskToResume) PRIVILEGED_FUNCTION
tskBLOCKED_CHAR
#define tskBLOCKED_CHAR
Definition: tasks.c:113
prvAddNewTaskToReadyList
static void prvAddNewTaskToReadyList(TCB_t *pxNewTCB)
Definition: tasks.c:1026
configINITIAL_TICK_COUNT
#define configINITIAL_TICK_COUNT
Definition: FreeRTOS.h:846
bFsmTapeDispatchEvent
_Bool bFsmTapeDispatchEvent(int32_t s32Event)
dispatch event Tape FSM
Definition: FsmTape.c:68
configLIST_VOLATILE
#define configLIST_VOLATILE
Definition: list.h:93
prvResetNextTaskUnblockTime
static void prvResetNextTaskUnblockTime(void)
Definition: tasks.c:3729
tskTaskControlBlock::uxPriority
UBaseType_t uxPriority
Definition: tasks.c:278
tskSTATICALLY_ALLOCATED_STACK_AND_TCB
#define tskSTATICALLY_ALLOCATED_STACK_AND_TCB
Definition: tasks.c:99
traceTASK_DELAY_UNTIL
#define traceTASK_DELAY_UNTIL(x)
Definition: FreeRTOS.h:501
prvGetTCBFromHandle
#define prvGetTCBFromHandle(pxHandle)
Definition: tasks.c:247
tskTaskControlBlock::ulNotifiedValue
volatile uint32_t ulNotifiedValue
Definition: tasks.c:324
ulTaskNotifyTake
uint32_t ulTaskNotifyTake(BaseType_t xClearCountOnExit, TickType_t xTicksToWait)
Definition: tasks.c:4415
portASSERT_IF_INTERRUPT_PRIORITY_INVALID
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID()
Definition: FreeRTOS.h:779
vTaskMissedYield
void vTaskMissedYield(void)
Definition: tasks.c:3168
xTASK_STATUS::ulRunTimeCounter
uint32_t ulRunTimeCounter
Definition: task.h:137
vTask_Read_Buttons
void vTask_Read_Buttons(void *pvParameters)
read buttons and store events in queue
Definition: Threads.c:84
traceTASK_NOTIFY_TAKE
#define traceTASK_NOTIFY_TAKE()
Definition: FreeRTOS.h:617
vTaskGetRunTimeStats
void vTaskGetRunTimeStats(char *pcWriteBuffer) PRIVILEGED_FUNCTION
u32AppBoard2ButtonsGetState
uint32_t u32AppBoard2ButtonsGetState(void)
Returns the pressed Buttons (bit coded see AppBoard2Buttons.h)
Definition: AppBoard2Buttons.c:85
portENABLE_INTERRUPTS
#define portENABLE_INTERRUPTS()
Definition: portmacro.h:106
timers.h
xTaskNotifyWait
BaseType_t xTaskNotifyWait(uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait)
Definition: tasks.c:4483
portCLEAR_INTERRUPT_MASK_FROM_ISR
#define portCLEAR_INTERRUPT_MASK_FROM_ISR(x)
Definition: portmacro.h:110
BUTTON_T1
#define BUTTON_T1
Definition: AppBoard2Buttons.h:24
BUTTON_T0
#define BUTTON_T0
Definition: AppBoard2Buttons.h:23
taskNOT_WAITING_NOTIFICATION
#define taskNOT_WAITING_NOTIFICATION
Definition: tasks.c:69
tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB
#define tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB
Definition: tasks.c:97
xTaskGetCurrentTaskHandle
TaskHandle_t xTaskGetCurrentTaskHandle(void)
Definition: tasks.c:3755
eSuspended
@ eSuspended
Definition: task.h:76
portYIELD_WITHIN_API
#define portYIELD_WITHIN_API
Definition: FreeRTOS.h:723
xTIME_OUT::xOverflowCount
BaseType_t xOverflowCount
Definition: task.h:96
xNextTaskUnblockTime
static PRIVILEGED_DATA volatile TickType_t xNextTaskUnblockTime
Definition: tasks.c:379
BaseType_t
long BaseType_t
Definition: portmacro.h:57
pdTRUE
#define pdTRUE
Definition: projdefs.h:46
vTaskSetTaskNumber
void vTaskSetTaskNumber(TaskHandle_t xTask, const UBaseType_t uxHandle) PRIVILEGED_FUNCTION
listGET_OWNER_OF_NEXT_ENTRY
#define listGET_OWNER_OF_NEXT_ENTRY(pxTCB, pxList)
Definition: list.h:277
uxTaskGetTaskNumber
UBaseType_t uxTaskGetTaskNumber(TaskHandle_t xTask) PRIVILEGED_FUNCTION
tskTaskControlBlock::pxTopOfStack
volatile StackType_t * pxTopOfStack
Definition: tasks.c:270
bFsmVCRIsStateChanged
_Bool bFsmVCRIsStateChanged()
check if state changed
Definition: FsmVCR.c:113
traceTASK_INCREMENT_TICK
#define traceTASK_INCREMENT_TICK(xTickCount)
Definition: FreeRTOS.h:525
traceLOW_POWER_IDLE_BEGIN
#define traceLOW_POWER_IDLE_BEGIN()
Definition: FreeRTOS.h:319
taskWAITING_NOTIFICATION
#define taskWAITING_NOTIFICATION
Definition: tasks.c:70
taskNOTIFICATION_RECEIVED
#define taskNOTIFICATION_RECEIVED
Definition: tasks.c:71
vTask_Read_Buttons
void vTask_Read_Buttons(void *pvParameters)
read buttons and store events in queue
Definition: Threads.c:84
bFsmTapeIsStateChanged
_Bool bFsmTapeIsStateChanged()
check if state changed
Definition: FsmTape.c:81
xNumOfOverflows
static PRIVILEGED_DATA volatile BaseType_t xNumOfOverflows
Definition: tasks.c:377
traceTASK_NOTIFY_FROM_ISR
#define traceTASK_NOTIFY_FROM_ISR()
Definition: FreeRTOS.h:633
traceTASK_SWITCHED_IN
#define traceTASK_SWITCHED_IN()
Definition: FreeRTOS.h:308
traceTASK_NOTIFY_GIVE_FROM_ISR
#define traceTASK_NOTIFY_GIVE_FROM_ISR()
Definition: FreeRTOS.h:637
taskEXIT_CRITICAL
#define taskEXIT_CRITICAL()
Definition: task.h:194
xTaskPriorityInherit
BaseType_t xTaskPriorityInherit(TaskHandle_t const pxMutexHolder) PRIVILEGED_FUNCTION
pxReadyTasksLists
static PRIVILEGED_DATA List_t pxReadyTasksLists[configMAX_PRIORITIES]
Definition: tasks.c:350
xIdleTaskHandle
static PRIVILEGED_DATA TaskHandle_t xIdleTaskHandle
Definition: tasks.c:380
pxCurrentTCB
PRIVILEGED_DATA TCB_t *volatile pxCurrentTCB
Definition: tasks.c:347
configNUM_THREAD_LOCAL_STORAGE_POINTERS
#define configNUM_THREAD_LOCAL_STORAGE_POINTERS
Definition: FreeRTOSConfig.h:26
xTickCount
static PRIVILEGED_DATA volatile TickType_t xTickCount
Definition: tasks.c:372
portTICK_TYPE_ENTER_CRITICAL
#define portTICK_TYPE_ENTER_CRITICAL()
Definition: FreeRTOS.h:860
listLIST_ITEM_CONTAINER
#define listLIST_ITEM_CONTAINER(pxListItem)
Definition: list.h:326
xTaskIncrementTick
BaseType_t xTaskIncrementTick(void)
Definition: tasks.c:2588
vTaskSuspendAll
void vTaskSuspendAll(void)
Definition: tasks.c:2031
xTaskGetHandle
TaskHandle_t xTaskGetHandle(const char *pcNameToQuery) PRIVILEGED_FUNCTION
xTaskNotifyStateClear
BaseType_t xTaskNotifyStateClear(TaskHandle_t xTask)
Definition: tasks.c:4882
xTaskGetSchedulerState
BaseType_t xTaskGetSchedulerState(void) PRIVILEGED_FUNCTION
configASSERT
#define configASSERT(x)
Definition: FreeRTOS.h:235
portSETUP_TCB
#define portSETUP_TCB(pxTCB)
Definition: FreeRTOS.h:275
configEXPECTED_IDLE_TIME_BEFORE_SLEEP
#define configEXPECTED_IDLE_TIME_BEFORE_SLEEP
Definition: FreeRTOS.h:731
vTaskRemoveFromUnorderedEventList
void vTaskRemoveFromUnorderedEventList(ListItem_t *pxEventListItem, const TickType_t xItemValue)
Definition: tasks.c:3051
xTaskGetTickCountFromISR
TickType_t xTaskGetTickCountFromISR(void)
Definition: tasks.c:2229
traceTASK_SWITCHED_OUT
#define traceTASK_SWITCHED_OUT()
Definition: FreeRTOS.h:330
portTASK_FUNCTION
static portTASK_FUNCTION(prvIdleTask, pvParameters)
Definition: tasks.c:3223
xTaskPriorityDisinherit
BaseType_t xTaskPriorityDisinherit(TaskHandle_t const pxMutexHolder) PRIVILEGED_FUNCTION
xTIME_OUT::xTimeOnEntering
TickType_t xTimeOnEntering
Definition: task.h:97
vTaskPlaceOnUnorderedEventList
void vTaskPlaceOnUnorderedEventList(List_t *pxEventList, const TickType_t xItemValue, const TickType_t xTicksToWait)
Definition: tasks.c:2926
traceTASK_PRIORITY_INHERIT
#define traceTASK_PRIORITY_INHERIT(pxTCBOfMutexHolder, uxInheritedPriority)
Definition: FreeRTOS.h:339
xSuspendedTaskList
static PRIVILEGED_DATA List_t xSuspendedTaskList
Definition: tasks.c:366
taskEVENT_LIST_ITEM_VALUE_IN_USE
#define taskEVENT_LIST_ITEM_VALUE_IN_USE
Definition: tasks.c:260
taskCHECK_FOR_STACK_OVERFLOW
#define taskCHECK_FOR_STACK_OVERFLOW()
Definition: stack_macros.h:124
xTASK_STATUS::uxBasePriority
UBaseType_t uxBasePriority
Definition: task.h:136
traceTASK_CREATE
#define traceTASK_CREATE(pxNewTCB)
Definition: FreeRTOS.h:489
xTASK_PARAMETERS::pcName
const char *const pcName
Definition: task.h:116
prvInitialiseTaskLists
static void prvInitialiseTaskLists(static void prvCheckTasksWaitingTermination void)
Definition: tasks.c:439
vTaskDelay
void vTaskDelay(const TickType_t xTicksToDelay)
Definition: tasks.c:1287
configIDLE_TASK_NAME
#define configIDLE_TASK_NAME
Definition: tasks.c:129
taskSCHEDULER_RUNNING
#define taskSCHEDULER_RUNNING
Definition: task.h:221
xQueueSend
#define xQueueSend(xQueue, pvItemToQueue, xTicksToWait)
Definition: queue.h:478
eSetValueWithoutOverwrite
@ eSetValueWithoutOverwrite
Definition: task.h:88
tskSUSPENDED_CHAR
#define tskSUSPENDED_CHAR
Definition: tasks.c:116
portSTACK_GROWTH
#define portSTACK_GROWTH
Definition: portmacro.h:74
uxTaskPriorityGetFromISR
UBaseType_t uxTaskPriorityGetFromISR(TaskHandle_t xTask)
Definition: tasks.c:1425
vTaskPlaceOnEventListRestricted
void vTaskPlaceOnEventListRestricted(List_t *const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely) PRIVILEGED_FUNCTION
vListInitialiseItem
void vListInitialiseItem(ListItem_t *const pxItem)
Definition: list.c:63
tskIDLE_PRIORITY
#define tskIDLE_PRIORITY
Definition: task.h:155
eBlocked
@ eBlocked
Definition: task.h:75
portSET_INTERRUPT_MASK_FROM_ISR
#define portSET_INTERRUPT_MASK_FROM_ISR()
Definition: portmacro.h:109
pxOverflowDelayedTaskList
static PRIVILEGED_DATA List_t *volatile pxOverflowDelayedTaskList
Definition: tasks.c:354
xTaskCheckForTimeOut
BaseType_t xTaskCheckForTimeOut(TimeOut_t *const pxTimeOut, TickType_t *const pxTicksToWait)
Definition: tasks.c:3105
traceTASK_DELETE
#define traceTASK_DELETE(pxTaskToDelete)
Definition: FreeRTOS.h:497
mtCOVERAGE_TEST_MARKER
#define mtCOVERAGE_TEST_MARKER()
Definition: FreeRTOS.h:787
uxTaskPriorityGet
UBaseType_t uxTaskPriorityGet(TaskHandle_t xTask)
Definition: tasks.c:1403
prvDeleteTCB
static void prvDeleteTCB(TCB_t *pxTCB)
Definition: tasks.c:3675
pvPortMalloc
void * pvPortMalloc(size_t xWantedSize)
Definition: heap_1.c:71