diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-04-12 22:12:13 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-04-12 22:12:13 +0000 |
commit | 47bf6c5a5ad1fd9143ab87328793b285230f74a3 (patch) | |
tree | 5199f2225a3dfc438bb1c4c5e9906f14664dfa43 /firmware/export | |
parent | 734278b7d1fde5e177c6842f49c16b9df8c353fa (diff) | |
download | rockbox-47bf6c5a5ad1fd9143ab87328793b285230f74a3.tar.gz rockbox-47bf6c5a5ad1fd9143ab87328793b285230f74a3.zip |
Moved archos backlight code to target tree. Changed old mutlivalue CONFIG_BACKLIGHT to a simple HAVE_BACKLIGHT.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13136 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
27 files changed, 28 insertions, 54 deletions
diff --git a/firmware/export/backlight.h b/firmware/export/backlight.h index 2873666dd8..4b164c63d2 100644 --- a/firmware/export/backlight.h +++ b/firmware/export/backlight.h | |||
@@ -26,7 +26,7 @@ void backlight_on(void); | |||
26 | void backlight_off(void); | 26 | void backlight_off(void); |
27 | void backlight_set_timeout(int index); | 27 | void backlight_set_timeout(int index); |
28 | 28 | ||
29 | #if CONFIG_BACKLIGHT | 29 | #ifdef HAVE_BACKLIGHT |
30 | void backlight_init(void); | 30 | void backlight_init(void); |
31 | 31 | ||
32 | #if defined(IAUDIO_X5) && !defined(SIMULATOR) | 32 | #if defined(IAUDIO_X5) && !defined(SIMULATOR) |
@@ -54,9 +54,9 @@ void lcd_set_sleep_after_backlight_off(int index); | |||
54 | extern const signed char lcd_sleep_timeout_value[]; | 54 | extern const signed char lcd_sleep_timeout_value[]; |
55 | #endif | 55 | #endif |
56 | 56 | ||
57 | #else /* CONFIG_BACKLIGHT == 0 */ | 57 | #else /* !HAVE_BACKLIGHT */ |
58 | #define backlight_init() | 58 | #define backlight_init() |
59 | #endif /* CONFIG_BACKLIGHT */ | 59 | #endif /* !HAVE_BACKLIGHT */ |
60 | 60 | ||
61 | #ifdef HAVE_REMOTE_LCD | 61 | #ifdef HAVE_REMOTE_LCD |
62 | void remote_backlight_on(void); | 62 | void remote_backlight_on(void); |
diff --git a/firmware/export/button.h b/firmware/export/button.h index ea3effcaba..f675824c3d 100644 --- a/firmware/export/button.h +++ b/firmware/export/button.h | |||
@@ -33,7 +33,7 @@ void button_clear_queue(void); | |||
33 | #ifdef HAVE_LCD_BITMAP | 33 | #ifdef HAVE_LCD_BITMAP |
34 | void button_set_flip(bool flip); /* turn 180 degrees */ | 34 | void button_set_flip(bool flip); /* turn 180 degrees */ |
35 | #endif | 35 | #endif |
36 | #if CONFIG_BACKLIGHT | 36 | #ifdef HAVE_BACKLIGHT |
37 | void set_backlight_filter_keypress(bool value); | 37 | void set_backlight_filter_keypress(bool value); |
38 | #ifdef HAVE_REMOTE_LCD | 38 | #ifdef HAVE_REMOTE_LCD |
39 | void set_remote_backlight_filter_keypress(bool value); | 39 | void set_remote_backlight_filter_keypress(bool value); |
diff --git a/firmware/export/config-e200.h b/firmware/export/config-e200.h index efcb7ebfd5..ccff38dbf2 100644 --- a/firmware/export/config-e200.h +++ b/firmware/export/config-e200.h | |||
@@ -69,8 +69,7 @@ | |||
69 | #define CONFIG_TUNER_XTAL 32768 *//* TODO: what is this? */ | 69 | #define CONFIG_TUNER_XTAL 32768 *//* TODO: what is this? */ |
70 | 70 | ||
71 | /* Define this for LCD backlight available */ | 71 | /* Define this for LCD backlight available */ |
72 | #define CONFIG_BACKLIGHT BL_H10 /* TODO: figure this out, probably not necessary | 72 | #define HAVE_BACKLIGHT |
73 | because of 'target' stuff */ | ||
74 | 73 | ||
75 | #define BATTERY_CAPACITY_DEFAULT 750 /* default battery capacity */ | 74 | #define BATTERY_CAPACITY_DEFAULT 750 /* default battery capacity */ |
76 | 75 | ||
diff --git a/firmware/export/config-fmrecorder.h b/firmware/export/config-fmrecorder.h index e753808897..211dccb183 100644 --- a/firmware/export/config-fmrecorder.h +++ b/firmware/export/config-fmrecorder.h | |||
@@ -52,7 +52,7 @@ | |||
52 | #define HAVE_SPDIF_IN | 52 | #define HAVE_SPDIF_IN |
53 | 53 | ||
54 | /* Define this for LCD backlight available */ | 54 | /* Define this for LCD backlight available */ |
55 | #define CONFIG_BACKLIGHT BL_RTC /* on I2C controlled RTC port */ | 55 | #define HAVE_BACKLIGHT |
56 | 56 | ||
57 | #define CONFIG_I2C I2C_PLAYREC | 57 | #define CONFIG_I2C I2C_PLAYREC |
58 | 58 | ||
diff --git a/firmware/export/config-gigabeat.h b/firmware/export/config-gigabeat.h index 9b56a1a616..ef6d8243b8 100644 --- a/firmware/export/config-gigabeat.h +++ b/firmware/export/config-gigabeat.h | |||
@@ -42,7 +42,7 @@ | |||
42 | #define CONFIG_RTC RTC_S3C2440 | 42 | #define CONFIG_RTC RTC_S3C2440 |
43 | 43 | ||
44 | /* Define this for LCD backlight available */ | 44 | /* Define this for LCD backlight available */ |
45 | #define CONFIG_BACKLIGHT BL_GIGABEAT /* port controlled PWM */ | 45 | #define HAVE_BACKLIGHT |
46 | 46 | ||
47 | #define HAVE_LCD_ENABLE | 47 | #define HAVE_LCD_ENABLE |
48 | 48 | ||
diff --git a/firmware/export/config-h10.h b/firmware/export/config-h10.h index 2b7f965294..4d372143f8 100644 --- a/firmware/export/config-h10.h +++ b/firmware/export/config-h10.h | |||
@@ -78,8 +78,7 @@ | |||
78 | #define CONFIG_TUNER_XTAL 32768 *//* TODO: what is this? */ | 78 | #define CONFIG_TUNER_XTAL 32768 *//* TODO: what is this? */ |
79 | 79 | ||
80 | /* Define this for LCD backlight available */ | 80 | /* Define this for LCD backlight available */ |
81 | #define CONFIG_BACKLIGHT BL_H10 /* TODO: figure this out, probably not necessary | 81 | #define HAVE_BACKLIGHT |
82 | because of 'target' stuff */ | ||
83 | 82 | ||
84 | #define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity */ | 83 | #define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity */ |
85 | 84 | ||
diff --git a/firmware/export/config-h100.h b/firmware/export/config-h100.h index dbb499f3af..cc2bfd7178 100644 --- a/firmware/export/config-h100.h +++ b/firmware/export/config-h100.h | |||
@@ -56,7 +56,7 @@ | |||
56 | #define CONFIG_LCD LCD_S1D15E06 | 56 | #define CONFIG_LCD LCD_S1D15E06 |
57 | 57 | ||
58 | /* Define this for LCD backlight available */ | 58 | /* Define this for LCD backlight available */ |
59 | #define CONFIG_BACKLIGHT BL_IRIVER_H100 /* port controlled */ | 59 | #define HAVE_BACKLIGHT |
60 | 60 | ||
61 | /* We can fade the backlight by using PWM */ | 61 | /* We can fade the backlight by using PWM */ |
62 | #define HAVE_BACKLIGHT_PWM_FADING | 62 | #define HAVE_BACKLIGHT_PWM_FADING |
diff --git a/firmware/export/config-h10_5gb.h b/firmware/export/config-h10_5gb.h index bbf3f2ffe6..3b3cebb8fb 100644 --- a/firmware/export/config-h10_5gb.h +++ b/firmware/export/config-h10_5gb.h | |||
@@ -72,8 +72,7 @@ | |||
72 | #define CONFIG_TUNER_XTAL 32768 *//* TODO: what is this? */ | 72 | #define CONFIG_TUNER_XTAL 32768 *//* TODO: what is this? */ |
73 | 73 | ||
74 | /* Define this for LCD backlight available */ | 74 | /* Define this for LCD backlight available */ |
75 | #define CONFIG_BACKLIGHT BL_H10 /* TODO: figure this out, probably not necessary | 75 | #define HAVE_BACKLIGHT |
76 | because of target tree stuff */ | ||
77 | 76 | ||
78 | #define BATTERY_CAPACITY_DEFAULT 820 /* default battery capacity */ | 77 | #define BATTERY_CAPACITY_DEFAULT 820 /* default battery capacity */ |
79 | 78 | ||
diff --git a/firmware/export/config-h120.h b/firmware/export/config-h120.h index f957f450d0..a0ad638fa2 100644 --- a/firmware/export/config-h120.h +++ b/firmware/export/config-h120.h | |||
@@ -51,7 +51,7 @@ | |||
51 | #define CONFIG_LCD LCD_S1D15E06 | 51 | #define CONFIG_LCD LCD_S1D15E06 |
52 | 52 | ||
53 | /* Define this for LCD backlight available */ | 53 | /* Define this for LCD backlight available */ |
54 | #define CONFIG_BACKLIGHT BL_IRIVER_H100 /* port controlled */ | 54 | #define HAVE_BACKLIGHT |
55 | 55 | ||
56 | /* We can fade the backlight by using PWM */ | 56 | /* We can fade the backlight by using PWM */ |
57 | #define HAVE_BACKLIGHT_PWM_FADING | 57 | #define HAVE_BACKLIGHT_PWM_FADING |
diff --git a/firmware/export/config-h300.h b/firmware/export/config-h300.h index ad80191885..0b2406bee7 100644 --- a/firmware/export/config-h300.h +++ b/firmware/export/config-h300.h | |||
@@ -51,7 +51,7 @@ | |||
51 | #define HAVE_REMOTE_LCD | 51 | #define HAVE_REMOTE_LCD |
52 | 52 | ||
53 | /* Define this for LCD backlight available */ | 53 | /* Define this for LCD backlight available */ |
54 | #define CONFIG_BACKLIGHT BL_IRIVER_H300 /* port controlled PWM */ | 54 | #define HAVE_BACKLIGHT |
55 | 55 | ||
56 | /* Define this if you have a software controlled poweroff */ | 56 | /* Define this if you have a software controlled poweroff */ |
57 | #define HAVE_SW_POWEROFF | 57 | #define HAVE_SW_POWEROFF |
diff --git a/firmware/export/config-iaudiom5.h b/firmware/export/config-iaudiom5.h index bce3c47e5c..bcc843f125 100644 --- a/firmware/export/config-iaudiom5.h +++ b/firmware/export/config-iaudiom5.h | |||
@@ -64,7 +64,7 @@ | |||
64 | #define CONFIG_LCD LCD_S1D15E06 | 64 | #define CONFIG_LCD LCD_S1D15E06 |
65 | 65 | ||
66 | /* Define this for LCD backlight available */ | 66 | /* Define this for LCD backlight available */ |
67 | #define CONFIG_BACKLIGHT BL_M5 /* PCF50606 I2C */ | 67 | #define HAVE_BACKLIGHT |
68 | 68 | ||
69 | /* Define this if you have a software controlled poweroff */ | 69 | /* Define this if you have a software controlled poweroff */ |
70 | #define HAVE_SW_POWEROFF | 70 | #define HAVE_SW_POWEROFF |
diff --git a/firmware/export/config-iaudiox5.h b/firmware/export/config-iaudiox5.h index 57f8a68134..43c02a0ee5 100644 --- a/firmware/export/config-iaudiox5.h +++ b/firmware/export/config-iaudiox5.h | |||
@@ -66,7 +66,7 @@ | |||
66 | #define CONFIG_LCD LCD_X5 | 66 | #define CONFIG_LCD LCD_X5 |
67 | 67 | ||
68 | /* Define this for LCD backlight available */ | 68 | /* Define this for LCD backlight available */ |
69 | #define CONFIG_BACKLIGHT BL_X5 /* PCF50606 I2C */ | 69 | #define HAVE_BACKLIGHT |
70 | #define HAVE_BACKLIGHT_BRIGHTNESS | 70 | #define HAVE_BACKLIGHT_BRIGHTNESS |
71 | 71 | ||
72 | /* Define this if you have a software controlled poweroff */ | 72 | /* Define this if you have a software controlled poweroff */ |
diff --git a/firmware/export/config-ifp7xx.h b/firmware/export/config-ifp7xx.h index 1b0ea17984..435b6ef984 100644 --- a/firmware/export/config-ifp7xx.h +++ b/firmware/export/config-ifp7xx.h | |||
@@ -77,7 +77,7 @@ | |||
77 | #define ROM_START 0x00000000 | 77 | #define ROM_START 0x00000000 |
78 | 78 | ||
79 | /* Define this for LCD backlight available */ | 79 | /* Define this for LCD backlight available */ |
80 | #define CONFIG_BACKLIGHT BL_IRIVER_IFP7XX /* port controlled */ | 80 | #define HAVE_BACKLIGHT |
81 | 81 | ||
82 | /* Define this to the CPU frequency */ | 82 | /* Define this to the CPU frequency */ |
83 | #define CPU_FREQ 48000000 | 83 | #define CPU_FREQ 48000000 |
diff --git a/firmware/export/config-ipod3g.h b/firmware/export/config-ipod3g.h index f3877cfdbc..ff91bcff49 100644 --- a/firmware/export/config-ipod3g.h +++ b/firmware/export/config-ipod3g.h | |||
@@ -64,7 +64,7 @@ | |||
64 | #define HAVE_SW_TONE_CONTROLS | 64 | #define HAVE_SW_TONE_CONTROLS |
65 | 65 | ||
66 | /* Define this for LCD backlight available */ | 66 | /* Define this for LCD backlight available */ |
67 | #define CONFIG_BACKLIGHT BL_IPOD3G /* port controlled */ | 67 | #define HAVE_BACKLIGHT |
68 | 68 | ||
69 | #define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */ | 69 | #define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */ |
70 | 70 | ||
diff --git a/firmware/export/config-ipod4g.h b/firmware/export/config-ipod4g.h index ab172afd2e..4a8d4f1bf2 100644 --- a/firmware/export/config-ipod4g.h +++ b/firmware/export/config-ipod4g.h | |||
@@ -70,7 +70,7 @@ | |||
70 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE | 70 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE |
71 | 71 | ||
72 | /* Define this for LCD backlight available */ | 72 | /* Define this for LCD backlight available */ |
73 | #define CONFIG_BACKLIGHT BL_IPOD4G /* port controlled */ | 73 | #define HAVE_BACKLIGHT |
74 | 74 | ||
75 | #define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */ | 75 | #define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */ |
76 | 76 | ||
diff --git a/firmware/export/config-ipodcolor.h b/firmware/export/config-ipodcolor.h index 5e3e5c3d62..41277041f1 100644 --- a/firmware/export/config-ipodcolor.h +++ b/firmware/export/config-ipodcolor.h | |||
@@ -61,7 +61,7 @@ | |||
61 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE | 61 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE |
62 | 62 | ||
63 | /* Define this for LCD backlight available */ | 63 | /* Define this for LCD backlight available */ |
64 | #define CONFIG_BACKLIGHT BL_IPOD4G /* port controlled */ | 64 | #define HAVE_BACKLIGHT |
65 | 65 | ||
66 | #define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */ | 66 | #define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */ |
67 | 67 | ||
diff --git a/firmware/export/config-ipodmini.h b/firmware/export/config-ipodmini.h index 40987d6b2c..7fba883c9c 100644 --- a/firmware/export/config-ipodmini.h +++ b/firmware/export/config-ipodmini.h | |||
@@ -67,7 +67,7 @@ | |||
67 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE | 67 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE |
68 | 68 | ||
69 | /* Define this for LCD backlight available */ | 69 | /* Define this for LCD backlight available */ |
70 | #define CONFIG_BACKLIGHT BL_IPODMINI /* port controlled */ | 70 | #define HAVE_BACKLIGHT |
71 | 71 | ||
72 | #define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */ | 72 | #define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */ |
73 | 73 | ||
diff --git a/firmware/export/config-ipodmini2g.h b/firmware/export/config-ipodmini2g.h index 80e2820339..55831c4cb3 100644 --- a/firmware/export/config-ipodmini2g.h +++ b/firmware/export/config-ipodmini2g.h | |||
@@ -67,7 +67,7 @@ | |||
67 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE | 67 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE |
68 | 68 | ||
69 | /* Define this for LCD backlight available */ | 69 | /* Define this for LCD backlight available */ |
70 | #define CONFIG_BACKLIGHT BL_IPODMINI /* port controlled */ | 70 | #define HAVE_BACKLIGHT |
71 | 71 | ||
72 | /* We can fade the backlight by using PWM */ | 72 | /* We can fade the backlight by using PWM */ |
73 | #define HAVE_BACKLIGHT_PWM_FADING | 73 | #define HAVE_BACKLIGHT_PWM_FADING |
diff --git a/firmware/export/config-ipodnano.h b/firmware/export/config-ipodnano.h index d32e45d17f..74bfe34d0f 100644 --- a/firmware/export/config-ipodnano.h +++ b/firmware/export/config-ipodnano.h | |||
@@ -61,7 +61,7 @@ | |||
61 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE | 61 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE |
62 | 62 | ||
63 | /* Define this for LCD backlight available */ | 63 | /* Define this for LCD backlight available */ |
64 | #define CONFIG_BACKLIGHT BL_IPODNANO /* port controlled */ | 64 | #define HAVE_BACKLIGHT |
65 | 65 | ||
66 | /* We can fade the backlight by using PWM */ | 66 | /* We can fade the backlight by using PWM */ |
67 | #define HAVE_BACKLIGHT_PWM_FADING | 67 | #define HAVE_BACKLIGHT_PWM_FADING |
diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h index f9cc50d520..e10a7f9e55 100644 --- a/firmware/export/config-ipodvideo.h +++ b/firmware/export/config-ipodvideo.h | |||
@@ -61,7 +61,7 @@ | |||
61 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE | 61 | #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE |
62 | 62 | ||
63 | /* Define this for LCD backlight available */ | 63 | /* Define this for LCD backlight available */ |
64 | #define CONFIG_BACKLIGHT BL_IPODNANO /* port controlled */ | 64 | #define HAVE_BACKLIGHT |
65 | 65 | ||
66 | /* We can fade the backlight by using PWM */ | 66 | /* We can fade the backlight by using PWM */ |
67 | #define HAVE_BACKLIGHT_PWM_FADING | 67 | #define HAVE_BACKLIGHT_PWM_FADING |
diff --git a/firmware/export/config-ondiofm.h b/firmware/export/config-ondiofm.h index 0e691b70e3..c168ecf588 100644 --- a/firmware/export/config-ondiofm.h +++ b/firmware/export/config-ondiofm.h | |||
@@ -40,7 +40,7 @@ | |||
40 | #define CONFIG_CODEC MAS3587F | 40 | #define CONFIG_CODEC MAS3587F |
41 | 41 | ||
42 | /* Enable this if you have done the backlight mod */ | 42 | /* Enable this if you have done the backlight mod */ |
43 | //#define CONFIG_BACKLIGHT BL_PA14_HI | 43 | //#define HAVE_BACKLIGHT |
44 | 44 | ||
45 | #define BATTERY_CAPACITY_DEFAULT 1000 /* default battery capacity */ | 45 | #define BATTERY_CAPACITY_DEFAULT 1000 /* default battery capacity */ |
46 | 46 | ||
diff --git a/firmware/export/config-ondiosp.h b/firmware/export/config-ondiosp.h index da723413ec..1d3e98ac0a 100644 --- a/firmware/export/config-ondiosp.h +++ b/firmware/export/config-ondiosp.h | |||
@@ -33,7 +33,7 @@ | |||
33 | #define CONFIG_CODEC MAS3539F | 33 | #define CONFIG_CODEC MAS3539F |
34 | 34 | ||
35 | /* Enable this if you have done the backlight mod */ | 35 | /* Enable this if you have done the backlight mod */ |
36 | //#define CONFIG_BACKLIGHT BL_PA14_HI | 36 | //#define HAVE_BACKLIGHT |
37 | 37 | ||
38 | #define BATTERY_CAPACITY_DEFAULT 1000 /* default battery capacity */ | 38 | #define BATTERY_CAPACITY_DEFAULT 1000 /* default battery capacity */ |
39 | 39 | ||
diff --git a/firmware/export/config-player.h b/firmware/export/config-player.h index 580831c861..0256db137f 100644 --- a/firmware/export/config-player.h +++ b/firmware/export/config-player.h | |||
@@ -25,7 +25,7 @@ | |||
25 | #define HAVE_DAC3550A | 25 | #define HAVE_DAC3550A |
26 | 26 | ||
27 | /* Define this for LCD backlight available */ | 27 | /* Define this for LCD backlight available */ |
28 | #define CONFIG_BACKLIGHT BL_PA14_LO /* port PA14, low active */ | 28 | #define HAVE_BACKLIGHT |
29 | 29 | ||
30 | #define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */ | 30 | #define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */ |
31 | 31 | ||
diff --git a/firmware/export/config-recorder.h b/firmware/export/config-recorder.h index d8bd0bed2f..3fe7365d3c 100644 --- a/firmware/export/config-recorder.h +++ b/firmware/export/config-recorder.h | |||
@@ -46,7 +46,7 @@ | |||
46 | #define HAVE_SPDIF_IN | 46 | #define HAVE_SPDIF_IN |
47 | 47 | ||
48 | /* Define this for LCD backlight available */ | 48 | /* Define this for LCD backlight available */ |
49 | #define CONFIG_BACKLIGHT BL_RTC /* on I2C controlled RTC port */ | 49 | #define HAVE_BACKLIGHT |
50 | 50 | ||
51 | #define CONFIG_I2C I2C_PLAYREC | 51 | #define CONFIG_I2C I2C_PLAYREC |
52 | 52 | ||
diff --git a/firmware/export/config-recorderv2.h b/firmware/export/config-recorderv2.h index 0e6e00c167..8211994275 100644 --- a/firmware/export/config-recorderv2.h +++ b/firmware/export/config-recorderv2.h | |||
@@ -49,7 +49,7 @@ | |||
49 | #define HAVE_SPDIF_IN | 49 | #define HAVE_SPDIF_IN |
50 | 50 | ||
51 | /* Define this for LCD backlight available */ | 51 | /* Define this for LCD backlight available */ |
52 | #define CONFIG_BACKLIGHT BL_RTC /* on I2C controlled RTC port */ | 52 | #define HAVE_BACKLIGHT |
53 | 53 | ||
54 | #define CONFIG_I2C I2C_PLAYREC | 54 | #define CONFIG_I2C I2C_PLAYREC |
55 | 55 | ||
diff --git a/firmware/export/config-tpj1022.h b/firmware/export/config-tpj1022.h index 5837b0f01f..02e7319cfe 100644 --- a/firmware/export/config-tpj1022.h +++ b/firmware/export/config-tpj1022.h | |||
@@ -55,8 +55,7 @@ | |||
55 | #define AB_REPEAT_ENABLE 1 | 55 | #define AB_REPEAT_ENABLE 1 |
56 | 56 | ||
57 | /* Define this for LCD backlight available */ | 57 | /* Define this for LCD backlight available */ |
58 | #define CONFIG_BACKLIGHT BL_TPJ1022 /* TODO: figure this out, probably not necessary | 58 | #define HAVE_BACKLIGHT |
59 | because of 'target' stuff */ | ||
60 | 59 | ||
61 | #define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity | 60 | #define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity |
62 | TODO: check this, probably different | 61 | TODO: check this, probably different |
diff --git a/firmware/export/config.h b/firmware/export/config.h index 2d7b3e131a..0ad94e06b1 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -113,24 +113,6 @@ | |||
113 | #define RGB565 565 | 113 | #define RGB565 565 |
114 | #define RGB565SWAPPED 3553 | 114 | #define RGB565SWAPPED 3553 |
115 | 115 | ||
116 | /* CONFIG_BACKLIGHT */ | ||
117 | #define BL_PA14_LO 1 /* Player, PA14 low active */ | ||
118 | #define BL_RTC 2 /* Recorder, RTC square wave output */ | ||
119 | #define BL_PA14_HI 3 /* Ondio, PA14 high active */ | ||
120 | #define BL_IRIVER_H100 4 /* IRiver GPIO */ | ||
121 | #define BL_IPOD4G 5 /* Apple iPod 4G */ | ||
122 | #define BL_IPODNANO 6 /* Apple iPod Nano and iPod Video*/ | ||
123 | #define BL_IPOD3G 7 /* Apple iPod 3g with dock */ | ||
124 | #define BL_IRIVER_H300 8 /* IRiver PWM */ | ||
125 | #define BL_IRIVER_IFP7XX 9 /* IRiver GPIO */ | ||
126 | #define BL_IPODMINI 10 /* Apple iPod Mini */ | ||
127 | #define BL_GIGABEAT 11 /* Toshiba Gigabeat */ | ||
128 | #define BL_H10 12 /* iriver H10 */ | ||
129 | #define BL_X5 13 /* iAudio X5 PCF50606 I2C */ | ||
130 | #define BL_H10_5GB 14 /* iriver H10 5/6GB */ | ||
131 | #define BL_TPJ1022 15 /* Tatung Elio TPJ-1022 */ | ||
132 | #define BL_M5 16 /* iAudio M5 PCF50606 I2C */ | ||
133 | |||
134 | /* CONFIG_I2C */ | 116 | /* CONFIG_I2C */ |
135 | #define I2C_PLAYREC 1 /* Archos Player/Recorder style */ | 117 | #define I2C_PLAYREC 1 /* Archos Player/Recorder style */ |
136 | #define I2C_ONDIO 2 /* Ondio style */ | 118 | #define I2C_ONDIO 2 /* Ondio style */ |
@@ -235,10 +217,6 @@ | |||
235 | #define CONFIG_LED 0 | 217 | #define CONFIG_LED 0 |
236 | #endif | 218 | #endif |
237 | 219 | ||
238 | #ifndef CONFIG_BACKLIGHT | ||
239 | #define CONFIG_BACKLIGHT 0 | ||
240 | #endif | ||
241 | |||
242 | #ifndef CONFIG_CHARGING | 220 | #ifndef CONFIG_CHARGING |
243 | #define CONFIG_CHARGING 0 | 221 | #define CONFIG_CHARGING 0 |
244 | #endif | 222 | #endif |