Go to the documentation of this file.
27 #include <util/delay.h>
31 #define OS_CONFIG_GEN_FUNC_DECL
33 #undef OS_CONFIG_GEN_FUNC_DECL
38 extern volatile bool isISR;
58 extern volatile uint32_t
sysTick;
133 #if (defined(OS_CONFIG_HOOK_ERROR) && OS_CONFIG_HOOK_ERROR == true)
140 extern volatile bool blockErrorHook;
143 #if defined(OS_CONFIG_MAX_ERROR_PARAM) && OS_CONFIG_MAX_ERROR_PARAM >= 0
153 #if defined(OS_CONFIG_EXTENDED) && OS_CONFIG_EXTENDED == true
154 #define OS_EXTENDED true
156 #define OS_EXTENDED false
uint8_t *const OS_SystemStackPtr
Pointer to SystemStack base.
enum tasks_e TaskType
Type for task reference.
struct resource_s *volatile isrResourceQueue
Resource queue for resources taken by Cat2 ISRs.
volatile uint8_t blockScheduling
Block scheduling.
struct scheduleTable_s * ScheduleTable_Cfg[]
Current schedule table control blocks.
volatile struct internalResource_s IntResourceNULL_s
Internal resource for tasks with no internal resource defined.
volatile TaskType currentTask
Task currently being executed.
volatile struct resource_s * Res_Cfg[]
Current resource control blocks.
volatile uint32_t sysTick
Current system tick.
volatile uint8_t needSysTickEval
SysTick must be evaluated during timer interrupt.
volatile struct task_s * TCB_Cfg[]
Current task control blocks.
volatile uint8_t isCat2ISR
Priority of current Cat 2 ISR (zero if not in Cat 2 ISR)
volatile bool isISR
Is currently ISR context?
Data structure for OS resource.
Structure used for saving error information.
Data structure for counter.
volatile struct alarm_s * Alarm_Cfg[]
Current alarm control blocks.
Structure for schedule table.
Data structure for alarm.
uint8_t OS_SystemStack[]
Array used as SystemStack (value points to stack top)
volatile struct counter_s * Counter_Cfg[]
Current counter control blocks.
bool forceScheduling
Force the next rescheduling.
Data structure for internal resource.
volatile uint8_t needScheduling
Scheduling needed during timer interrupt.