diff options
author | Dave Chapman <dave@dchapman.com> | 2006-02-05 16:52:22 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-02-05 16:52:22 +0000 |
commit | d16a8b8845ed496e9375c5dfac6da2011c9eb362 (patch) | |
tree | 9adc8e92f61a58bdb02e9c59af8dfd7ddd3eff61 /firmware/export/config.h | |
parent | e8048cefed2715dcecb82ae49549ed619cf3104b (diff) | |
download | rockbox-d16a8b8845ed496e9375c5dfac6da2011c9eb362.tar.gz rockbox-d16a8b8845ed496e9375c5dfac6da2011c9eb362.zip |
More iPod 3G changes from Seven Le Mesle, and some unification of the iPod code from me
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8581 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config.h')
-rw-r--r-- | firmware/export/config.h | 47 |
1 files changed, 27 insertions, 20 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index 8ce7ee61a3..f451173d06 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -44,15 +44,16 @@ | |||
44 | #define PNX0101 101 | 44 | #define PNX0101 101 |
45 | 45 | ||
46 | /* CONFIG_KEYPAD */ | 46 | /* CONFIG_KEYPAD */ |
47 | #define PLAYER_PAD 0 | 47 | #define PLAYER_PAD 0 |
48 | #define RECORDER_PAD 1 | 48 | #define RECORDER_PAD 1 |
49 | #define ONDIO_PAD 2 | 49 | #define ONDIO_PAD 2 |
50 | #define IRIVER_H100_PAD 3 | 50 | #define IRIVER_H100_PAD 3 |
51 | #define GMINI100_PAD 4 | 51 | #define GMINI100_PAD 4 |
52 | #define IRIVER_H300_PAD 5 | 52 | #define IRIVER_H300_PAD 5 |
53 | #define IAUDIO_X5_PAD 6 | 53 | #define IAUDIO_X5_PAD 6 |
54 | #define IPOD_4G_PAD 7 | 54 | #define IPOD_4G_PAD 7 |
55 | #define IRIVER_IFP7XX_PAD 8 | 55 | #define IPOD_3G_PAD 8 |
56 | #define IRIVER_IFP7XX_PAD 9 | ||
56 | 57 | ||
57 | /* CONFIG_REMOTE_KEYPAD */ | 58 | /* CONFIG_REMOTE_KEYPAD */ |
58 | #define H100_REMOTE 1 | 59 | #define H100_REMOTE 1 |
@@ -77,7 +78,8 @@ | |||
77 | #define LCD_IPODCOLOR 6 /* as used by iPod Color/Photo */ | 78 | #define LCD_IPODCOLOR 6 /* as used by iPod Color/Photo */ |
78 | #define LCD_IPODNANO 7 /* as used by iPod Nano */ | 79 | #define LCD_IPODNANO 7 /* as used by iPod Nano */ |
79 | #define LCD_IPODVIDEO 8 /* as used by iPod Video */ | 80 | #define LCD_IPODVIDEO 8 /* as used by iPod Video */ |
80 | #define LCD_IFP7XX 9 /* as used by iRiver iFP 7xx/8xx */ | 81 | #define LCD_IPOD2BPP 9 /* as used by all greyscale iPods */ |
82 | #define LCD_IFP7XX 10 /* as used by iRiver iFP 7xx/8xx */ | ||
81 | 83 | ||
82 | /* LCD_PIXELFORMAT */ | 84 | /* LCD_PIXELFORMAT */ |
83 | #define RGB565 565 | 85 | #define RGB565 565 |
@@ -91,16 +93,18 @@ | |||
91 | #define BL_GMINI 4 /* Archos GMini */ | 93 | #define BL_GMINI 4 /* Archos GMini */ |
92 | #define BL_IPOD4G 5 /* Apple iPod 4G */ | 94 | #define BL_IPOD4G 5 /* Apple iPod 4G */ |
93 | #define BL_IPODNANO 6 /* Apple iPod Nano and iPod Video*/ | 95 | #define BL_IPODNANO 6 /* Apple iPod Nano and iPod Video*/ |
94 | #define BL_IRIVER_H300 7 /* IRiver PWM */ | 96 | #define BL_IPOD3G 7 /* Apple iPod 3g with dock */ |
95 | #define BL_IRIVER_IFP7XX 8 /* IRiver GPIO */ | 97 | #define BL_IRIVER_H300 8 /* IRiver PWM */ |
98 | #define BL_IRIVER_IFP7XX 9 /* IRiver GPIO */ | ||
96 | 99 | ||
97 | /* CONFIG_I2C */ | 100 | /* CONFIG_I2C */ |
98 | #define I2C_PLAYREC 0 /* Archos Player/Recorder style */ | 101 | #define I2C_PLAYREC 0 /* Archos Player/Recorder style */ |
99 | #define I2C_ONDIO 1 /* Ondio style */ | 102 | #define I2C_ONDIO 1 /* Ondio style */ |
100 | #define I2C_GMINI 2 /* Gmini style */ | 103 | #define I2C_GMINI 2 /* Gmini style */ |
101 | #define I2C_COLDFIRE 3 /* Coldfire style */ | 104 | #define I2C_COLDFIRE 3 /* Coldfire style */ |
102 | #define I2C_PP5020 4 /* PP5020 style */ | 105 | #define I2C_PP5002 4 /* PP5002 style */ |
103 | #define I2C_PNX0101 5 /* PNX0101 style */ | 106 | #define I2C_PP5020 5 /* PP5020 style */ |
107 | #define I2C_PNX0101 6 /* PNX0101 style */ | ||
104 | 108 | ||
105 | /* CONFIG_LED */ | 109 | /* CONFIG_LED */ |
106 | #define LED_REAL 1 /* SW controlled LED (Archos recorders, player, Gmini) */ | 110 | #define LED_REAL 1 /* SW controlled LED (Archos recorders, player, Gmini) */ |
@@ -111,7 +115,7 @@ | |||
111 | 115 | ||
112 | /* CONFIG_RTC */ | 116 | /* CONFIG_RTC */ |
113 | #define RTC_M41ST84W 1 /* Archos Recorder */ | 117 | #define RTC_M41ST84W 1 /* Archos Recorder */ |
114 | #define RTC_PCF50605 2 /* iPod 4G */ | 118 | #define RTC_PCF50605 2 /* iPod 3G and 4G*/ |
115 | #define RTC_PCF50606 3 /* iriver H300 */ | 119 | #define RTC_PCF50606 3 /* iriver H300 */ |
116 | 120 | ||
117 | /* else HW controlled LED (iRiver H1x0) */ | 121 | /* else HW controlled LED (iRiver H1x0) */ |
@@ -147,6 +151,8 @@ | |||
147 | #include "config-ipodnano.h" | 151 | #include "config-ipodnano.h" |
148 | #elif defined(IPOD_VIDEO) | 152 | #elif defined(IPOD_VIDEO) |
149 | #include "config-ipodvideo.h" | 153 | #include "config-ipodvideo.h" |
154 | #elif defined(IPOD_3G) | ||
155 | #include "config-ipod3g.h" | ||
150 | #elif defined(IRIVER_IFP7XX) | 156 | #elif defined(IRIVER_IFP7XX) |
151 | #include "config-ifp7xx.h" | 157 | #include "config-ifp7xx.h" |
152 | #else | 158 | #else |
@@ -172,7 +178,7 @@ | |||
172 | #endif | 178 | #endif |
173 | 179 | ||
174 | /* define for all cpus from ARM family */ | 180 | /* define for all cpus from ARM family */ |
175 | #if (CONFIG_CPU == PP5020) || (CONFIG_CPU == PNX0101) | 181 | #if (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020) || (CONFIG_CPU == PNX0101) |
176 | #define CPU_ARM | 182 | #define CPU_ARM |
177 | #endif | 183 | #endif |
178 | 184 | ||
@@ -193,11 +199,12 @@ | |||
193 | (((CONFIG_CPU == SH7034) && !defined(PLUGIN)) || /* SH1 archos: core only */ \ | 199 | (((CONFIG_CPU == SH7034) && !defined(PLUGIN)) || /* SH1 archos: core only */ \ |
194 | (CONFIG_CPU == MCF5249) || /* Coldfire: core, plugins, codecs */ \ | 200 | (CONFIG_CPU == MCF5249) || /* Coldfire: core, plugins, codecs */ \ |
195 | (CONFIG_CPU == PP5020) || /* iPod: core, plugins, codecs */ \ | 201 | (CONFIG_CPU == PP5020) || /* iPod: core, plugins, codecs */ \ |
202 | (CONFIG_CPU == PP5002) || /* iPod: core, plugins, codecs */ \ | ||
196 | (CONFIG_CPU == TCC730)) /* CalmRISC16: core, (plugins, codecs) */ | 203 | (CONFIG_CPU == TCC730)) /* CalmRISC16: core, (plugins, codecs) */ |
197 | #define ICODE_ATTR __attribute__ ((section(".icode"))) | 204 | #define ICODE_ATTR __attribute__ ((section(".icode"))) |
198 | #define ICONST_ATTR __attribute__ ((section(".irodata"))) | 205 | #define ICONST_ATTR __attribute__ ((section(".irodata"))) |
199 | #define IDATA_ATTR __attribute__ ((section(".idata"))) | 206 | #define IDATA_ATTR __attribute__ ((section(".idata"))) |
200 | #define IBSS_ATTR __attribute__ ((section(".ibss"))) | 207 | #define IBSS_ATTR __attribute__ ((section(".ibss"))) |
201 | #define USE_IRAM | 208 | #define USE_IRAM |
202 | #else | 209 | #else |
203 | #define ICODE_ATTR | 210 | #define ICODE_ATTR |