Remove unneeded code.
[bertos.git] / cpu / cpu.h
index 8a9457290f9492740a0435dcb96ff681a85dbd36..af769d644293c3e5f37221328c2a5acc655df6b1 100644 (file)
--- a/cpu/cpu.h
+++ b/cpu/cpu.h
@@ -26,7 +26,7 @@
  * invalidate any other reasons why the executable file might be covered by
  * the GNU General Public License.
  *
- * Copyright 2004, 2005 Develer S.r.l. (http://www.develer.com/)
+ * Copyright 2004, 2005, 2006, 2007 Develer S.r.l. (http://www.develer.com/)
  * Copyright 2004 Giovanni Bajo
  *
  * -->
  * \author Giovanni Bajo <rasky@develer.com>
  * \author Bernardo Innocenti <bernie@develer.com>
  * \author Stefano Fedrigo <aleph@develer.com>
+ * \author Francesco Sacchi <batt@develer.com>
  */
-#ifndef DEVLIB_CPU_H
-#define DEVLIB_CPU_H
+#ifndef CPU_CPU_H
+#define CPU_CPU_H
 
+#include "detect.h"
 #include <cfg/compiler.h> /* for uintXX_t */
 #include <cfg/arch_config.h>  /* ARCH_EMUL */
 
 /*\}*/
 
 /** Macro to include cpu-specific versions of the headers. */
-#define CPU_HEADER(module)          PP_STRINGIZE(PP_CAT3(module, _, CPU_ID).h)
+#define CPU_HEADER(module)          PP_STRINGIZE(drv/PP_CAT3(module, _, CPU_ID).h)
 
 /** Macro to include cpu-specific versions of implementation files. */
-#define CPU_CSOURCE(module)         PP_STRINGIZE(PP_CAT3(module, _, CPU_ID).c)
+#define CPU_CSOURCE(module)         PP_STRINGIZE(drv/PP_CAT3(module, _, CPU_ID).c)
 
 
 #if CPU_I196
                #define BREAKPOINT  /* asm("bkpt 0") DOES NOT WORK */
 
        #else /* !__IAR_SYSTEMS_ICC__ */
-
-               #warning "IRQ_ macros need testing!"
-               #warning "Test now or die :-)"
-
                #define NOP         asm volatile ("mov r0,r0" ::)
 
                #define IRQ_DISABLE \
@@ -549,4 +547,4 @@ STATIC_ASSERT(sizeof(uint64_t) * CPU_BITS_PER_CHAR == 64);
        #endif /* !ARCH_EMUL */
 #endif /* !CPU_IDLE */
 
-#endif /* DEVLIB_CPU_H */
+#endif /* CPU_CPU_H */