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)
99 #if defined (__AVR_ATmega32__)
101 #elif defined (__AVR_ATmega128__) || defined (__AVR_ATmega1284__)
103 #if defined (OS_CONFIG_SIM) && OS_CONFIG_SIM == true
104 #if defined (__AVR_ATmega128__)
108 TCCR2B = (1 << CS20);
109 TIMSK2 |= 1 << TOIE2;
113 #error Unknown CPU defined!
132 for (uint8_t i = 0; i < 11; i++) {
enum tasks_e TaskType
Type for task reference.
enum StatusType_e StatusType
Type for status.
volatile struct counter_s AlarmBaseType
Type for alarm base.
void ErrorHook(StatusType error)
PostTask hook function.
uint64_t TickType
Data type of counter values.
Assert macros and functions.
void PreTaskHook(void)
PreTask hook function.
#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.