diff options
| author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2005-07-18 12:40:29 +0000 |
|---|---|---|
| committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2005-07-18 12:40:29 +0000 |
| commit | c6ff1f5eb541f9557e7fbc1449df9c024fd59a03 (patch) | |
| tree | ae38d203a3fcc15b1d897afe31c5a4f9099ac247 /firmware/export | |
| parent | f5df9cd81c685b01b5e72e4a05471d97ffa7d260 (diff) | |
| download | rockbox-c6ff1f5eb541f9557e7fbc1449df9c024fd59a03.zip rockbox-c6ff1f5eb541f9557e7fbc1449df9c024fd59a03.tar.gz rockbox-c6ff1f5eb541f9557e7fbc1449df9c024fd59a03.tar.bz2 rockbox-c6ff1f5eb541f9557e7fbc1449df9c024fd59a03.tar.xz | |
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
Diffstat (limited to 'firmware/export')
| -rw-r--r-- | firmware/export/config.h | 5 | ||||
| -rw-r--r-- | firmware/export/system.h | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index 1654072..6b77f0d 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 f379b32..39663f1 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) { |