summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorDaniel Ankers <dan@weirdo.org.uk>2006-11-22 00:41:30 +0000
committerDaniel Ankers <dan@weirdo.org.uk>2006-11-22 00:41:30 +0000
commit242cbd5cd73542c79020a4ce9a8e83ee0391bc72 (patch)
treea1a66ed8d4eb65db38daedfe701138aa0bde726d /firmware/export
parent336cb6898ef55ea6480a0b5547d30bb5029c79ef (diff)
downloadrockbox-242cbd5cd73542c79020a4ce9a8e83ee0391bc72.tar.gz
rockbox-242cbd5cd73542c79020a4ce9a8e83ee0391bc72.zip
Change if CONFIG_CPU==PP50XX to ifdef CPU_PP where appropriate
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11569 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config.h3
-rw-r--r--firmware/export/kernel.h2
-rw-r--r--firmware/export/timer.h2
3 files changed, 3 insertions, 4 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 74c7e924ff..95e3399690 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -275,8 +275,7 @@
275#if !defined(SIMULATOR) && /* Not for simulators */ \ 275#if !defined(SIMULATOR) && /* Not for simulators */ \
276 (((CONFIG_CPU == SH7034) && !defined(PLUGIN)) || /* SH1 archos: core only */ \ 276 (((CONFIG_CPU == SH7034) && !defined(PLUGIN)) || /* SH1 archos: core only */ \
277 defined(CPU_COLDFIRE) || /* Coldfire: core, plugins, codecs */ \ 277 defined(CPU_COLDFIRE) || /* Coldfire: core, plugins, codecs */ \
278 (CONFIG_CPU == PP5020) || /* iPod and H10: core, plugins, codecs */ \ 278 defined(CPU_PP) || /* PortalPlayer: core, plugins, codecs */ \
279 (CONFIG_CPU == PP5002) || /* iPod: core, plugins, codecs */ \
280 (CONFIG_CPU == PNX0101)) 279 (CONFIG_CPU == PNX0101))
281#define ICODE_ATTR __attribute__ ((section(".icode"))) 280#define ICODE_ATTR __attribute__ ((section(".icode")))
282#define ICONST_ATTR __attribute__ ((section(".irodata"))) 281#define ICONST_ATTR __attribute__ ((section(".irodata")))
diff --git a/firmware/export/kernel.h b/firmware/export/kernel.h
index 32c052a34d..2474c6dcac 100644
--- a/firmware/export/kernel.h
+++ b/firmware/export/kernel.h
@@ -70,7 +70,7 @@ struct mutex
70}; 70};
71 71
72/* global tick variable */ 72/* global tick variable */
73#if ((CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020)) && defined(BOOTLOADER) 73#if defined(CPU_PP) && defined(BOOTLOADER)
74/* We don't enable interrupts in the iPod bootloader, so we need to fake 74/* We don't enable interrupts in the iPod bootloader, so we need to fake
75 the current_tick variable */ 75 the current_tick variable */
76#define current_tick (signed)(USEC_TIMER/10000) 76#define current_tick (signed)(USEC_TIMER/10000)
diff --git a/firmware/export/timer.h b/firmware/export/timer.h
index 2fb7c6495f..f32a8a1790 100644
--- a/firmware/export/timer.h
+++ b/firmware/export/timer.h
@@ -26,7 +26,7 @@
26#ifndef SIMULATOR 26#ifndef SIMULATOR
27 27
28 28
29#if CONFIG_CPU == PP5020 || CONFIG_CPU == PP5002 29#if defined(CPU_PP)
30 /* Portalplayer chips use a microsecond timer. */ 30 /* Portalplayer chips use a microsecond timer. */
31 #define TIMER_FREQ 1000000 31 #define TIMER_FREQ 1000000
32#elif defined(CPU_COLDFIRE) 32#elif defined(CPU_COLDFIRE)