#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 |
struct error error_generate | ( | uint8_t | num, | |
uint8_t | severity, | |||
PGM_P | t, | |||
PGM_P | f, | |||
uint16_t | l | |||
) | [read] |
Definition at line 44 of file error.c.
References error::err_num, parse_symbols::f, error::file, parse_symbols::l, error::line, error::severity, and error::text.
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().
struct error_fct g_error_fct |
Definition at line 32 of file error.c.
Referenced by error_init(), error_register_debug(), error_register_emerg(), error_register_error(), error_register_notice(), and error_register_warning().