Main Page   Modules   Data Structures   File List   Globals  

error.h File Reference

Header file for error.c and macros for error handling / messaging. More...

#include <avr/pgmspace.h>

Go to the source code of this file.

Functions

void otosError (uint8_t *pMessage)
 Handle otOS error.

void otosError_P (PGM_P pMessage)
 Handle otOS error.

void otosSetErrorHandler (void(*pFunc)(uint8_t *))
 Set error handler function (data space).

void otosSetErrorHandler_P (void(*pFunc)(PGM_P))
 Set error handler function (program space).


Detailed Description

Header file for error.c and macros for error handling / messaging.

Definition in file error.h.


Function Documentation

void otosError uint8_t *    pMessage
 

Handle otOS error.

This function will be called by otOS in case of a fatal error. If an error handler was set with otosSetErrorHandler(), this will be called, else the system is halted. otOS applications may call this function, too.

Parameters:
pMessage Message (from program memory) to be displayed.

Definition at line 67 of file error.c.

Referenced by otosScheduler().

void otosError_P PGM_P    pMessage
 

Handle otOS error.

This function will be called by otOS in case of a fatal error. If an error handler was set with otosSetErrorHandler_P(), this will be called, else the system is halted. otOS applications may call this function, too.

Parameters:
pMessage Message (from program memory) to be displayed.

Definition at line 87 of file error.c.

Referenced by otosCreateMainTask(), and otosWakeup().

void otosSetErrorHandler void(*    pFunc)(uint8_t *) [inline]
 

Set error handler function (data space).

This function sets the function, that handles error message strings from data space (RAM).

Parameters:
pFunc Pointer to error handler function, that takes a string from data space

Definition at line 107 of file error.c.

void otosSetErrorHandler_P void(*    pFunc)(PGM_P) [inline]
 

Set error handler function (program space).

This function sets the function, that handles error message strings from program space (FLASH).

Parameters:
pFunc Pointer to error handler function, that takes a string from program space

Definition at line 124 of file error.c.


Generated on Sat Jan 25 18:41:43 2003 for otOS by doxygen1.3-rc2