#include <stdio.h>
Go to the source code of this file.
Defines | |
#define | _TRACE_ (DISABLE) |
This is Compilation switches definition. | |
#define | _ASSERT_ (DISABLE) |
#define | Assert(expr) |
This macro is used to test fatal errors which may be caused by software or hardware bugs. | |
Functions | |
void | trace (const U8 *str) |
void | trace_nl (void) |
void | trace_hex (U8 val) |
void | trace_hex16 (U16 val) |
void | trace_hex32 (U32 val) |
void | trace_u8 (U8 val) |
void | trace_u16 (U16 val) |
void | trace_u32 (U32 val) |
void | trace_ptwo (U8 hex) |
Variables | |
U8 _MEM_TYPE_SLOW_ | g_trace_en |
Definition in file debug.h.
#define _TRACE_ (DISABLE) |
#define Assert | ( | expr | ) |
Value:
{ \ if( !(expr) ) \ { \ trace("\n\r"); \ trace(__FILE__); \ trace(":"); \ trace_u16(__LINE__); \ while(1) { \ } \ } \ }
The macro tests if the expression is TRUE. If it is not, a fatal error is detected and the application hangs.
expr | expression which is supposed to be TRUE. |
Definition at line 76 of file debug.h.
Referenced by nf_cache_fbb_flush(), nf_cache_fbb_refill(), nf_cache_lut_flush(), nf_cache_lut_refill(), nf_check_fbb(), nf_check_lut(), nf_fetch_free_block(), nf_rebuild(), nf_refine_index(), nf_swap(), and nf_write_lut().
void trace | ( | const U8 * | str | ) |
Referenced by nf_cache_fbb_flush(), nf_cache_fbb_refill(), nf_cache_lut_flush(), nf_cache_lut_refill(), nf_check_fbb(), nf_copy_tail(), nf_dfc_write_stop(), nf_erase_old_blocks(), nf_read_10(), nf_rebuild(), nf_scan(), nf_swap(), nf_translate(), nf_write_10(), and nf_write_lut().
void trace_nl | ( | void | ) |
Referenced by nf_cache_fbb_flush(), nf_cache_fbb_refill(), nf_cache_lut_flush(), nf_cache_lut_refill(), nf_check_fbb(), nf_copy_tail(), nf_dfc_write_stop(), nf_erase_old_blocks(), nf_read_10(), nf_rebuild(), nf_scan(), nf_swap(), nf_translate(), nf_write_10(), and nf_write_lut().
void trace_hex | ( | U8 | val | ) |
Referenced by nf_check_fbb(), nf_rebuild(), nf_scan(), and nf_write_lut().
void trace_hex16 | ( | U16 | val | ) |
Referenced by nf_cache_fbb_flush(), nf_cache_fbb_refill(), nf_cache_lut_flush(), nf_cache_lut_refill(), nf_check_fbb(), nf_erase_old_blocks(), nf_read_10(), nf_rebuild(), nf_scan(), nf_write_10(), and nf_write_lut().
void trace_hex32 | ( | U32 | val | ) |
Referenced by nf_cache_lut_refill(), nf_copy_tail(), nf_dfc_write_stop(), nf_read_10(), nf_rebuild(), nf_swap(), nf_translate(), and nf_write_10().
void trace_u8 | ( | U8 | val | ) |
void trace_u16 | ( | U16 | val | ) |
void trace_ptwo | ( | U8 | hex | ) |
U8 _MEM_TYPE_SLOW_ g_trace_en |