diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/adc.h | 9 | ||||
-rw-r--r-- | firmware/export/button.h | 28 | ||||
-rw-r--r-- | firmware/export/config-ipod3g.h | 6 | ||||
-rw-r--r-- | firmware/export/config-ipod4g.h | 7 | ||||
-rw-r--r-- | firmware/export/config-ipodcolor.h | 2 | ||||
-rw-r--r-- | firmware/export/config-ipodmini.h | 7 | ||||
-rwxr-xr-x | firmware/export/config-ipodmini2g.h | 7 | ||||
-rw-r--r-- | firmware/export/config-ipodnano.h | 2 | ||||
-rw-r--r-- | firmware/export/config-ipodvideo.h | 2 | ||||
-rw-r--r-- | firmware/export/pcf50605.h | 2 |
10 files changed, 28 insertions, 44 deletions
diff --git a/firmware/export/adc.h b/firmware/export/adc.h index 3a438832d6..13d2617c00 100644 --- a/firmware/export/adc.h +++ b/firmware/export/adc.h | |||
@@ -24,12 +24,6 @@ | |||
24 | #ifdef TARGET_TREE | 24 | #ifdef TARGET_TREE |
25 | #include "adc-target.h" | 25 | #include "adc-target.h" |
26 | 26 | ||
27 | #elif defined(IPOD_ARCH) | ||
28 | #define NUM_ADC_CHANNELS 1 | ||
29 | |||
30 | #define ADC_BATTERY 0 | ||
31 | #define ADC_UNREG_POWER ADC_BATTERY | ||
32 | |||
33 | #elif defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) | 27 | #elif defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) |
34 | #define NUM_ADC_CHANNELS 4 | 28 | #define NUM_ADC_CHANNELS 4 |
35 | 29 | ||
@@ -106,8 +100,7 @@ | |||
106 | unsigned short adc_read(int channel); | 100 | unsigned short adc_read(int channel); |
107 | void adc_init(void); | 101 | void adc_init(void); |
108 | 102 | ||
109 | #if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)\ | 103 | #if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) |
110 | || defined(IPOD_ARCH) | ||
111 | /* Force a scan now */ | 104 | /* Force a scan now */ |
112 | unsigned short adc_scan(int channel); | 105 | unsigned short adc_scan(int channel); |
113 | #endif | 106 | #endif |
diff --git a/firmware/export/button.h b/firmware/export/button.h index 4ff04202d5..686fe79937 100644 --- a/firmware/export/button.h +++ b/firmware/export/button.h | |||
@@ -26,9 +26,7 @@ | |||
26 | (CONFIG_KEYPAD == IRIVER_H300_PAD) | 26 | (CONFIG_KEYPAD == IRIVER_H300_PAD) |
27 | #define HAS_BUTTON_HOLD | 27 | #define HAS_BUTTON_HOLD |
28 | #define HAS_REMOTE_BUTTON_HOLD | 28 | #define HAS_REMOTE_BUTTON_HOLD |
29 | #elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \ | 29 | #elif (CONFIG_KEYPAD == IRIVER_IFP7XX_PAD) |
30 | (CONFIG_KEYPAD == IPOD_3G_PAD) || \ | ||
31 | (CONFIG_KEYPAD == IRIVER_IFP7XX_PAD) | ||
32 | #define HAS_BUTTON_HOLD | 30 | #define HAS_BUTTON_HOLD |
33 | #endif | 31 | #endif |
34 | extern struct event_queue button_queue; | 32 | extern struct event_queue button_queue; |
@@ -222,30 +220,6 @@ void wheel_send_events(bool send); | |||
222 | 220 | ||
223 | #define BUTTON_REMOTE 0 | 221 | #define BUTTON_REMOTE 0 |
224 | 222 | ||
225 | #elif ((CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD)) | ||
226 | |||
227 | /* iPod specific button codes */ | ||
228 | |||
229 | #define BUTTON_SELECT 0x00000001 | ||
230 | #define BUTTON_MENU 0x00000002 | ||
231 | |||
232 | #define BUTTON_LEFT 0x00000004 | ||
233 | #define BUTTON_RIGHT 0x00000008 | ||
234 | #define BUTTON_SCROLL_FWD 0x00000010 | ||
235 | #define BUTTON_SCROLL_BACK 0x00000020 | ||
236 | |||
237 | #define BUTTON_PLAY 0x00000040 | ||
238 | |||
239 | #define BUTTON_MAIN (BUTTON_SELECT|BUTTON_MENU\ | ||
240 | |BUTTON_LEFT|BUTTON_RIGHT|BUTTON_SCROLL_FWD\ | ||
241 | |BUTTON_SCROLL_BACK|BUTTON_PLAY) | ||
242 | |||
243 | #define BUTTON_REMOTE 0 | ||
244 | |||
245 | /* This is for later | ||
246 | #define BUTTON_SCROLL_TOUCH 0x00000200 | ||
247 | */ | ||
248 | |||
249 | #elif CONFIG_KEYPAD == IRIVER_IFP7XX_PAD | 223 | #elif CONFIG_KEYPAD == IRIVER_IFP7XX_PAD |
250 | 224 | ||
251 | /* iriver IFP7XX specific button codes */ | 225 | /* iriver IFP7XX specific button codes */ |
diff --git a/firmware/export/config-ipod3g.h b/firmware/export/config-ipod3g.h index 94035069a5..e94c3c087c 100644 --- a/firmware/export/config-ipod3g.h +++ b/firmware/export/config-ipod3g.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * This config file is for the Apple iPod 3g | 2 | * This config file is for the Apple iPod 3g |
3 | */ | 3 | */ |
4 | #define IPOD_ARCH 1 | 4 | #define TARGET_TREE /* this target is using the target tree system */ |
5 | 5 | ||
6 | /* For Rolo and boot loader */ | 6 | /* For Rolo and boot loader */ |
7 | #define MODEL_NUMBER 7 | 7 | #define MODEL_NUMBER 7 |
@@ -101,6 +101,10 @@ | |||
101 | 101 | ||
102 | #define USB_NONE | 102 | #define USB_NONE |
103 | 103 | ||
104 | /* LCD contrast */ | ||
105 | #define MIN_CONTRAST_SETTING 5 | ||
106 | #define MAX_CONTRAST_SETTING 63 | ||
107 | #define DEFAULT_CONTRAST_SETTING 40 /* Match boot contrast */ | ||
104 | 108 | ||
105 | /* Virtual LED (icon) */ | 109 | /* Virtual LED (icon) */ |
106 | #define CONFIG_LED LED_VIRTUAL | 110 | #define CONFIG_LED LED_VIRTUAL |
diff --git a/firmware/export/config-ipod4g.h b/firmware/export/config-ipod4g.h index 2b603987f4..c61ab05b77 100644 --- a/firmware/export/config-ipod4g.h +++ b/firmware/export/config-ipod4g.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * This config file is for the Apple iPod Color/Photo | 2 | * This config file is for the Apple iPod Color/Photo |
3 | */ | 3 | */ |
4 | #define IPOD_ARCH 1 | 4 | #define TARGET_TREE /* this target is using the target tree system */ |
5 | 5 | ||
6 | /* For Rolo and boot loader */ | 6 | /* For Rolo and boot loader */ |
7 | #define MODEL_NUMBER 8 | 7 | #define MODEL_NUMBER 8 |
@@ -100,6 +100,11 @@ | |||
100 | 100 | ||
101 | #define USB_IPODSTYLE | 101 | #define USB_IPODSTYLE |
102 | 102 | ||
103 | /* LCD contrast */ | ||
104 | #define MIN_CONTRAST_SETTING 5 | ||
105 | #define MAX_CONTRAST_SETTING 63 | ||
106 | #define DEFAULT_CONTRAST_SETTING 40 /* Match boot contrast */ | ||
107 | |||
103 | /* define this if the unit can be powered or charged via USB */ | 108 | /* define this if the unit can be powered or charged via USB */ |
104 | #define HAVE_USB_POWER | 109 | #define HAVE_USB_POWER |
105 | 110 | ||
diff --git a/firmware/export/config-ipodcolor.h b/firmware/export/config-ipodcolor.h index 0bcb25b56c..0f8a56fe8b 100644 --- a/firmware/export/config-ipodcolor.h +++ b/firmware/export/config-ipodcolor.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * This config file is for the Apple iPod Color/Photo | 2 | * This config file is for the Apple iPod Color/Photo |
3 | */ | 3 | */ |
4 | #define IPOD_ARCH 1 | 4 | #define TARGET_TREE /* this target is using the target tree system */ |
5 | 5 | ||
6 | /* For Rolo and boot loader */ | 6 | /* For Rolo and boot loader */ |
7 | #define MODEL_NUMBER 3 | 7 | #define MODEL_NUMBER 3 |
diff --git a/firmware/export/config-ipodmini.h b/firmware/export/config-ipodmini.h index f2f96946c9..a089ebdd78 100644 --- a/firmware/export/config-ipodmini.h +++ b/firmware/export/config-ipodmini.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * This config file is for the Apple iPod Mini (1st Gen) | 2 | * This config file is for the Apple iPod Mini (1st Gen) |
3 | */ | 3 | */ |
4 | #define IPOD_ARCH 1 | 4 | #define TARGET_TREE /* this target is using the target tree system */ |
5 | 5 | ||
6 | /* For Rolo and boot loader */ | 6 | /* For Rolo and boot loader */ |
7 | #define MODEL_NUMBER 9 /* TODO: change to 9 */ | 7 | #define MODEL_NUMBER 9 /* TODO: change to 9 */ |
@@ -100,6 +100,11 @@ | |||
100 | 100 | ||
101 | #define USB_IPODSTYLE | 101 | #define USB_IPODSTYLE |
102 | 102 | ||
103 | /* LCD contrast */ | ||
104 | #define MIN_CONTRAST_SETTING 5 | ||
105 | #define MAX_CONTRAST_SETTING 63 | ||
106 | #define DEFAULT_CONTRAST_SETTING 40 /* Match boot contrast */ | ||
107 | |||
103 | /* define this if the unit can be powered or charged via USB */ | 108 | /* define this if the unit can be powered or charged via USB */ |
104 | #define HAVE_USB_POWER | 109 | #define HAVE_USB_POWER |
105 | 110 | ||
diff --git a/firmware/export/config-ipodmini2g.h b/firmware/export/config-ipodmini2g.h index bac60e3e72..c37be05400 100755 --- a/firmware/export/config-ipodmini2g.h +++ b/firmware/export/config-ipodmini2g.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * This config file is for the Apple iPod Mini 2nd Gen | 2 | * This config file is for the Apple iPod Mini 2nd Gen |
3 | */ | 3 | */ |
4 | #define IPOD_ARCH 1 | 4 | #define TARGET_TREE /* this target is using the target tree system */ |
5 | 5 | ||
6 | /* For Rolo and boot loader */ | 6 | /* For Rolo and boot loader */ |
7 | #define MODEL_NUMBER 11 | 7 | #define MODEL_NUMBER 11 |
@@ -103,6 +103,11 @@ | |||
103 | 103 | ||
104 | #define USB_IPODSTYLE | 104 | #define USB_IPODSTYLE |
105 | 105 | ||
106 | /* LCD contrast */ | ||
107 | #define MIN_CONTRAST_SETTING 5 | ||
108 | #define MAX_CONTRAST_SETTING 63 | ||
109 | #define DEFAULT_CONTRAST_SETTING 40 /* Match boot contrast */ | ||
110 | |||
106 | /* define this if the unit can be powered or charged via USB */ | 111 | /* define this if the unit can be powered or charged via USB */ |
107 | #define HAVE_USB_POWER | 112 | #define HAVE_USB_POWER |
108 | 113 | ||
diff --git a/firmware/export/config-ipodnano.h b/firmware/export/config-ipodnano.h index c24aa43e55..258d93bad5 100644 --- a/firmware/export/config-ipodnano.h +++ b/firmware/export/config-ipodnano.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * This config file is for the Apple iPod Nano | 2 | * This config file is for the Apple iPod Nano |
3 | */ | 3 | */ |
4 | #define IPOD_ARCH 1 | 4 | #define TARGET_TREE /* this target is using the target tree system */ |
5 | 5 | ||
6 | /* For Rolo and boot loader */ | 6 | /* For Rolo and boot loader */ |
7 | #define MODEL_NUMBER 4 | 7 | #define MODEL_NUMBER 4 |
diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h index cd8f1eea11..530417d612 100644 --- a/firmware/export/config-ipodvideo.h +++ b/firmware/export/config-ipodvideo.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * This config file is for the Apple iPod Video | 2 | * This config file is for the Apple iPod Video |
3 | */ | 3 | */ |
4 | #define IPOD_ARCH 1 | 4 | #define TARGET_TREE /* this target is using the target tree system */ |
5 | 5 | ||
6 | /* For Rolo and boot loader */ | 6 | /* For Rolo and boot loader */ |
7 | #define MODEL_NUMBER 5 | 7 | #define MODEL_NUMBER 5 |
diff --git a/firmware/export/pcf50605.h b/firmware/export/pcf50605.h index eeb09b4612..eb899afc86 100644 --- a/firmware/export/pcf50605.h +++ b/firmware/export/pcf50605.h | |||
@@ -20,7 +20,6 @@ | |||
20 | #ifndef PCF50605_H | 20 | #ifndef PCF50605_H |
21 | #define PCF50605_H | 21 | #define PCF50605_H |
22 | 22 | ||
23 | #ifdef IPOD_ARCH | ||
24 | int pcf50605_read(int address); | 23 | int pcf50605_read(int address); |
25 | int pcf50605_read_multiple(int address, unsigned char* buf, int count); | 24 | int pcf50605_read_multiple(int address, unsigned char* buf, int count); |
26 | int pcf50605_write(int address, unsigned char val); | 25 | int pcf50605_write(int address, unsigned char val); |
@@ -29,6 +28,5 @@ int pcf50605_a2d_read(int channel); | |||
29 | bool pcf50605_charger_inserted(void); | 28 | bool pcf50605_charger_inserted(void); |
30 | void pcf50605_standby_mode(void); | 29 | void pcf50605_standby_mode(void); |
31 | void pcf50605_init(void); | 30 | void pcf50605_init(void); |
32 | #endif | ||
33 | 31 | ||
34 | #endif | 32 | #endif |