AutosarOS
/github/workspace/AutosarOS/App.c File Reference

User application code. More...

#include "assert.h"
#include "OS_API.h"
#include <avr/io.h>
#include <util/delay.h>
Include dependency graph for App.c:

Go to the source code of this file.

Macros

#define DELAY_MS(ms)   _delay_ms(ms)
 

Functions

 TASK (Idle)
 
 TASK (T1)
 
 TASK (T2)
 
 TASK (T3)
 
 TASK (T4)
 
 TASK (T5)
 
 TASK (T6)
 
 TASK (T7)
 
 TASK (T8)
 
 TASK (T9)
 
 TASK (T10)
 
 TASK (T11)
 
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...
 
ProtectionReturnType ProtectionHook (StatusType fatalError)
 ProtectionHook function. More...
 
 ISR (INT0_vect)
 
 ISR (INT1_vect)
 
 ISR (TIMER1_COMPA_vect)
 
 ALARMCALLBACK (AlarmCb)
 
 ISR (TIMER2_OVF_vect)
 

Detailed Description

User application code.

This file contains code provided by the user.

Date
2019-09-02
Author
Pascal Romahn

Definition in file App.c.

Macro Definition Documentation

◆ DELAY_MS

#define DELAY_MS (   ms)    _delay_ms(ms)

Definition at line 30 of file App.c.

Function Documentation

◆ ALARMCALLBACK()

ALARMCALLBACK ( AlarmCb  )

Definition at line 833 of file App.c.

◆ ErrorHook()

void ErrorHook ( StatusType  error)

PostTask hook function.

This hook function is called when a system service return StatusType not equal E_OK.

Warning
This function is executed with interrupts disabled and must not activate them!
Parameters
errorError that caused the ErrorHook to be called.

Definition at line 784 of file App.c.

◆ ISR() [1/4]

ISR ( INT0_vect  )

Definition at line 806 of file App.c.

◆ ISR() [2/4]

ISR ( INT1_vect  )

Definition at line 820 of file App.c.

◆ ISR() [3/4]

ISR ( TIMER1_COMPA_vect  )

Definition at line 827 of file App.c.

◆ ISR() [4/4]

ISR ( TIMER2_OVF_vect  )

Definition at line 838 of file App.c.

◆ PostTaskHook()

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().

Warning
This function is executed with interrupts disabled and must not activate them!

Definition at line 776 of file App.c.

Here is the caller graph for this function:

◆ PreTaskHook()

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().

Warning
This function is executed with interrupts disabled and must not activate them!

Definition at line 768 of file App.c.

Here is the caller graph for this function:

◆ ProtectionHook()

ProtectionReturnType ProtectionHook ( StatusType  fatalError)

ProtectionHook function.

This hook function is called when an error is detected by the protection facilities (e.g. stack monitoring).

Warning
This function is executed with interrupts disabled and must not activate them!
Parameters
fatalErrorType of error that triggered the protection hook
Returns
Action the OS shall take after the protection hook

Definition at line 797 of file App.c.

Here is the caller graph for this function:

◆ ShutdownHook()

void ShutdownHook ( StatusType  error)

Definition at line 757 of file App.c.

Here is the caller graph for this function:

◆ StartupHook()

void StartupHook ( void  )

Definition at line 702 of file App.c.

◆ TASK() [1/12]

TASK ( Idle  )

Definition at line 33 of file App.c.

◆ TASK() [2/12]

TASK ( T1  )

Definition at line 38 of file App.c.

◆ TASK() [3/12]

TASK ( T10  )

Definition at line 405 of file App.c.

◆ TASK() [4/12]

TASK ( T11  )

Definition at line 636 of file App.c.

◆ TASK() [5/12]

TASK ( T2  )

Definition at line 51 of file App.c.

◆ TASK() [6/12]

TASK ( T3  )

Definition at line 178 of file App.c.

◆ TASK() [7/12]

TASK ( T4  )

Definition at line 214 of file App.c.

◆ TASK() [8/12]

TASK ( T5  )

Definition at line 228 of file App.c.

◆ TASK() [9/12]

TASK ( T6  )

Definition at line 240 of file App.c.

◆ TASK() [10/12]

TASK ( T7  )

Definition at line 252 of file App.c.

◆ TASK() [11/12]

TASK ( T8  )

Definition at line 336 of file App.c.

◆ TASK() [12/12]

TASK ( T9  )

Definition at line 371 of file App.c.