diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/adc.h | 9 | ||||
-rw-r--r-- | firmware/export/button.h | 22 | ||||
-rw-r--r-- | firmware/export/config-ifp7xx.h | 6 |
3 files changed, 6 insertions, 31 deletions
diff --git a/firmware/export/adc.h b/firmware/export/adc.h index 4dced55f09..d8e3b7078f 100644 --- a/firmware/export/adc.h +++ b/firmware/export/adc.h | |||
@@ -24,15 +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(IRIVER_IFP7XX) | ||
28 | |||
29 | #define NUM_ADC_CHANNELS 5 | ||
30 | |||
31 | #define ADC_BUTTONS 0 | ||
32 | #define ADC_BATTERY 1 | ||
33 | #define ADC_BUTTON_PLAY 2 | ||
34 | #define ADC_UNREG_POWER ADC_BATTERY /* For compatibility */ | ||
35 | |||
36 | #else | 27 | #else |
37 | 28 | ||
38 | #define NUM_ADC_CHANNELS 8 | 29 | #define NUM_ADC_CHANNELS 8 |
diff --git a/firmware/export/button.h b/firmware/export/button.h index d702b50fcd..240ec08d9b 100644 --- a/firmware/export/button.h +++ b/firmware/export/button.h | |||
@@ -26,8 +26,6 @@ | |||
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 == IRIVER_IFP7XX_PAD) | ||
30 | #define HAS_BUTTON_HOLD | ||
31 | #endif | 29 | #endif |
32 | extern struct event_queue button_queue; | 30 | extern struct event_queue button_queue; |
33 | 31 | ||
@@ -173,26 +171,6 @@ void wheel_send_events(bool send); | |||
173 | 171 | ||
174 | #define BUTTON_REMOTE 0 | 172 | #define BUTTON_REMOTE 0 |
175 | 173 | ||
176 | #elif CONFIG_KEYPAD == IRIVER_IFP7XX_PAD | ||
177 | |||
178 | /* iriver IFP7XX specific button codes */ | ||
179 | |||
180 | #define BUTTON_PLAY 0x00000001 | ||
181 | #define BUTTON_SELECT 0x00000002 | ||
182 | |||
183 | #define BUTTON_LEFT 0x00000004 | ||
184 | #define BUTTON_RIGHT 0x00000008 | ||
185 | #define BUTTON_UP 0x00000010 | ||
186 | #define BUTTON_DOWN 0x00000020 | ||
187 | |||
188 | #define BUTTON_MODE 0x00000040 | ||
189 | #define BUTTON_EQ 0x00000080 | ||
190 | |||
191 | #define BUTTON_MAIN (BUTTON_PLAY|BUTTON_SELECT\ | ||
192 | |BUTTON_LEFT|BUTTON_RIGHT|BUTTON_UP|BUTTON_DOWN\ | ||
193 | |BUTTON_MODE|BUTTON_EQ) | ||
194 | |||
195 | #define BUTTON_REMOTE 0 | ||
196 | 174 | ||
197 | #elif 0 | 175 | #elif 0 |
198 | 176 | ||
diff --git a/firmware/export/config-ifp7xx.h b/firmware/export/config-ifp7xx.h index b0724f6e83..637a754f2a 100644 --- a/firmware/export/config-ifp7xx.h +++ b/firmware/export/config-ifp7xx.h | |||
@@ -1,6 +1,8 @@ | |||
1 | /* | 1 | /* |
2 | * This config file is for iriver iFP-799 | 2 | * This config file is for iriver iFP-799 |
3 | */ | 3 | */ |
4 | #define TARGET_TREE | ||
5 | |||
4 | #define IRIVER_IFP7XX_SERIES 1 | 6 | #define IRIVER_IFP7XX_SERIES 1 |
5 | 7 | ||
6 | /* For Rolo and boot loader */ | 8 | /* For Rolo and boot loader */ |
@@ -91,6 +93,10 @@ | |||
91 | /* Virtual LED (icon) */ | 93 | /* Virtual LED (icon) */ |
92 | #define CONFIG_LED LED_VIRTUAL | 94 | #define CONFIG_LED LED_VIRTUAL |
93 | 95 | ||
96 | #define MIN_CONTRAST_SETTING 5 | ||
97 | #define MAX_CONTRAST_SETTING 63 | ||
98 | #define DEFAULT_CONTRAST_SETTING 40 | ||
99 | |||
94 | /* Define this if you have adjustable CPU frequency */ | 100 | /* Define this if you have adjustable CPU frequency */ |
95 | //#define HAVE_ADJUSTABLE_CPU_FREQ | 101 | //#define HAVE_ADJUSTABLE_CPU_FREQ |
96 | 102 | ||