AutosarOS
|
Application code for hook test procedure 1. More...
Go to the source code of this file.
Macros | |
#define | DELAY_MS(ms) _delay_ms(ms) |
Functions | |
TASK (Idle) | |
TASK (Task1) | |
TASK (Task2) | |
void | StartupHook (void) |
void | ShutdownHook (StatusType error) |
void | PreTaskHook (void) |
PreTask hook function. More... | |
void | PostTaskHook (void) |
PostTask hook function. More... | |
void | ErrorHook (StatusType error) |
PostTask hook function. More... | |
ISR (TIMER2_OVF_vect) | |
Variables | |
volatile bool | startupHooksCalled = false |
volatile bool | errorHookCalled = false |
Application code for hook test procedure 1.
Definition in file App.c.
void ErrorHook | ( | StatusType | error | ) |
void PostTaskHook | ( | void | ) |
PostTask hook function.
This hook function is called before a task leaves the running state but before a new task is selected. The ID of the task can be evaluated using OS_GetTaskID().
void PreTaskHook | ( | void | ) |
PreTask hook function.
This hook function is called after a new task has entered the running state but before it is executed. The ID of the task can be evaluated using OS_GetTaskID().
void ShutdownHook | ( | StatusType | error | ) |