From c6ff1f5eb541f9557e7fbc1449df9c024fd59a03 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Mon, 18 Jul 2005 12:40:29 +0000 Subject: Added CPU_COLDFIRE define - one step closer to iAudio-port git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7186 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config.h | 5 +++++ firmware/export/system.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/config.h b/firmware/export/config.h index 1654072a3a..6b77f0dfc1 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -118,6 +118,11 @@ /* no known platform */ #endif +/* define for all cpus from coldfire family */ +#if (CONFIG_CPU == MCF5249) || (CONFIG_CPU == MCF5250) +#define CPU_COLDFIRE +#endif + #ifndef CODEC_SIZE #define CODEC_SIZE 0 #endif diff --git a/firmware/export/system.h b/firmware/export/system.h index f379b325d3..39663f1087 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h @@ -103,7 +103,7 @@ enum { : /* %0 */ I_CONSTRAINT((char)(mask)), \ /* %1 */ "z"(address-GBR)) -#elif CONFIG_CPU == MCF5249 +#elif defined(CPU_COLDFIRE) #define or_l(mask, address) \ asm \ ("or.l %0,(%1)" \ @@ -182,7 +182,7 @@ static inline unsigned long SWAB32(unsigned long value) #define invalidate_icache() -#elif CONFIG_CPU == MCF5249 +#elif defined(CPU_COLDFIRE) #define HIGHEST_IRQ_LEVEL (7<<8) static inline int set_irq_level(int level) { -- cgit v1.2.3