aversive_10-03-12/modules/debug/error/error.c File Reference

#include <string.h>
#include <avr/io.h>
#include <aversive.h>
#include <aversive/error.h>

Go to the source code of this file.

Functions

void error_init (void)
struct error error_generate (uint8_t num, uint8_t severity, PGM_P t, PGM_P f, uint16_t l)
void error_register_emerg (void(*f)(struct error *,...))
void error_register_error (void(*f)(struct error *,...))
void error_register_warning (void(*f)(struct error *,...))
void error_register_notice (void(*f)(struct error *,...))
void error_register_debug (void(*f)(struct error *,...))

Variables

struct error_fct g_error_fct


Function Documentation

struct error error_generate ( uint8_t  num,
uint8_t  severity,
PGM_P  t,
PGM_P  f,
uint16_t  l 
) [read]

void error_init ( void   ) 

All fcts pointers to NULL

Definition at line 35 of file error.c.

References g_error_fct, IRQ_LOCK, and IRQ_UNLOCK.

void error_register_debug ( void(*)(struct error *,...)  f  ) 

Register log function for DEBUG level

Definition at line 103 of file error.c.

References error_fct::debug, parse_symbols::f, g_error_fct, IRQ_LOCK, and IRQ_UNLOCK.

Referenced by main().

void error_register_emerg ( void(*)(struct error *,...)  f  ) 

Register log function for EMERG level

Definition at line 67 of file error.c.

References error_fct::emerg, parse_symbols::f, g_error_fct, IRQ_LOCK, and IRQ_UNLOCK.

Referenced by main().

void error_register_error ( void(*)(struct error *,...)  f  ) 

Register log function for ERROR level

Definition at line 76 of file error.c.

References error_fct::error, parse_symbols::f, g_error_fct, IRQ_LOCK, and IRQ_UNLOCK.

Referenced by main().

void error_register_notice ( void(*)(struct error *,...)  f  ) 

Register log function for NOTICE level

Definition at line 94 of file error.c.

References parse_symbols::f, g_error_fct, IRQ_LOCK, IRQ_UNLOCK, and error_fct::notice.

Referenced by main().

void error_register_warning ( void(*)(struct error *,...)  f  ) 

Register log function for WARNING level

Definition at line 85 of file error.c.

References parse_symbols::f, g_error_fct, IRQ_LOCK, IRQ_UNLOCK, and error_fct::warning.

Referenced by main().


Variable Documentation


Generated on Fri Mar 12 06:32:05 2010 for AVR by  doxygen 1.5.6