firmware
IEM Firmware Documentation
|
#include <stdlib.h>
#include <string.h>
#include "FreeRTOS.h"
#include "task.h"
#include "timers.h"
#include "stack_macros.h"
Data Structures | |
struct | tskTaskControlBlock |
Typedefs | |
typedef struct tskTaskControlBlock | tskTCB |
typedef tskTCB | TCB_t |
#define configIDLE_TASK_NAME "IDLE" |
#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE |
#define portRESET_READY_PRIORITY | ( | uxPriority, | |
uxTopReadyPriority ) |
#define prvAddTaskToReadyList | ( | pxTCB | ) |
#define prvGetTCBFromHandle | ( | pxHandle | ) |
#define pxCurrentTCB xTaskGetCurrentTaskHandle() |
#define taskATTRIBUTE_IS_IDLE ( UBaseType_t ) ( 1U << 0U ) |
#define taskBITS_PER_BYTE ( ( size_t ) 8 ) |
#define taskEVENT_LIST_ITEM_VALUE_IN_USE ( ( uint16_t ) 0x8000U ) |
#define taskNOT_WAITING_NOTIFICATION ( ( uint8_t ) 0 ) /* Must be zero as it is the initialised value. */ |
#define taskNOTIFICATION_RECEIVED ( ( uint8_t ) 2 ) |
#define taskRECORD_READY_PRIORITY | ( | uxPriority | ) |
#define taskRESET_READY_PRIORITY | ( | uxPriority | ) |
#define taskSELECT_HIGHEST_PRIORITY_TASK | ( | xCoreID | ) |
#define taskSWITCH_DELAYED_LISTS | ( | ) |
#define taskTASK_IS_RUNNING | ( | pxTCB | ) |
#define taskTASK_IS_RUNNING_OR_SCHEDULED_TO_YIELD | ( | pxTCB | ) |
#define taskTASK_NOT_RUNNING ( ( BaseType_t ) ( -1 ) ) |
#define taskTASK_SCHEDULED_TO_YIELD ( ( BaseType_t ) ( -2 ) ) |
#define taskWAITING_NOTIFICATION ( ( uint8_t ) 1 ) |
#define taskYIELD_ANY_CORE_IF_USING_PREEMPTION | ( | pxTCB | ) |
#define taskYIELD_TASK_CORE_IF_USING_PREEMPTION | ( | pxTCB | ) |
#define tskBLOCKED_CHAR ( 'B' ) |
#define tskDELETED_CHAR ( 'D' ) |
#define tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB ( ( uint8_t ) 0 ) |
#define tskREADY_CHAR ( 'R' ) |
#define tskRUNNING_CHAR ( 'X' ) |
#define tskSET_NEW_STACKS_TO_KNOWN_VALUE 0 |
#define tskSTACK_FILL_BYTE ( 0xa5U ) |
#define tskSTATICALLY_ALLOCATED_STACK_AND_TCB ( ( uint8_t ) 2 ) |
#define tskSTATICALLY_ALLOCATED_STACK_ONLY ( ( uint8_t ) 1 ) |
#define tskSUSPENDED_CHAR ( 'S' ) |
typedef struct tskTaskControlBlock tskTCB |
char * pcTaskGetName | ( | TaskHandle_t | xTaskToQuery | ) |
|
static |
THIS IS THE RTOS IDLE TASK - WHICH IS CREATED AUTOMATICALLY WHEN THE SCHEDULER IS STARTED.
|
static |
|
static |
|
static |
THIS FUNCTION IS CALLED FROM THE RTOS IDLE TASK
|
static |
|
static |
Utility task that simply returns pdTRUE if the task referenced by xTask is currently in the Suspended state, or pdFALSE if the task referenced by xTask is in any other state.
|
static |
|
static |
UBaseType_t uxTaskGetNumberOfTasks | ( | void | ) |
TickType_t uxTaskResetEventItemValue | ( | void | ) |
void vTaskEndScheduler | ( | void | ) |
void vTaskInternalSetTimeOutState | ( | TimeOut_t *const | pxTimeOut | ) |
void vTaskMissedYield | ( | void | ) |
void vTaskPlaceOnEventList | ( | List_t *const | pxEventList, |
const TickType_t | xTicksToWait ) |
void vTaskPlaceOnUnorderedEventList | ( | List_t * | pxEventList, |
const TickType_t | xItemValue, | ||
const TickType_t | xTicksToWait ) |
void vTaskRemoveFromUnorderedEventList | ( | ListItem_t * | pxEventListItem, |
const TickType_t | xItemValue ) |
void vTaskResetState | ( | void | ) |
void vTaskSetTimeOutState | ( | TimeOut_t *const | pxTimeOut | ) |
void vTaskStartScheduler | ( | void | ) |
void vTaskSuspendAll | ( | void | ) |
void vTaskSwitchContext | ( | BaseType_t | xCoreID | ) |
BaseType_t xTaskCatchUpTicks | ( | TickType_t | xTicksToCatchUp | ) |
BaseType_t xTaskCheckForTimeOut | ( | TimeOut_t *const | pxTimeOut, |
TickType_t *const | pxTicksToWait ) |
TickType_t xTaskGetTickCount | ( | void | ) |
TickType_t xTaskGetTickCountFromISR | ( | void | ) |
BaseType_t xTaskIncrementTick | ( | void | ) |
BaseType_t xTaskRemoveFromEventList | ( | const List_t *const | pxEventList | ) |
BaseType_t xTaskResumeAll | ( | void | ) |
portDONT_DISCARD PRIVILEGED_DATA TCB_t* volatile pxCurrentTCBs[configNUMBER_OF_CORES] |
|
static |
Points to the delayed task list currently being used.
|
static |
Points to the delayed task list currently being used to hold tasks that have overflowed the current tick count.
|
static |
Prioritised ready tasks.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Delayed tasks.
|
static |
Delayed tasks (two lists are used - one for delays that have overflowed the current tick count.
|
static |
Holds the handles of the idle tasks. The idle tasks are created automatically when the scheduler is started.
|
static |
|
static |
|
static |
|
static |
Tasks that have been readied while the scheduler was suspended. They will be moved to the ready list when the scheduler is resumed.
|
static |
|
static |
|
static |