Go to the documentation of this file.
19 #include <util/delay.h>
21 #if defined (OS_CONFIG_SIM) && OS_CONFIG_SIM == true
24 #define DELAY_MS(ms) _delay_ms(ms)
72 #if defined (__AVR_ATmega32__)
74 #elif defined (__AVR_ATmega128__) || defined (__AVR_ATmega1284__)
76 #if defined (OS_CONFIG_SIM) && OS_CONFIG_SIM == true
77 #if defined (__AVR_ATmega128__)
86 #error Unknown CPU defined!
107 for (uint8_t i = 0; i < 11; i++) {
115 static uint8_t count = 0;
127 }
else if (count == 2) {
137 }
else if (count == 3) {
154 static uint8_t count = 0;
166 }
else if (count == 2) {
176 }
else if (count == 3) {
volatile bool startupHooksCalled
enum tasks_e TaskType
Type for task reference.
enum StatusType_e StatusType
Type for status.
void ErrorHook(StatusType error)
PostTask hook function.
uint64_t TickType
Data type of counter values.
volatile bool errorHookCalled
Assert macros and functions.
@ RUNNING
The task is currently running.
void PreTaskHook(void)
PreTask hook function.
@ READY
The task is ready to be scheduled.
#define assert(expression)
@ SUSPENDED
The task is suspended and will not be scheduled.
void PostTaskHook(void)
PostTask hook function.
void ShutdownHook(StatusType error)
enum OsTaskState_e TaskStateType
Task state.