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)
96 #if defined (__AVR_ATmega32__)
98 #elif defined (__AVR_ATmega128__) || defined (__AVR_ATmega1284__)
100 #if defined (OS_CONFIG_SIM) && OS_CONFIG_SIM == true
101 #if defined (__AVR_ATmega128__)
105 TCCR2B = (1 << CS20);
106 TIMSK2 |= 1 << TOIE2;
110 #error Unknown CPU defined!
129 for (uint8_t i = 0; i < 11; i++) {
enum tasks_e TaskType
Type for task reference.
uint8_t EventMaskType
Data type of the event mask.
enum StatusType_e StatusType
Type for status.
void ErrorHook(StatusType error)
PostTask hook function.
Assert macros and functions.
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.