* 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 \
#endif /* !ARCH_EMUL */
#endif /* !CPU_IDLE */
-#endif /* DEVLIB_CPU_H */
+#endif /* CPU_CPU_H */