A(rduino) OS
Simple Task Scheduler for Arduino Development Board
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
hooks_01.c File Reference
#include "aos.h"
#include <avr/io.h>
#include <util/delay.h>

Go to the source code of this file.

Data Structures

struct  system_data
 some dummy system data More...
 

Macros

#define AOS_TICK_FREQUENCY   100
 

Functions

void hook_stack_corruption (void)
 this hook will be called when we discover that stack corruption occured it should block, since the system become faulty. More...
 
void hook_oom (void)
 this hook will be called when we discover that there is no memory left, during task creation. More...
 
void hook_idle (void)
 this hook will be called whenever idle task is scheduled for execution More...
 
void task1 (void *a_data UNUSED)
 
void task2 (void *a_data UNUSED)
 
int main (void)
 

Macro Definition Documentation

#define AOS_TICK_FREQUENCY   100
Examples:
hooks_01.c.

Definition at line 7 of file hooks_01.c.

Function Documentation

void hook_idle ( void  )

this hook will be called whenever idle task is scheduled for execution

Examples:
hooks_01.c.

Definition at line 46 of file hooks_01.c.

void hook_oom ( void  )

this hook will be called when we discover that there is no memory left, during task creation.

Examples:
hooks_01.c.

Definition at line 35 of file hooks_01.c.

void hook_stack_corruption ( void  )

this hook will be called when we discover that stack corruption occured it should block, since the system become faulty.

Examples:
hooks_01.c.

Definition at line 23 of file hooks_01.c.

int main ( void  )
Examples:
hooks_01.c.

Definition at line 68 of file hooks_01.c.

void task1 ( void *a_data  UNUSED)
Examples:
hooks_01.c.

Definition at line 52 of file hooks_01.c.

void task2 ( void *a_data  UNUSED)
Examples:
hooks_01.c.

Definition at line 60 of file hooks_01.c.