Add specific check routine for compiling under OS X
[bertos.git] / bertos / drv / kdebug.c
index c461b7281cbf2b496ef374119748fbdd082318d4..37192dd5b58e5eb57df1a163186654b86cd9ea4c 100644 (file)
  * \author Stefano Fedrigo <aleph@develer.com>
  */
 
-#include <cpu/irq.h>
-#include <cpu/attr.h>
-#include <cpu/types.h>
-
+#include "cfg/cfg_debug.h"
 #include <cfg/macros.h> /* for BV() */
 #include <cfg/debug.h>
+#include <cfg/os.h>
 
-#include <appconfig.h>
-#warning what about these?
-//#include <hw_cpu.h>     /* for CLOCK_FREQ */
-//#include <hw_ser.h>     /* Required for bus macros overrides */
+#include <cpu/irq.h>
+#include <cpu/attr.h>
+#include <cpu/types.h>
 
 #include <mware/formatwr.h> /* for _formatted_write() */
 #include <mware/pgm.h>
@@ -193,7 +190,7 @@ static void klocation(const char * PGM_ATTR file, int line)
        PGM_FUNC(kputs)(PGM_STR(": "));
 }
 
-int PGM_FUNC(__assert)(const char * PGM_ATTR cond, const char * PGM_ATTR file, int line)
+int PGM_FUNC(__bassert)(const char * PGM_ATTR cond, const char * PGM_ATTR file, int line)
 {
        klocation(file, line);
        PGM_FUNC(kputs)(PGM_STR("Assertion failed: "));