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)
119 #if defined (__AVR_ATmega32__)
121 #elif defined (__AVR_ATmega128__) || defined (__AVR_ATmega1284__)
123 #if defined (OS_CONFIG_SIM) && OS_CONFIG_SIM == true
124 #if defined (__AVR_ATmega128__)
128 TCCR2B = (1 << CS20);
129 TIMSK2 |= 1 << TOIE2;
133 #error Unknown CPU defined!
152 for (uint8_t i = 0; i < 11; i++) {
enum tasks_e TaskType
Type for task reference.
enum StatusType_e StatusType
Type for status.
void ErrorHook(StatusType error)
PostTask hook function.
Assert macros and functions.
@ SCHEDULETABLE_STOPPED
Schedule table is stopped.
void PreTaskHook(void)
PreTask hook function.
@ SCHEDULETABLE_NEXT
Schedule table is queued after another table.
#define StartScheduleTableRel
#define StartScheduleTableAbs
#define assert(expression)
@ SUSPENDED
The task is suspended and will not be scheduled.
#define NextScheduleTable
void PostTaskHook(void)
PostTask hook function.
enum scheduleTableState_e ScheduleTableStatusType
State of schedule table.
void ShutdownHook(StatusType error)
enum OsTaskState_e TaskStateType
Task state.
#define GetScheduleTableStatus
@ SCHEDULETABLE_RUNNING
Schedule table is running.