X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=cpu%2Fcpu.h;h=af769d644293c3e5f37221328c2a5acc655df6b1;hb=96bda3a8889719af5e4475aaf853487f2e99e01f;hp=8a9457290f9492740a0435dcb96ff681a85dbd36;hpb=63cabc8f0d117b599d91a5d82bf0d3c7df7151f0;p=bertos.git diff --git a/cpu/cpu.h b/cpu/cpu.h index 8a945729..af769d64 100644 --- 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 * * --> @@ -36,10 +36,12 @@ * \author Giovanni Bajo * \author Bernardo Innocenti * \author Stefano Fedrigo + * \author Francesco Sacchi */ -#ifndef DEVLIB_CPU_H -#define DEVLIB_CPU_H +#ifndef CPU_CPU_H +#define CPU_CPU_H +#include "detect.h" #include /* for uintXX_t */ #include /* ARCH_EMUL */ @@ -53,10 +55,10 @@ /*\}*/ /** 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 @@ -158,10 +160,6 @@ #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 */