debug.h File Reference

#include <stdio.h>

Include dependency graph for debug.h:

This graph shows which files directly or indirectly include this file:

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


Detailed Description

This file holds definitions to help software designers in debugging their applications.

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file debug.h.


Define Documentation

#define _TRACE_   (DISABLE)

This is Compilation switches definition.

Definition at line 59 of file debug.h.

#define _ASSERT_   (DISABLE)

Definition at line 65 of file debug.h.

#define Assert ( expr   ) 

Value:

{                          \
      if( !(expr) )           \
      {                       \
         trace("\n\r");       \
         trace(__FILE__);     \
         trace(":");          \
         trace_u16(__LINE__); \
         while(1) {           \
         }                    \
      }                       \
   }
This macro is used to test fatal errors which may be caused by software or hardware bugs.

The macro tests if the expression is TRUE. If it is not, a fatal error is detected and the application hangs.

Parameters:
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().


Function Documentation

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

void trace_hex ( U8  val  ) 

Referenced by nf_check_fbb(), nf_rebuild(), nf_scan(), and nf_write_lut().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

void trace_u8 ( U8  val  ) 

Referenced by nf_swap(), and nf_translate().

Here is the caller graph for this function:

void trace_u16 ( U16  val  ) 

Referenced by nf_check_fbb().

Here is the caller graph for this function:

void trace_u32 ( U32  val  ) 

Referenced by nf_scan().

Here is the caller graph for this function:

void trace_ptwo ( U8  hex  ) 


Variable Documentation

U8 _MEM_TYPE_SLOW_ g_trace_en


Generated on Wed Sep 23 09:17:04 2009 for ATMEL by  doxygen 1.5.3