* \author Bernardo Innocenti <bernie@develer.com>
*/
-#ifndef DEVLIB_DEBUG_H
-#define DEVLIB_DEBUG_H
+#ifndef BERTOS_DEBUG_H
+#define BERTOS_DEBUG_H
#include <cfg/os.h>
#include <cfg/compiler.h>
#endif
#ifdef _DEBUG
-
// STLport specific: enable extra checks
#define __STL_DEBUG 1
*/
#define DB(x) x
- #include <appconfig.h> /* CONFIG_KDEBUG_ASSERT_NO_TEXT */
- #include <cpu/attr.h> /* CPU_HARVARD */
+ #include "cfg/cfg_debug.h" /* CONFIG_KDEBUG_ASSERT_NO_TEXT */
+ #include <cpu/attr.h> /* CPU_HARVARD */
/* These are implemented in drv/kdebug.c */
void kdbg_init(void);
#define TRACEMSG(...) do {} while(0)
#endif
+
/**
* \name Walls to detect data corruption
* \{
#define kprintf(fmt,...) do { (void)(fmt); } while(0)
#else
/* ...but GCC can. */
- INLINE void kprintf(UNUSED_ARG(const char *, fmt), ...) { /* nop */ }
+ INLINE void kprintf(UNUSED_ARG(const char *, fmt), ...) { /* nop */ }
#endif
#endif /* _DEBUG */
-#endif /* DEVLIB_DEBUG_H */
+#endif /* BERTOS_DEBUG_H */