include/debug.h File Reference

Debug console. More...

#include <compiler.h>
#include <stdarg.h>

Go to the source code of this file.

Defines

#define dbg_priv_check_level(level)   (DEBUG_LEVEL != DEBUG_NONE && (level) <= DEBUG_LEVEL)
#define dbg_vprintf_level(level, format, ap)
 Formatted output conversion to the debug console.
#define dbg_printf_level(level,...)
 Formatted output conversion to the debug console.
#define dbg_putstr_level(level, str)
 Write a string to the debug console if the current debug level is higher or equal to level.
#define dbg_putchar_level(level, c)
 Write a single character to the debug console if the current debug level is higher or equal to level.
#define dbg_putstr(str)   dbg_putstr_level(DEBUG_VERBOSE, str)
 Output string at DEBUG_VERBOSE level.
#define dbg_putchar(c)   dbg_putchar_level(DEBUG_VERBOSE, c)
 Output character at DEBUG_VERBOSE level.
#define dbg_panic(...)   dbg_printf_level(DEBUG_PANIC, __VA_ARGS__)
 Display a panic message.
#define dbg_error(...)   dbg_printf_level(DEBUG_ERROR, __VA_ARGS__)
 Display a error message.
#define dbg_warning(...)   dbg_printf_level(DEBUG_WARNING, __VA_ARGS__)
 Display a warning message.
#define dbg_info(...)   dbg_printf_level(DEBUG_INFO, __VA_ARGS__)
 Display an informational message.
#define dbg_verbose(...)   dbg_printf_level(DEBUG_VERBOSE, __VA_ARGS__)
 Display a verbose debugging message.

Enumerations

enum  debug_level {
  DEBUG_NONE = 0, DEBUG_PANIC, DEBUG_ASSERT, DEBUG_ERROR,
  DEBUG_WARNING, DEBUG_INFO, DEBUG_VERBOSE
}
 

Severity level of debugging messages.

More...

Functions

static int dbg_priv_retzero (void)

Detailed Description

Debug console.

Copyright (C) 2009 Atmel Corporation. All rights reserved.

This is a simple debug console which can be used to dump information e.g. over a serial line when debugging a new application or driver.

Definition in file debug.h.

Generated on Thu Apr 29 15:18:22 2010 for display-training by  doxygen 1.6.3