diff options
author | Nils Wallménius <nils@rockbox.org> | 2007-08-12 19:49:03 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2007-08-12 19:49:03 +0000 |
commit | f28da1a35a6403b153f93f66e3d96e485f89c363 (patch) | |
tree | 760d0c286a65042e18e2165ff555be0d40e80558 /firmware | |
parent | 90c40b7fea0275e212addf3ae6ac6979f5b4585b (diff) | |
download | rockbox-f28da1a35a6403b153f93f66e3d96e485f89c363.tar.gz rockbox-f28da1a35a6403b153f93f66e3d96e485f89c363.zip |
Enable a lot more features for simulators and add stubs where necessary, simulators should now work with identical lng and voice files as the respective target
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14299 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
35 files changed, 450 insertions, 545 deletions
diff --git a/firmware/SOURCES b/firmware/SOURCES index ccd6f11570..bbbe150112 100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES | |||
@@ -95,11 +95,11 @@ drivers/lcd-remote-2bit-vi.c | |||
95 | 95 | ||
96 | /* Misc. */ | 96 | /* Misc. */ |
97 | drivers/led.c | 97 | drivers/led.c |
98 | drivers/button.c | ||
98 | #ifndef TARGET_TREE | 99 | #ifndef TARGET_TREE |
99 | drivers/power.c | 100 | drivers/power.c |
100 | #endif /* TARGET_TREE */ | 101 | #endif /* TARGET_TREE */ |
101 | #ifndef SIMULATOR | 102 | #ifndef SIMULATOR |
102 | drivers/button.c | ||
103 | drivers/dac.c | 103 | drivers/dac.c |
104 | drivers/serial.c | 104 | drivers/serial.c |
105 | #endif /* SIMULATOR */ | 105 | #endif /* SIMULATOR */ |
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 715d4d3025..7b5fd26f3b 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include "lcd-remote.h" | 37 | #include "lcd-remote.h" |
38 | #endif | 38 | #endif |
39 | 39 | ||
40 | #ifndef SIMULATOR | ||
40 | #if 0 | 41 | #if 0 |
41 | /* Older than MAX_EVENT_AGE button events are going to be ignored. | 42 | /* Older than MAX_EVENT_AGE button events are going to be ignored. |
42 | * Used to prevent for example volume going up uncontrollable when events | 43 | * Used to prevent for example volume going up uncontrollable when events |
@@ -482,6 +483,8 @@ void button_clear_queue(void) | |||
482 | queue_clear(&button_queue); | 483 | queue_clear(&button_queue); |
483 | } | 484 | } |
484 | 485 | ||
486 | #endif /* SIMULATOR */ | ||
487 | |||
485 | #ifdef HAVE_SCROLLWHEEL | 488 | #ifdef HAVE_SCROLLWHEEL |
486 | /** | 489 | /** |
487 | * data: | 490 | * data: |
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c index 50117dd321..593fe29eb5 100644 --- a/firmware/drivers/power.c +++ b/firmware/drivers/power.c | |||
@@ -219,11 +219,6 @@ void power_off(void) | |||
219 | 219 | ||
220 | #else | 220 | #else |
221 | 221 | ||
222 | bool charger_inserted(void) | ||
223 | { | ||
224 | return false; | ||
225 | } | ||
226 | |||
227 | void charger_enable(bool on) | 222 | void charger_enable(bool on) |
228 | { | 223 | { |
229 | (void)on; | 224 | (void)on; |
diff --git a/firmware/export/config-e200.h b/firmware/export/config-e200.h index b59974ad96..17f06b5cea 100644 --- a/firmware/export/config-e200.h +++ b/firmware/export/config-e200.h | |||
@@ -44,6 +44,19 @@ | |||
44 | #define LCD_DEPTH 16 /* 65536 colours */ | 44 | #define LCD_DEPTH 16 /* 65536 colours */ |
45 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | 45 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ |
46 | 46 | ||
47 | /* define this if you have LCD enable function */ | ||
48 | #define HAVE_LCD_ENABLE | ||
49 | |||
50 | /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE | ||
51 | should be defined as well. */ | ||
52 | #define HAVE_LCD_SLEEP | ||
53 | |||
54 | /* define this if you can flip your LCD */ | ||
55 | #define HAVE_LCD_FLIP | ||
56 | |||
57 | /* define this if you can invert the colours on your LCD */ | ||
58 | #define HAVE_LCD_INVERT | ||
59 | |||
47 | /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */ | 60 | /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */ |
48 | 61 | ||
49 | #define CONFIG_KEYPAD SANSA_E200_PAD | 62 | #define CONFIG_KEYPAD SANSA_E200_PAD |
@@ -82,22 +95,20 @@ | |||
82 | #define HAVE_BACKLIGHT | 95 | #define HAVE_BACKLIGHT |
83 | #define HAVE_BACKLIGHT_BRIGHTNESS | 96 | #define HAVE_BACKLIGHT_BRIGHTNESS |
84 | 97 | ||
85 | #define BATTERY_CAPACITY_DEFAULT 750 /* default battery capacity */ | 98 | /* define this if the unit uses a scrollwheel for navigation */ |
99 | #define HAVE_SCROLLWHEEL | ||
100 | /* define wheel acceleration scaling factor */ | ||
101 | /* Range for this target: 0xffffff*(0.0-16.000000894069724921567733381255) */ | ||
102 | #define WHEEL_ACCELERATION_FACTOR (0xffffff*7) | ||
86 | 103 | ||
87 | /* define this if you have a flash memory storage */ | 104 | /* define this if you have a flash memory storage */ |
88 | #define HAVE_FLASH_STORAGE | 105 | #define HAVE_FLASH_STORAGE |
89 | 106 | ||
90 | /** Non-simulator section **/ | 107 | #define HAVE_MULTIVOLUME |
91 | #ifndef SIMULATOR | ||
92 | |||
93 | /* Define this if you have a PortalPlayer PP5024 */ | ||
94 | #define CONFIG_CPU PP5024 | ||
95 | |||
96 | /* Define this if you want to use the PP5024 i2c interface */ | ||
97 | #define CONFIG_I2C I2C_PP5024 | ||
98 | 108 | ||
99 | /* Type of mobile power */ | 109 | /* Type of mobile power */ |
100 | #define CONFIG_BATTERY BATT_LIION750 | 110 | #define CONFIG_BATTERY BATT_LIION750 |
111 | #define BATTERY_CAPACITY_DEFAULT 750 /* default battery capacity */ | ||
101 | #define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */ | 112 | #define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */ |
102 | #define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */ | 113 | #define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */ |
103 | #define BATTERY_CAPACITY_INC 0 /* capacity increment */ | 114 | #define BATTERY_CAPACITY_INC 0 /* capacity increment */ |
@@ -107,6 +118,18 @@ | |||
107 | /* Hardware controlled charging? FIXME */ | 118 | /* Hardware controlled charging? FIXME */ |
108 | #define CONFIG_CHARGING CHARGING_SIMPLE | 119 | #define CONFIG_CHARGING CHARGING_SIMPLE |
109 | 120 | ||
121 | /* define this if the unit can be powered or charged via USB */ | ||
122 | #define HAVE_USB_POWER | ||
123 | |||
124 | /** Non-simulator section **/ | ||
125 | #ifndef SIMULATOR | ||
126 | |||
127 | /* Define this if you have a PortalPlayer PP5024 */ | ||
128 | #define CONFIG_CPU PP5024 | ||
129 | |||
130 | /* Define this if you want to use the PP5024 i2c interface */ | ||
131 | #define CONFIG_I2C I2C_PP5024 | ||
132 | |||
110 | /* define this if the hardware can be powered off while charging */ | 133 | /* define this if the hardware can be powered off while charging */ |
111 | /* Sansa can't be powered off while charging */ | 134 | /* Sansa can't be powered off while charging */ |
112 | /* #define HAVE_POWEROFF_WHILE_CHARGING */ | 135 | /* #define HAVE_POWEROFF_WHILE_CHARGING */ |
@@ -121,20 +144,6 @@ | |||
121 | #define CONFIG_LCD LCD_X5 | 144 | #define CONFIG_LCD LCD_X5 |
122 | 145 | ||
123 | #define HAVE_HOTSWAP | 146 | #define HAVE_HOTSWAP |
124 | #define HAVE_MULTIVOLUME | ||
125 | |||
126 | /* define this if you have LCD enable function */ | ||
127 | #define HAVE_LCD_ENABLE | ||
128 | |||
129 | /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE | ||
130 | should be defined as well. */ | ||
131 | #define HAVE_LCD_SLEEP | ||
132 | |||
133 | /* define this if you can invert the colours on your LCD */ | ||
134 | #define HAVE_LCD_INVERT | ||
135 | |||
136 | /* define this if you can flip your LCD */ | ||
137 | #define HAVE_LCD_FLIP | ||
138 | 147 | ||
139 | /* Offset ( in the firmware file's header ) to the file CRC and data. These are | 148 | /* Offset ( in the firmware file's header ) to the file CRC and data. These are |
140 | only used when loading the old format rockbox.e200 file */ | 149 | only used when loading the old format rockbox.e200 file */ |
@@ -146,9 +155,6 @@ | |||
146 | /* USB On-the-go */ | 155 | /* USB On-the-go */ |
147 | #define CONFIG_USBOTG USBOTG_ARC | 156 | #define CONFIG_USBOTG USBOTG_ARC |
148 | 157 | ||
149 | /* define this if the unit can be powered or charged via USB */ | ||
150 | #define HAVE_USB_POWER | ||
151 | |||
152 | /* Virtual LED (icon) */ | 158 | /* Virtual LED (icon) */ |
153 | #define CONFIG_LED LED_VIRTUAL | 159 | #define CONFIG_LED LED_VIRTUAL |
154 | 160 | ||
@@ -163,12 +169,6 @@ | |||
163 | 169 | ||
164 | #define ICODE_ATTR_TREMOR_NOT_MDCT | 170 | #define ICODE_ATTR_TREMOR_NOT_MDCT |
165 | 171 | ||
166 | /* define this if the unit uses a scrollwheel for navigation */ | ||
167 | #define HAVE_SCROLLWHEEL | ||
168 | /* define wheel acceleration scaling factor */ | ||
169 | /* Range for this target: 0xffffff*(0.0-16.000000894069724921567733381255) */ | ||
170 | #define WHEEL_ACCELERATION_FACTOR (0xffffff*7) | ||
171 | |||
172 | #define INCLUDE_TIMEOUT_API | 172 | #define INCLUDE_TIMEOUT_API |
173 | 173 | ||
174 | #endif /* SIMULATOR */ | 174 | #endif /* SIMULATOR */ |
diff --git a/firmware/export/config-fmrecorder.h b/firmware/export/config-fmrecorder.h index 479815ee2c..2f5254f3bc 100644 --- a/firmware/export/config-fmrecorder.h +++ b/firmware/export/config-fmrecorder.h | |||
@@ -35,6 +35,9 @@ | |||
35 | /* define this if you have a real-time clock */ | 35 | /* define this if you have a real-time clock */ |
36 | #define CONFIG_RTC RTC_M41ST84W | 36 | #define CONFIG_RTC RTC_M41ST84W |
37 | 37 | ||
38 | /* FM recorders can wake up from RTC alarm */ | ||
39 | #define HAVE_RTC_ALARM | ||
40 | |||
38 | /* define this if you have RTC RAM available for settings */ | 41 | /* define this if you have RTC RAM available for settings */ |
39 | #define HAVE_RTC_RAM | 42 | #define HAVE_RTC_RAM |
40 | 43 | ||
@@ -57,7 +60,21 @@ | |||
57 | 60 | ||
58 | #define CONFIG_I2C I2C_PLAYREC | 61 | #define CONFIG_I2C I2C_PLAYREC |
59 | 62 | ||
63 | /* Type of mobile power */ | ||
64 | #define CONFIG_BATTERY BATT_LIION2200 | ||
60 | #define BATTERY_CAPACITY_DEFAULT 2200 /* default battery capacity */ | 65 | #define BATTERY_CAPACITY_DEFAULT 2200 /* default battery capacity */ |
66 | #define BATTERY_CAPACITY_MIN 2200 /* min. capacity selectable */ | ||
67 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ | ||
68 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
69 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
70 | /* Battery scale factor (guessed, seems to be 1,25 * value from recorder) */ | ||
71 | #define BATTERY_SCALE_FACTOR 8081 | ||
72 | |||
73 | /* Hardware controlled charging with monitoring */ | ||
74 | #define CONFIG_CHARGING CHARGING_MONITOR | ||
75 | |||
76 | /* define this if the unit can be powered or charged via USB */ | ||
77 | #define HAVE_USB_POWER | ||
61 | 78 | ||
62 | #ifndef SIMULATOR | 79 | #ifndef SIMULATOR |
63 | 80 | ||
@@ -76,15 +93,6 @@ | |||
76 | /* Define this to the CPU frequency */ | 93 | /* Define this to the CPU frequency */ |
77 | #define CPU_FREQ 11059200 | 94 | #define CPU_FREQ 11059200 |
78 | 95 | ||
79 | /* Type of mobile power */ | ||
80 | #define CONFIG_BATTERY BATT_LIION2200 | ||
81 | #define BATTERY_CAPACITY_MIN 2200 /* min. capacity selectable */ | ||
82 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ | ||
83 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
84 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
85 | /* Battery scale factor (guessed, seems to be 1,25 * value from recorder) */ | ||
86 | #define BATTERY_SCALE_FACTOR 8081 | ||
87 | |||
88 | /* Define this if you control power on PB5 (instead of the OFF button) */ | 96 | /* Define this if you control power on PB5 (instead of the OFF button) */ |
89 | #define HAVE_POWEROFF_ON_PB5 | 97 | #define HAVE_POWEROFF_ON_PB5 |
90 | 98 | ||
@@ -97,12 +105,6 @@ | |||
97 | /* Offset ( in the firmware file's header ) to the real data */ | 105 | /* Offset ( in the firmware file's header ) to the real data */ |
98 | #define FIRMWARE_OFFSET_FILE_DATA 24 | 106 | #define FIRMWARE_OFFSET_FILE_DATA 24 |
99 | 107 | ||
100 | /* FM recorders can wake up from RTC alarm */ | ||
101 | #define HAVE_RTC_ALARM | ||
102 | |||
103 | /* Hardware controlled charging with monitoring */ | ||
104 | #define CONFIG_CHARGING CHARGING_MONITOR | ||
105 | |||
106 | /* The start address index for ROM builds */ | 108 | /* The start address index for ROM builds */ |
107 | /* #define ROM_START 0x14010 for behind original Archos */ | 109 | /* #define ROM_START 0x14010 for behind original Archos */ |
108 | #define ROM_START 0x7010 /* for behind BootBox */ | 110 | #define ROM_START 0x7010 /* for behind BootBox */ |
@@ -110,9 +112,6 @@ | |||
110 | /* Software controlled LED */ | 112 | /* Software controlled LED */ |
111 | #define CONFIG_LED LED_REAL | 113 | #define CONFIG_LED LED_REAL |
112 | 114 | ||
113 | /* define this if the unit can be powered or charged via USB */ | ||
114 | #define HAVE_USB_POWER | ||
115 | |||
116 | #define CONFIG_LCD LCD_SSD1815 | 115 | #define CONFIG_LCD LCD_SSD1815 |
117 | 116 | ||
118 | #define BOOTFILE_EXT "ajz" | 117 | #define BOOTFILE_EXT "ajz" |
diff --git a/firmware/export/config-gigabeat.h b/firmware/export/config-gigabeat.h index 38be0d078f..319ad4e916 100644 --- a/firmware/export/config-gigabeat.h +++ b/firmware/export/config-gigabeat.h | |||
@@ -32,6 +32,9 @@ | |||
32 | #define LCD_DEPTH 16 /* 65k colours */ | 32 | #define LCD_DEPTH 16 /* 65k colours */ |
33 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | 33 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ |
34 | 34 | ||
35 | /* Define this if your LCD can be enabled/disabled */ | ||
36 | #define HAVE_LCD_ENABLE | ||
37 | |||
35 | #define CONFIG_KEYPAD GIGABEAT_PAD | 38 | #define CONFIG_KEYPAD GIGABEAT_PAD |
36 | 39 | ||
37 | /* Define this if you do software codec */ | 40 | /* Define this if you do software codec */ |
@@ -71,38 +74,38 @@ | |||
71 | /* Define this if you want to use the adaptive bass capibility of the 8751 */ | 74 | /* Define this if you want to use the adaptive bass capibility of the 8751 */ |
72 | /* #define USE_ADAPTIVE_BASS */ | 75 | /* #define USE_ADAPTIVE_BASS */ |
73 | 76 | ||
74 | #define BATTERY_CAPACITY_DEFAULT 2000 /* default battery capacity */ | ||
75 | |||
76 | #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \ | 77 | #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \ |
77 | SAMPR_CAP_11) | 78 | SAMPR_CAP_11) |
78 | 79 | ||
79 | #ifndef SIMULATOR | 80 | #define HAVE_HEADPHONE_DETECTION |
80 | |||
81 | /* Define this if your LCD can be enabled/disabled */ | ||
82 | #define HAVE_LCD_ENABLE | ||
83 | |||
84 | /* The LCD on a Gigabeat is 240x320 - it is portrait */ | ||
85 | #define HAVE_PORTRAIT_LCD | ||
86 | |||
87 | /* Define this if you have a Motorola SCF5249 */ | ||
88 | #define CONFIG_CPU S3C2440 | ||
89 | |||
90 | /* Define this if you want to use coldfire's i2c interface */ | ||
91 | #define CONFIG_I2C I2C_S3C2440 | ||
92 | 81 | ||
93 | /* Type of mobile power - check this out */ | 82 | /* Type of mobile power - check this out */ |
94 | #define CONFIG_BATTERY BATT_LIION830 /* could change this later */ | 83 | #define CONFIG_BATTERY BATT_LIION830 /* could change this later */ |
84 | #define BATTERY_CAPACITY_DEFAULT 2000 /* default battery capacity */ | ||
95 | #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */ | 85 | #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */ |
96 | #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */ | 86 | #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */ |
97 | #define BATTERY_CAPACITY_INC 25 /* capacity increment */ | 87 | #define BATTERY_CAPACITY_INC 25 /* capacity increment */ |
98 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | 88 | #define BATTERY_TYPES_COUNT 1 /* only one type */ |
99 | |||
100 | /* ADC[0] is (530) at discharge and 625 at full charge */ | 89 | /* ADC[0] is (530) at discharge and 625 at full charge */ |
101 | #define BATTERY_SCALE_FACTOR 6450 | 90 | #define BATTERY_SCALE_FACTOR 6450 |
102 | 91 | ||
103 | /* Hardware controlled charging with monitoring */ | 92 | /* Hardware controlled charging with monitoring */ |
104 | #define CONFIG_CHARGING CHARGING_MONITOR | 93 | #define CONFIG_CHARGING CHARGING_MONITOR |
105 | 94 | ||
95 | /* define this if the unit can be powered or charged via USB */ | ||
96 | #define HAVE_USB_POWER | ||
97 | |||
98 | #ifndef SIMULATOR | ||
99 | |||
100 | /* The LCD on a Gigabeat is 240x320 - it is portrait */ | ||
101 | #define HAVE_PORTRAIT_LCD | ||
102 | |||
103 | /* Define this if you have a Motorola SCF5249 */ | ||
104 | #define CONFIG_CPU S3C2440 | ||
105 | |||
106 | /* Define this if you want to use coldfire's i2c interface */ | ||
107 | #define CONFIG_I2C I2C_S3C2440 | ||
108 | |||
106 | /* define this if the hardware can be powered off while charging */ | 109 | /* define this if the hardware can be powered off while charging */ |
107 | #define HAVE_POWEROFF_WHILE_CHARGING | 110 | #define HAVE_POWEROFF_WHILE_CHARGING |
108 | 111 | ||
@@ -112,9 +115,6 @@ | |||
112 | /* Define this to the CPU frequency */ | 115 | /* Define this to the CPU frequency */ |
113 | #define CPU_FREQ 16934400 | 116 | #define CPU_FREQ 16934400 |
114 | 117 | ||
115 | /* define this if the unit can be powered or charged via USB */ | ||
116 | #define HAVE_USB_POWER | ||
117 | |||
118 | /* Define this if you have ATA power-off control */ | 118 | /* Define this if you have ATA power-off control */ |
119 | #define HAVE_ATA_POWER_OFF | 119 | #define HAVE_ATA_POWER_OFF |
120 | 120 | ||
@@ -133,8 +133,6 @@ | |||
133 | /* Offset ( in the firmware file's header ) to the real data */ | 133 | /* Offset ( in the firmware file's header ) to the real data */ |
134 | #define FIRMWARE_OFFSET_FILE_DATA 8 | 134 | #define FIRMWARE_OFFSET_FILE_DATA 8 |
135 | 135 | ||
136 | #define HAVE_HEADPHONE_DETECTION | ||
137 | |||
138 | /* Define this if you have adjustable CPU frequency */ | 136 | /* Define this if you have adjustable CPU frequency */ |
139 | /* #define HAVE_ADJUSTABLE_CPU_FREQ */ | 137 | /* #define HAVE_ADJUSTABLE_CPU_FREQ */ |
140 | 138 | ||
diff --git a/firmware/export/config-h10.h b/firmware/export/config-h10.h index 7a97f4c9bd..502b5b106e 100644 --- a/firmware/export/config-h10.h +++ b/firmware/export/config-h10.h | |||
@@ -41,6 +41,14 @@ | |||
41 | #define LCD_DEPTH 16 /* 65536 colours */ | 41 | #define LCD_DEPTH 16 /* 65536 colours */ |
42 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | 42 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ |
43 | 43 | ||
44 | /* Define this if your LCD can be enabled/disabled */ | ||
45 | #define HAVE_LCD_ENABLE | ||
46 | |||
47 | /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE | ||
48 | * should be defined as well. | ||
49 | * We can currently put the lcd to sleep but it won't wake up properly */ | ||
50 | #define HAVE_LCD_SLEEP | ||
51 | |||
44 | /* define this if you can flip your LCD */ | 52 | /* define this if you can flip your LCD */ |
45 | #define HAVE_LCD_FLIP | 53 | #define HAVE_LCD_FLIP |
46 | 54 | ||
@@ -83,20 +91,11 @@ | |||
83 | /* Define this for LCD backlight available */ | 91 | /* Define this for LCD backlight available */ |
84 | #define HAVE_BACKLIGHT | 92 | #define HAVE_BACKLIGHT |
85 | 93 | ||
86 | #define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity */ | ||
87 | |||
88 | #define AB_REPEAT_ENABLE 1 | 94 | #define AB_REPEAT_ENABLE 1 |
89 | 95 | ||
90 | #ifndef SIMULATOR | ||
91 | |||
92 | /* Define this if you have a PortalPlayer PP5020 */ | ||
93 | #define CONFIG_CPU PP5020 | ||
94 | |||
95 | /* Define this if you want to use the PP5020 i2c interface */ | ||
96 | #define CONFIG_I2C I2C_PP5020 | ||
97 | |||
98 | /* Type of mobile power */ | 96 | /* Type of mobile power */ |
99 | #define CONFIG_BATTERY BATT_LPCS355385 | 97 | #define CONFIG_BATTERY BATT_LPCS355385 |
98 | #define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity */ | ||
100 | #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */ | 99 | #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */ |
101 | #define BATTERY_CAPACITY_MAX 1600 /* max. capacity selectable */ | 100 | #define BATTERY_CAPACITY_MAX 1600 /* max. capacity selectable */ |
102 | #define BATTERY_CAPACITY_INC 10 /* capacity increment */ | 101 | #define BATTERY_CAPACITY_INC 10 /* capacity increment */ |
@@ -106,6 +105,17 @@ | |||
106 | /* Hardware controlled charging */ | 105 | /* Hardware controlled charging */ |
107 | #define CONFIG_CHARGING CHARGING_SIMPLE | 106 | #define CONFIG_CHARGING CHARGING_SIMPLE |
108 | 107 | ||
108 | /* define this if the unit can be powered or charged via USB */ | ||
109 | #define HAVE_USB_POWER | ||
110 | |||
111 | #ifndef SIMULATOR | ||
112 | |||
113 | /* Define this if you have a PortalPlayer PP5020 */ | ||
114 | #define CONFIG_CPU PP5020 | ||
115 | |||
116 | /* Define this if you want to use the PP5020 i2c interface */ | ||
117 | #define CONFIG_I2C I2C_PP5020 | ||
118 | |||
109 | /* define this if the hardware can be powered off while charging */ | 119 | /* define this if the hardware can be powered off while charging */ |
110 | #define HAVE_POWEROFF_WHILE_CHARGING | 120 | #define HAVE_POWEROFF_WHILE_CHARGING |
111 | 121 | ||
@@ -128,14 +138,6 @@ | |||
128 | #define MAX_CONTRAST_SETTING 30 | 138 | #define MAX_CONTRAST_SETTING 30 |
129 | #define DEFAULT_CONTRAST_SETTING 14 /* Match boot contrast */ | 139 | #define DEFAULT_CONTRAST_SETTING 14 /* Match boot contrast */ |
130 | 140 | ||
131 | /* Define this if your LCD can be enabled/disabled */ | ||
132 | #define HAVE_LCD_ENABLE | ||
133 | |||
134 | /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE | ||
135 | * should be defined as well. | ||
136 | * We can currently put the lcd to sleep but it won't wake up properly */ | ||
137 | #define HAVE_LCD_SLEEP | ||
138 | |||
139 | /* We're able to shut off power to the HDD */ | 141 | /* We're able to shut off power to the HDD */ |
140 | #define HAVE_ATA_POWER_OFF | 142 | #define HAVE_ATA_POWER_OFF |
141 | 143 | ||
@@ -149,9 +151,6 @@ | |||
149 | /* USB On-the-go */ | 151 | /* USB On-the-go */ |
150 | #define CONFIG_USBOTG USBOTG_ARC | 152 | #define CONFIG_USBOTG USBOTG_ARC |
151 | 153 | ||
152 | /* define this if the unit can be powered or charged via USB */ | ||
153 | #define HAVE_USB_POWER | ||
154 | |||
155 | /* Virtual LED (icon) */ | 154 | /* Virtual LED (icon) */ |
156 | #define CONFIG_LED LED_VIRTUAL | 155 | #define CONFIG_LED LED_VIRTUAL |
157 | 156 | ||
diff --git a/firmware/export/config-h100.h b/firmware/export/config-h100.h index af51e81f70..3d6f217ebb 100644 --- a/firmware/export/config-h100.h +++ b/firmware/export/config-h100.h | |||
@@ -53,6 +53,9 @@ | |||
53 | /* Define this if you have an remote lcd */ | 53 | /* Define this if you have an remote lcd */ |
54 | #define HAVE_REMOTE_LCD | 54 | #define HAVE_REMOTE_LCD |
55 | 55 | ||
56 | /* Define if we have a hardware defect that causes ticking on the audio line */ | ||
57 | #define HAVE_REMOTE_LCD_TICKING | ||
58 | |||
56 | #define CONFIG_LCD LCD_S1D15E06 | 59 | #define CONFIG_LCD LCD_S1D15E06 |
57 | 60 | ||
58 | /* Define this for LCD backlight available */ | 61 | /* Define this for LCD backlight available */ |
@@ -70,8 +73,6 @@ | |||
70 | /* The number of bytes reserved for loadable plugins */ | 73 | /* The number of bytes reserved for loadable plugins */ |
71 | #define PLUGIN_BUFFER_SIZE 0x80000 | 74 | #define PLUGIN_BUFFER_SIZE 0x80000 |
72 | 75 | ||
73 | #define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */ | ||
74 | |||
75 | #define AB_REPEAT_ENABLE 1 | 76 | #define AB_REPEAT_ENABLE 1 |
76 | 77 | ||
77 | #define CONFIG_TUNER TEA5767 | 78 | #define CONFIG_TUNER TEA5767 |
@@ -90,23 +91,9 @@ | |||
90 | 91 | ||
91 | #define HAVE_AGC | 92 | #define HAVE_AGC |
92 | 93 | ||
93 | #ifndef SIMULATOR | ||
94 | |||
95 | /* Define this if you have a Motorola SCF5249 */ | ||
96 | #define CONFIG_CPU MCF5249 | ||
97 | |||
98 | /* Define this if you want to use coldfire's i2c interface */ | ||
99 | #define CONFIG_I2C I2C_COLDFIRE | ||
100 | |||
101 | /* Define this if you can run rockbox from flash memory */ | ||
102 | /* In theory we can, but somebody needs to verify there are no issues. */ | ||
103 | // #define HAVE_FLASHED_ROCKBOX | ||
104 | |||
105 | /* Define if we have a hardware defect that causes ticking on the audio line */ | ||
106 | #define HAVE_REMOTE_LCD_TICKING | ||
107 | |||
108 | /* Type of mobile power */ | 94 | /* Type of mobile power */ |
109 | #define CONFIG_BATTERY BATT_LIPOL1300 | 95 | #define CONFIG_BATTERY BATT_LIPOL1300 |
96 | #define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */ | ||
110 | #define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */ | 97 | #define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */ |
111 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ | 98 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ |
112 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | 99 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ |
@@ -117,6 +104,18 @@ | |||
117 | //#define CONFIG_CHARGING CHARGING_SIMPLE | 104 | //#define CONFIG_CHARGING CHARGING_SIMPLE |
118 | #define CONFIG_CHARGING CHARGING_MONITOR /* FIXME: remove that once monitoring is fixed properly */ | 105 | #define CONFIG_CHARGING CHARGING_MONITOR /* FIXME: remove that once monitoring is fixed properly */ |
119 | 106 | ||
107 | #ifndef SIMULATOR | ||
108 | |||
109 | /* Define this if you have a Motorola SCF5249 */ | ||
110 | #define CONFIG_CPU MCF5249 | ||
111 | |||
112 | /* Define this if you want to use coldfire's i2c interface */ | ||
113 | #define CONFIG_I2C I2C_COLDFIRE | ||
114 | |||
115 | /* Define this if you can run rockbox from flash memory */ | ||
116 | /* In theory we can, but somebody needs to verify there are no issues. */ | ||
117 | // #define HAVE_FLASHED_ROCKBOX | ||
118 | |||
120 | /* define this if the hardware can be powered off while charging */ | 119 | /* define this if the hardware can be powered off while charging */ |
121 | #define HAVE_POWEROFF_WHILE_CHARGING | 120 | #define HAVE_POWEROFF_WHILE_CHARGING |
122 | 121 | ||
diff --git a/firmware/export/config-h10_5gb.h b/firmware/export/config-h10_5gb.h index add682cbe3..254f59fa35 100644 --- a/firmware/export/config-h10_5gb.h +++ b/firmware/export/config-h10_5gb.h | |||
@@ -77,20 +77,11 @@ | |||
77 | /* Define this for LCD backlight available */ | 77 | /* Define this for LCD backlight available */ |
78 | #define HAVE_BACKLIGHT | 78 | #define HAVE_BACKLIGHT |
79 | 79 | ||
80 | #define BATTERY_CAPACITY_DEFAULT 820 /* default battery capacity */ | ||
81 | |||
82 | #define AB_REPEAT_ENABLE 1 | 80 | #define AB_REPEAT_ENABLE 1 |
83 | 81 | ||
84 | #ifndef SIMULATOR | ||
85 | |||
86 | /* Define this if you have a PortalPlayer PP5020 */ | ||
87 | #define CONFIG_CPU PP5020 | ||
88 | |||
89 | /* Define this if you want to use the PP5020 i2c interface */ | ||
90 | #define CONFIG_I2C I2C_PP5020 | ||
91 | |||
92 | /* Type of mobile power */ | 82 | /* Type of mobile power */ |
93 | #define CONFIG_BATTERY BATT_BP009 | 83 | #define CONFIG_BATTERY BATT_BP009 |
84 | #define BATTERY_CAPACITY_DEFAULT 820 /* default battery capacity */ | ||
94 | #define BATTERY_CAPACITY_MIN 700 /* min. capacity selectable */ | 85 | #define BATTERY_CAPACITY_MIN 700 /* min. capacity selectable */ |
95 | #define BATTERY_CAPACITY_MAX 900 /* max. capacity selectable */ | 86 | #define BATTERY_CAPACITY_MAX 900 /* max. capacity selectable */ |
96 | #define BATTERY_CAPACITY_INC 10 /* capacity increment */ | 87 | #define BATTERY_CAPACITY_INC 10 /* capacity increment */ |
@@ -100,6 +91,17 @@ | |||
100 | /* Hardware controlled charging */ | 91 | /* Hardware controlled charging */ |
101 | #define CONFIG_CHARGING CHARGING_SIMPLE | 92 | #define CONFIG_CHARGING CHARGING_SIMPLE |
102 | 93 | ||
94 | /* define this if the unit can be powered or charged via USB */ | ||
95 | #define HAVE_USB_POWER | ||
96 | |||
97 | #ifndef SIMULATOR | ||
98 | |||
99 | /* Define this if you have a PortalPlayer PP5020 */ | ||
100 | #define CONFIG_CPU PP5020 | ||
101 | |||
102 | /* Define this if you want to use the PP5020 i2c interface */ | ||
103 | #define CONFIG_I2C I2C_PP5020 | ||
104 | |||
103 | /* define this if the hardware can be powered off while charging */ | 105 | /* define this if the hardware can be powered off while charging */ |
104 | #define HAVE_POWEROFF_WHILE_CHARGING | 106 | #define HAVE_POWEROFF_WHILE_CHARGING |
105 | 107 | ||
@@ -132,9 +134,6 @@ | |||
132 | /* USB On-the-go */ | 134 | /* USB On-the-go */ |
133 | #define CONFIG_USBOTG USBOTG_ARC | 135 | #define CONFIG_USBOTG USBOTG_ARC |
134 | 136 | ||
135 | /* define this if the unit can be powered or charged via USB */ | ||
136 | #define HAVE_USB_POWER | ||
137 | |||
138 | /* Virtual LED (icon) */ | 137 | /* Virtual LED (icon) */ |
139 | #define CONFIG_LED LED_VIRTUAL | 138 | #define CONFIG_LED LED_VIRTUAL |
140 | 139 | ||
diff --git a/firmware/export/config-h120.h b/firmware/export/config-h120.h index 7e5a66a3dd..bf13f3e1d7 100644 --- a/firmware/export/config-h120.h +++ b/firmware/export/config-h120.h | |||
@@ -48,6 +48,9 @@ | |||
48 | /* Define this if you have an remote lcd */ | 48 | /* Define this if you have an remote lcd */ |
49 | #define HAVE_REMOTE_LCD | 49 | #define HAVE_REMOTE_LCD |
50 | 50 | ||
51 | /* Define if we have a hardware defect that causes ticking on the audio line */ | ||
52 | #define HAVE_REMOTE_LCD_TICKING | ||
53 | |||
51 | #define CONFIG_LCD LCD_S1D15E06 | 54 | #define CONFIG_LCD LCD_S1D15E06 |
52 | 55 | ||
53 | /* Define this for LCD backlight available */ | 56 | /* Define this for LCD backlight available */ |
@@ -88,7 +91,17 @@ | |||
88 | 91 | ||
89 | #define HAVE_AGC | 92 | #define HAVE_AGC |
90 | 93 | ||
94 | #define CONFIG_BATTERY BATT_LIPOL1300 | ||
91 | #define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */ | 95 | #define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */ |
96 | #define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */ | ||
97 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ | ||
98 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
99 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
100 | #define BATTERY_SCALE_FACTOR 16665 /* FIX: this value is picked at random */ | ||
101 | |||
102 | /* Hardware controlled charging */ | ||
103 | //#define CONFIG_CHARGING CHARGING_SIMPLE | ||
104 | #define CONFIG_CHARGING CHARGING_MONITOR /* FIXME: remove that once monitoring is fixed properly */ | ||
92 | 105 | ||
93 | #ifndef SIMULATOR | 106 | #ifndef SIMULATOR |
94 | 107 | ||
@@ -98,23 +111,9 @@ | |||
98 | /* Define this if you want to use coldfire's i2c interface */ | 111 | /* Define this if you want to use coldfire's i2c interface */ |
99 | #define CONFIG_I2C I2C_COLDFIRE | 112 | #define CONFIG_I2C I2C_COLDFIRE |
100 | 113 | ||
101 | #define CONFIG_BATTERY BATT_LIPOL1300 | ||
102 | #define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */ | ||
103 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ | ||
104 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
105 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
106 | #define BATTERY_SCALE_FACTOR 16665 /* FIX: this value is picked at random */ | ||
107 | |||
108 | /* Define this if you can run rockbox from flash memory */ | 114 | /* Define this if you can run rockbox from flash memory */ |
109 | #define HAVE_FLASHED_ROCKBOX | 115 | #define HAVE_FLASHED_ROCKBOX |
110 | 116 | ||
111 | /* Define if we have a hardware defect that causes ticking on the audio line */ | ||
112 | #define HAVE_REMOTE_LCD_TICKING | ||
113 | |||
114 | /* Hardware controlled charging */ | ||
115 | //#define CONFIG_CHARGING CHARGING_SIMPLE | ||
116 | #define CONFIG_CHARGING CHARGING_MONITOR /* FIXME: remove that once monitoring is fixed properly */ | ||
117 | |||
118 | /* define this if the hardware can be powered off while charging */ | 117 | /* define this if the hardware can be powered off while charging */ |
119 | #define HAVE_POWEROFF_WHILE_CHARGING | 118 | #define HAVE_POWEROFF_WHILE_CHARGING |
120 | 119 | ||
diff --git a/firmware/export/config-h300.h b/firmware/export/config-h300.h index 43239e4419..91c175fc7d 100644 --- a/firmware/export/config-h300.h +++ b/firmware/export/config-h300.h | |||
@@ -50,8 +50,12 @@ | |||
50 | /* Define this if you have an remote lcd */ | 50 | /* Define this if you have an remote lcd */ |
51 | #define HAVE_REMOTE_LCD | 51 | #define HAVE_REMOTE_LCD |
52 | 52 | ||
53 | /* Define if we have a hardware defect that causes ticking on the audio line */ | ||
54 | #define HAVE_REMOTE_LCD_TICKING | ||
55 | |||
53 | /* Define this for LCD backlight available */ | 56 | /* Define this for LCD backlight available */ |
54 | #define HAVE_BACKLIGHT | 57 | #define HAVE_BACKLIGHT |
58 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
55 | 59 | ||
56 | /* Define this if you have a software controlled poweroff */ | 60 | /* Define this if you have a software controlled poweroff */ |
57 | #define HAVE_SW_POWEROFF | 61 | #define HAVE_SW_POWEROFF |
@@ -84,7 +88,20 @@ | |||
84 | 88 | ||
85 | #define HAVE_AGC | 89 | #define HAVE_AGC |
86 | 90 | ||
91 | /* Type of mobile power */ | ||
92 | #define CONFIG_BATTERY BATT_LIPOL1300 | ||
87 | #define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */ | 93 | #define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */ |
94 | #define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */ | ||
95 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ | ||
96 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
97 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
98 | #define BATTERY_SCALE_FACTOR 23437 /* FIX: this value is picked at random */ | ||
99 | |||
100 | /* Hardware controlled charging with monitoring */ | ||
101 | #define CONFIG_CHARGING CHARGING_MONITOR | ||
102 | |||
103 | /* define this if the unit can be powered or charged via USB */ | ||
104 | #define HAVE_USB_POWER | ||
88 | 105 | ||
89 | #ifndef SIMULATOR | 106 | #ifndef SIMULATOR |
90 | 107 | ||
@@ -97,20 +114,6 @@ | |||
97 | /* Define this if you want to use coldfire's i2c interface */ | 114 | /* Define this if you want to use coldfire's i2c interface */ |
98 | #define CONFIG_I2C I2C_COLDFIRE | 115 | #define CONFIG_I2C I2C_COLDFIRE |
99 | 116 | ||
100 | /* Type of mobile power */ | ||
101 | #define CONFIG_BATTERY BATT_LIPOL1300 | ||
102 | #define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */ | ||
103 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ | ||
104 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
105 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
106 | #define BATTERY_SCALE_FACTOR 23437 /* FIX: this value is picked at random */ | ||
107 | |||
108 | /* Define if we have a hardware defect that causes ticking on the audio line */ | ||
109 | #define HAVE_REMOTE_LCD_TICKING | ||
110 | |||
111 | /* Hardware controlled charging with monitoring */ | ||
112 | #define CONFIG_CHARGING CHARGING_MONITOR | ||
113 | |||
114 | /* The size of the flash ROM */ | 117 | /* The size of the flash ROM */ |
115 | #define FLASH_SIZE 0x400000 | 118 | #define FLASH_SIZE 0x400000 |
116 | 119 | ||
@@ -145,11 +148,6 @@ | |||
145 | #define FLASH_ENTRYPOINT 0x00001000 | 148 | #define FLASH_ENTRYPOINT 0x00001000 |
146 | #define FLASH_MAGIC 0xfbfbfbf1 | 149 | #define FLASH_MAGIC 0xfbfbfbf1 |
147 | 150 | ||
148 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
149 | |||
150 | /* define this if the unit can be powered or charged via USB */ | ||
151 | #define HAVE_USB_POWER | ||
152 | |||
153 | /* Define this if there is an EEPROM chip */ | 151 | /* Define this if there is an EEPROM chip */ |
154 | #define HAVE_EEPROM | 152 | #define HAVE_EEPROM |
155 | 153 | ||
diff --git a/firmware/export/config-iaudiom5.h b/firmware/export/config-iaudiom5.h index d4e09dd0ad..4ab8e2c0dc 100644 --- a/firmware/export/config-iaudiom5.h +++ b/firmware/export/config-iaudiom5.h | |||
@@ -79,13 +79,24 @@ | |||
79 | /* The number of bytes reserved for loadable plugins */ | 79 | /* The number of bytes reserved for loadable plugins */ |
80 | #define PLUGIN_BUFFER_SIZE 0x80000 | 80 | #define PLUGIN_BUFFER_SIZE 0x80000 |
81 | 81 | ||
82 | #define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */ | ||
83 | |||
84 | #define HAVE_TLV320 | 82 | #define HAVE_TLV320 |
85 | 83 | ||
86 | /* TLV320 has no tone controls, so we use the software ones */ | 84 | /* TLV320 has no tone controls, so we use the software ones */ |
87 | #define HAVE_SW_TONE_CONTROLS | 85 | #define HAVE_SW_TONE_CONTROLS |
88 | 86 | ||
87 | /* Type of mobile power */ | ||
88 | #define X5_BATT_CONFIG 2 | ||
89 | #define CONFIG_BATTERY BATT_IAUDIO_X5M5 | ||
90 | #define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */ | ||
91 | #define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */ | ||
92 | #define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */ | ||
93 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
94 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
95 | #define BATTERY_SCALE_FACTOR 5859 /* (420703125 + 35900) / 71800 */ | ||
96 | |||
97 | /* Hardware controlled charging? FIXME */ | ||
98 | #define CONFIG_CHARGING CHARGING_SIMPLE | ||
99 | |||
89 | #ifndef SIMULATOR | 100 | #ifndef SIMULATOR |
90 | 101 | ||
91 | /* Define this if your LCD can set contrast */ | 102 | /* Define this if your LCD can set contrast */ |
@@ -97,9 +108,6 @@ | |||
97 | /* Define this if you want to use coldfire's i2c interface */ | 108 | /* Define this if you want to use coldfire's i2c interface */ |
98 | #define CONFIG_I2C I2C_COLDFIRE | 109 | #define CONFIG_I2C I2C_COLDFIRE |
99 | 110 | ||
100 | /* Hardware controlled charging? FIXME */ | ||
101 | #define CONFIG_CHARGING CHARGING_SIMPLE | ||
102 | |||
103 | /* define this if the hardware can be powered off while charging */ | 111 | /* define this if the hardware can be powered off while charging */ |
104 | #define HAVE_POWEROFF_WHILE_CHARGING | 112 | #define HAVE_POWEROFF_WHILE_CHARGING |
105 | 113 | ||
@@ -109,15 +117,6 @@ | |||
109 | /* Define this to the CPU frequency */ | 117 | /* Define this to the CPU frequency */ |
110 | #define CPU_FREQ 11289600 | 118 | #define CPU_FREQ 11289600 |
111 | 119 | ||
112 | /* Type of mobile power */ | ||
113 | #define X5_BATT_CONFIG 2 | ||
114 | #define CONFIG_BATTERY BATT_IAUDIO_X5M5 | ||
115 | #define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */ | ||
116 | #define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */ | ||
117 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
118 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
119 | #define BATTERY_SCALE_FACTOR 5859 /* (420703125 + 35900) / 71800 */ | ||
120 | |||
121 | /* Define this if you have ATA power-off control */ | 120 | /* Define this if you have ATA power-off control */ |
122 | #define HAVE_ATA_POWER_OFF | 121 | #define HAVE_ATA_POWER_OFF |
123 | 122 | ||
diff --git a/firmware/export/config-iaudiox5.h b/firmware/export/config-iaudiox5.h index fbcb69aa61..c02b2a78f4 100644 --- a/firmware/export/config-iaudiox5.h +++ b/firmware/export/config-iaudiox5.h | |||
@@ -53,6 +53,13 @@ | |||
53 | 53 | ||
54 | #define LCD_REMOTE_PIXELFORMAT VERTICAL_INTERLEAVED | 54 | #define LCD_REMOTE_PIXELFORMAT VERTICAL_INTERLEAVED |
55 | 55 | ||
56 | /* Define this if your LCD can be enabled/disabled */ | ||
57 | #define HAVE_LCD_ENABLE | ||
58 | |||
59 | /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE | ||
60 | should be defined as well. */ | ||
61 | #define HAVE_LCD_SLEEP | ||
62 | |||
56 | #define CONFIG_KEYPAD IAUDIO_X5M5_PAD | 63 | #define CONFIG_KEYPAD IAUDIO_X5M5_PAD |
57 | 64 | ||
58 | #define AB_REPEAT_ENABLE 1 | 65 | #define AB_REPEAT_ENABLE 1 |
@@ -86,35 +93,35 @@ | |||
86 | #define CONFIG_TUNER TEA5767 | 93 | #define CONFIG_TUNER TEA5767 |
87 | #define CONFIG_TUNER_XTAL 32768 | 94 | #define CONFIG_TUNER_XTAL 32768 |
88 | 95 | ||
89 | |||
90 | #define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */ | ||
91 | |||
92 | #define HAVE_TLV320 | 96 | #define HAVE_TLV320 |
93 | 97 | ||
94 | /* TLV320 has no tone controls, so we use the software ones */ | 98 | /* TLV320 has no tone controls, so we use the software ones */ |
95 | #define HAVE_SW_TONE_CONTROLS | 99 | #define HAVE_SW_TONE_CONTROLS |
96 | 100 | ||
101 | /* Type of mobile power */ | ||
102 | #define X5_BATT_CONFIG 2 | ||
103 | #define CONFIG_BATTERY BATT_IAUDIO_X5M5 | ||
104 | #define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */ | ||
105 | #define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */ | ||
106 | #define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */ | ||
107 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
108 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
109 | #define BATTERY_SCALE_FACTOR 5859 /* (420703125 + 35900) / 71800 */ | ||
110 | |||
111 | /* Hardware controlled charging? FIXME */ | ||
112 | #define CONFIG_CHARGING CHARGING_SIMPLE | ||
113 | |||
97 | #ifndef SIMULATOR | 114 | #ifndef SIMULATOR |
98 | 115 | ||
99 | /* Define this if your LCD can set contrast */ | 116 | /* Define this if your LCD can set contrast */ |
100 | #define HAVE_LCD_CONTRAST | 117 | #define HAVE_LCD_CONTRAST |
101 | 118 | ||
102 | /* Define this if your LCD can be enabled/disabled */ | ||
103 | #define HAVE_LCD_ENABLE | ||
104 | |||
105 | /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE | ||
106 | should be defined as well. */ | ||
107 | #define HAVE_LCD_SLEEP | ||
108 | |||
109 | /* Define this if you have a Motorola SCF5250 */ | 119 | /* Define this if you have a Motorola SCF5250 */ |
110 | #define CONFIG_CPU MCF5250 | 120 | #define CONFIG_CPU MCF5250 |
111 | 121 | ||
112 | /* Define this if you want to use coldfire's i2c interface */ | 122 | /* Define this if you want to use coldfire's i2c interface */ |
113 | #define CONFIG_I2C I2C_COLDFIRE | 123 | #define CONFIG_I2C I2C_COLDFIRE |
114 | 124 | ||
115 | /* Hardware controlled charging? FIXME */ | ||
116 | #define CONFIG_CHARGING CHARGING_SIMPLE | ||
117 | |||
118 | /* define this if the hardware can be powered off while charging */ | 125 | /* define this if the hardware can be powered off while charging */ |
119 | #define HAVE_POWEROFF_WHILE_CHARGING | 126 | #define HAVE_POWEROFF_WHILE_CHARGING |
120 | 127 | ||
@@ -124,15 +131,6 @@ | |||
124 | /* Define this to the CPU frequency */ | 131 | /* Define this to the CPU frequency */ |
125 | #define CPU_FREQ 11289600 | 132 | #define CPU_FREQ 11289600 |
126 | 133 | ||
127 | /* Type of mobile power */ | ||
128 | #define X5_BATT_CONFIG 2 | ||
129 | #define CONFIG_BATTERY BATT_IAUDIO_X5M5 | ||
130 | #define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */ | ||
131 | #define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */ | ||
132 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
133 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
134 | #define BATTERY_SCALE_FACTOR 5859 /* (420703125 + 35900) / 71800 */ | ||
135 | |||
136 | /* Define this if you have ATA power-off control */ | 134 | /* Define this if you have ATA power-off control */ |
137 | #define HAVE_ATA_POWER_OFF | 135 | #define HAVE_ATA_POWER_OFF |
138 | 136 | ||
diff --git a/firmware/export/config-ifp7xx.h b/firmware/export/config-ifp7xx.h index 64e8b13304..65915df30e 100644 --- a/firmware/export/config-ifp7xx.h +++ b/firmware/export/config-ifp7xx.h | |||
@@ -50,8 +50,6 @@ | |||
50 | 50 | ||
51 | #define HAVE_FLASH_DISK | 51 | #define HAVE_FLASH_DISK |
52 | 52 | ||
53 | #define BATTERY_CAPACITY_DEFAULT 1000 /* default battery capacity */ | ||
54 | |||
55 | /* Virtual LED (icon) */ | 53 | /* Virtual LED (icon) */ |
56 | #define CONFIG_LED LED_VIRTUAL | 54 | #define CONFIG_LED LED_VIRTUAL |
57 | 55 | ||
@@ -62,22 +60,23 @@ | |||
62 | /* define this if you have a flash memory storage */ | 60 | /* define this if you have a flash memory storage */ |
63 | #define HAVE_FLASH_STORAGE | 61 | #define HAVE_FLASH_STORAGE |
64 | 62 | ||
65 | #ifndef SIMULATOR | ||
66 | |||
67 | /* Define this if you have a Philips PNX0101 */ | ||
68 | #define CONFIG_CPU PNX0101 | ||
69 | |||
70 | /* Define this if you want to use the PNX0101 i2c interface */ | ||
71 | #define CONFIG_I2C I2C_PNX0101 | ||
72 | |||
73 | /* Type of mobile power */ | 63 | /* Type of mobile power */ |
74 | #define CONFIG_BATTERY BATT_1AA | 64 | #define CONFIG_BATTERY BATT_1AA |
65 | #define BATTERY_CAPACITY_DEFAULT 1000 /* default battery capacity */ | ||
75 | #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */ | 66 | #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */ |
76 | #define BATTERY_CAPACITY_MAX 2800 /* max. capacity selectable */ | 67 | #define BATTERY_CAPACITY_MAX 2800 /* max. capacity selectable */ |
77 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | 68 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ |
78 | #define BATTERY_TYPES_COUNT 2 /* Alkalines or NiMH */ | 69 | #define BATTERY_TYPES_COUNT 2 /* Alkalines or NiMH */ |
79 | #define BATTERY_SCALE_FACTOR 3000 /* TODO: only roughly correct */ | 70 | #define BATTERY_SCALE_FACTOR 3000 /* TODO: only roughly correct */ |
80 | 71 | ||
72 | #ifndef SIMULATOR | ||
73 | |||
74 | /* Define this if you have a Philips PNX0101 */ | ||
75 | #define CONFIG_CPU PNX0101 | ||
76 | |||
77 | /* Define this if you want to use the PNX0101 i2c interface */ | ||
78 | #define CONFIG_I2C I2C_PNX0101 | ||
79 | |||
81 | /* The start address index for ROM builds */ | 80 | /* The start address index for ROM builds */ |
82 | #define ROM_START 0x00000000 | 81 | #define ROM_START 0x00000000 |
83 | 82 | ||
diff --git a/firmware/export/config-ipod1g2g.h b/firmware/export/config-ipod1g2g.h index 4ee434f732..ff3e7b5636 100644 --- a/firmware/export/config-ipod1g2g.h +++ b/firmware/export/config-ipod1g2g.h | |||
@@ -66,7 +66,20 @@ | |||
66 | /* Define this if the backlight unverts LCD appearance */ | 66 | /* Define this if the backlight unverts LCD appearance */ |
67 | #define HAVE_BACKLIGHT_INVERSION | 67 | #define HAVE_BACKLIGHT_INVERSION |
68 | 68 | ||
69 | /* Define this if you can detect headphones */ | ||
70 | #define HAVE_HEADPHONE_DETECTION | ||
71 | |||
72 | /* Type of mobile power */ | ||
73 | #define CONFIG_BATTERY BATT_LIPOL1300 | ||
69 | #define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */ | 74 | #define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */ |
75 | #define BATTERY_CAPACITY_MIN 1200 /* min. capacity selectable */ | ||
76 | #define BATTERY_CAPACITY_MAX 1900 /* max. capacity selectable */ | ||
77 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
78 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
79 | #define BATTERY_SCALE_FACTOR 25882 | ||
80 | |||
81 | /* Hardware controlled charging? FIXME */ | ||
82 | //#define CONFIG_CHARGING CHARGING_SIMPLE | ||
70 | 83 | ||
71 | #ifndef SIMULATOR | 84 | #ifndef SIMULATOR |
72 | 85 | ||
@@ -79,17 +92,6 @@ | |||
79 | /* Define this if you want to use the PP5002 i2c interface */ | 92 | /* Define this if you want to use the PP5002 i2c interface */ |
80 | #define CONFIG_I2C I2C_PP5002 | 93 | #define CONFIG_I2C I2C_PP5002 |
81 | 94 | ||
82 | /* Type of mobile power */ | ||
83 | #define CONFIG_BATTERY BATT_LIPOL1300 | ||
84 | #define BATTERY_CAPACITY_MIN 1200 /* min. capacity selectable */ | ||
85 | #define BATTERY_CAPACITY_MAX 1900 /* max. capacity selectable */ | ||
86 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
87 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
88 | #define BATTERY_SCALE_FACTOR 25882 | ||
89 | |||
90 | /* Hardware controlled charging? FIXME */ | ||
91 | //#define CONFIG_CHARGING CHARGING_SIMPLE | ||
92 | |||
93 | /* define this if the hardware can be powered off while charging */ | 95 | /* define this if the hardware can be powered off while charging */ |
94 | //#define HAVE_POWEROFF_WHILE_CHARGING | 96 | //#define HAVE_POWEROFF_WHILE_CHARGING |
95 | 97 | ||
@@ -122,9 +124,6 @@ | |||
122 | /* Define this if you have adjustable CPU frequency */ | 124 | /* Define this if you have adjustable CPU frequency */ |
123 | #define HAVE_ADJUSTABLE_CPU_FREQ | 125 | #define HAVE_ADJUSTABLE_CPU_FREQ |
124 | 126 | ||
125 | /* Define this if you can detect headphones */ | ||
126 | #define HAVE_HEADPHONE_DETECTION | ||
127 | |||
128 | #define BOOTFILE_EXT "ipod" | 127 | #define BOOTFILE_EXT "ipod" |
129 | #define BOOTFILE "rockbox." BOOTFILE_EXT | 128 | #define BOOTFILE "rockbox." BOOTFILE_EXT |
130 | #define BOOTDIR "/.rockbox" | 129 | #define BOOTDIR "/.rockbox" |
diff --git a/firmware/export/config-ipod3g.h b/firmware/export/config-ipod3g.h index b356fc5ac0..64aa14941b 100644 --- a/firmware/export/config-ipod3g.h +++ b/firmware/export/config-ipod3g.h | |||
@@ -48,6 +48,9 @@ | |||
48 | /* define this if you have a real-time clock */ | 48 | /* define this if you have a real-time clock */ |
49 | #define CONFIG_RTC RTC_PCF50605 | 49 | #define CONFIG_RTC RTC_PCF50605 |
50 | 50 | ||
51 | /* Define if the device can wake from an RTC alarm */ | ||
52 | #define HAVE_RTC_ALARM | ||
53 | |||
51 | /* Define this if you have a software controlled poweroff */ | 54 | /* Define this if you have a software controlled poweroff */ |
52 | #define HAVE_SW_POWEROFF | 55 | #define HAVE_SW_POWEROFF |
53 | 56 | ||
@@ -66,7 +69,20 @@ | |||
66 | /* Define this for LCD backlight available */ | 69 | /* Define this for LCD backlight available */ |
67 | #define HAVE_BACKLIGHT | 70 | #define HAVE_BACKLIGHT |
68 | 71 | ||
72 | /* Define this if you can detect headphones */ | ||
73 | #define HAVE_HEADPHONE_DETECTION | ||
74 | |||
75 | /* Type of mobile power */ | ||
76 | #define CONFIG_BATTERY BATT_LIPOL1300 | ||
69 | #define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */ | 77 | #define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */ |
78 | #define BATTERY_CAPACITY_MIN 630 /* min. capacity selectable */ | ||
79 | #define BATTERY_CAPACITY_MAX 1000 /* max. capacity selectable */ | ||
80 | #define BATTERY_CAPACITY_INC 10 /* capacity increment */ | ||
81 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
82 | #define BATTERY_SCALE_FACTOR 5865 | ||
83 | |||
84 | /* Hardware controlled charging? FIXME */ | ||
85 | //#define CONFIG_CHARGING CHARGING_SIMPLE | ||
70 | 86 | ||
71 | #ifndef SIMULATOR | 87 | #ifndef SIMULATOR |
72 | 88 | ||
@@ -79,17 +95,6 @@ | |||
79 | /* Define this if you want to use the PP5002 i2c interface */ | 95 | /* Define this if you want to use the PP5002 i2c interface */ |
80 | #define CONFIG_I2C I2C_PP5002 | 96 | #define CONFIG_I2C I2C_PP5002 |
81 | 97 | ||
82 | /* Type of mobile power */ | ||
83 | #define CONFIG_BATTERY BATT_LIPOL1300 | ||
84 | #define BATTERY_CAPACITY_MIN 630 /* min. capacity selectable */ | ||
85 | #define BATTERY_CAPACITY_MAX 1000 /* max. capacity selectable */ | ||
86 | #define BATTERY_CAPACITY_INC 10 /* capacity increment */ | ||
87 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
88 | #define BATTERY_SCALE_FACTOR 5865 | ||
89 | |||
90 | /* Hardware controlled charging? FIXME */ | ||
91 | //#define CONFIG_CHARGING CHARGING_SIMPLE | ||
92 | |||
93 | /* define this if the hardware can be powered off while charging */ | 98 | /* define this if the hardware can be powered off while charging */ |
94 | //#define HAVE_POWEROFF_WHILE_CHARGING | 99 | //#define HAVE_POWEROFF_WHILE_CHARGING |
95 | 100 | ||
@@ -119,15 +124,9 @@ | |||
119 | /* Virtual LED (icon) */ | 124 | /* Virtual LED (icon) */ |
120 | #define CONFIG_LED LED_VIRTUAL | 125 | #define CONFIG_LED LED_VIRTUAL |
121 | 126 | ||
122 | /* Define if the device can wake from an RTC alarm */ | ||
123 | #define HAVE_RTC_ALARM | ||
124 | |||
125 | /* Define this if you have adjustable CPU frequency */ | 127 | /* Define this if you have adjustable CPU frequency */ |
126 | #define HAVE_ADJUSTABLE_CPU_FREQ | 128 | #define HAVE_ADJUSTABLE_CPU_FREQ |
127 | 129 | ||
128 | /* Define this if you can detect headphones */ | ||
129 | #define HAVE_HEADPHONE_DETECTION | ||
130 | |||
131 | #define BOOTFILE_EXT "ipod" | 130 | #define BOOTFILE_EXT "ipod" |
132 | #define BOOTFILE "rockbox." BOOTFILE_EXT | 131 | #define BOOTFILE "rockbox." BOOTFILE_EXT |
133 | #define BOOTDIR "/.rockbox" | 132 | #define BOOTDIR "/.rockbox" |
diff --git a/firmware/export/config-ipod4g.h b/firmware/export/config-ipod4g.h index 14a4e8266d..46c1e53235 100644 --- a/firmware/export/config-ipod4g.h +++ b/firmware/export/config-ipod4g.h | |||
@@ -58,6 +58,9 @@ | |||
58 | /* define this if you have a real-time clock */ | 58 | /* define this if you have a real-time clock */ |
59 | #define CONFIG_RTC RTC_PCF50605 | 59 | #define CONFIG_RTC RTC_PCF50605 |
60 | 60 | ||
61 | /* Define if the device can wake from an RTC alarm */ | ||
62 | #define HAVE_RTC_ALARM | ||
63 | |||
61 | /* Define this if you have a software controlled poweroff */ | 64 | /* Define this if you have a software controlled poweroff */ |
62 | #define HAVE_SW_POWEROFF | 65 | #define HAVE_SW_POWEROFF |
63 | 66 | ||
@@ -76,18 +79,12 @@ | |||
76 | /* Define this for LCD backlight available */ | 79 | /* Define this for LCD backlight available */ |
77 | #define HAVE_BACKLIGHT | 80 | #define HAVE_BACKLIGHT |
78 | 81 | ||
79 | #define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */ | 82 | /* Define this if you can detect headphones */ |
80 | 83 | #define HAVE_HEADPHONE_DETECTION | |
81 | #ifndef SIMULATOR | ||
82 | |||
83 | /* Define this if you have a PortalPlayer PP5020 */ | ||
84 | #define CONFIG_CPU PP5020 | ||
85 | |||
86 | /* Define this if you want to use the PP5020 i2c interface */ | ||
87 | #define CONFIG_I2C I2C_PP5020 | ||
88 | 84 | ||
89 | /* Type of mobile power */ | 85 | /* Type of mobile power */ |
90 | #define CONFIG_BATTERY BATT_LIPOL1300 | 86 | #define CONFIG_BATTERY BATT_LIPOL1300 |
87 | #define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */ | ||
91 | #define BATTERY_CAPACITY_MIN 630 /* min. capacity selectable */ | 88 | #define BATTERY_CAPACITY_MIN 630 /* min. capacity selectable */ |
92 | #define BATTERY_CAPACITY_MAX 1000 /* max. capacity selectable */ | 89 | #define BATTERY_CAPACITY_MAX 1000 /* max. capacity selectable */ |
93 | #define BATTERY_CAPACITY_INC 10 /* capacity increment */ | 90 | #define BATTERY_CAPACITY_INC 10 /* capacity increment */ |
@@ -97,6 +94,17 @@ | |||
97 | /* Hardware controlled charging? FIXME */ | 94 | /* Hardware controlled charging? FIXME */ |
98 | //#define CONFIG_CHARGING CHARGING_SIMPLE | 95 | //#define CONFIG_CHARGING CHARGING_SIMPLE |
99 | 96 | ||
97 | /* define this if the unit can be powered or charged via USB */ | ||
98 | #define HAVE_USB_POWER | ||
99 | |||
100 | #ifndef SIMULATOR | ||
101 | |||
102 | /* Define this if you have a PortalPlayer PP5020 */ | ||
103 | #define CONFIG_CPU PP5020 | ||
104 | |||
105 | /* Define this if you want to use the PP5020 i2c interface */ | ||
106 | #define CONFIG_I2C I2C_PP5020 | ||
107 | |||
100 | /* define this if the hardware can be powered off while charging */ | 108 | /* define this if the hardware can be powered off while charging */ |
101 | //#define HAVE_POWEROFF_WHILE_CHARGING | 109 | //#define HAVE_POWEROFF_WHILE_CHARGING |
102 | 110 | ||
@@ -125,21 +133,12 @@ | |||
125 | /* USB On-the-go */ | 133 | /* USB On-the-go */ |
126 | #define CONFIG_USBOTG USBOTG_ARC | 134 | #define CONFIG_USBOTG USBOTG_ARC |
127 | 135 | ||
128 | /* define this if the unit can be powered or charged via USB */ | ||
129 | #define HAVE_USB_POWER | ||
130 | |||
131 | /* Virtual LED (icon) */ | 136 | /* Virtual LED (icon) */ |
132 | #define CONFIG_LED LED_VIRTUAL | 137 | #define CONFIG_LED LED_VIRTUAL |
133 | 138 | ||
134 | /* Define if the device can wake from an RTC alarm */ | ||
135 | #define HAVE_RTC_ALARM | ||
136 | |||
137 | /* Define this if you have adjustable CPU frequency */ | 139 | /* Define this if you have adjustable CPU frequency */ |
138 | #define HAVE_ADJUSTABLE_CPU_FREQ | 140 | #define HAVE_ADJUSTABLE_CPU_FREQ |
139 | 141 | ||
140 | /* Define this if you can detect headphones */ | ||
141 | #define HAVE_HEADPHONE_DETECTION | ||
142 | |||
143 | /* Define this if you can read an absolute wheel position */ | 142 | /* Define this if you can read an absolute wheel position */ |
144 | #define HAVE_WHEEL_POSITION | 143 | #define HAVE_WHEEL_POSITION |
145 | 144 | ||
diff --git a/firmware/export/config-ipodcolor.h b/firmware/export/config-ipodcolor.h index 5e4e3b33ab..586d6727bc 100644 --- a/firmware/export/config-ipodcolor.h +++ b/firmware/export/config-ipodcolor.h | |||
@@ -49,6 +49,9 @@ | |||
49 | /* define this if you have a real-time clock */ | 49 | /* define this if you have a real-time clock */ |
50 | #define CONFIG_RTC RTC_PCF50605 | 50 | #define CONFIG_RTC RTC_PCF50605 |
51 | 51 | ||
52 | /* Define if the device can wake from an RTC alarm */ | ||
53 | #define HAVE_RTC_ALARM | ||
54 | |||
52 | /* Define this if you have a software controlled poweroff */ | 55 | /* Define this if you have a software controlled poweroff */ |
53 | #define HAVE_SW_POWEROFF | 56 | #define HAVE_SW_POWEROFF |
54 | 57 | ||
@@ -67,18 +70,12 @@ | |||
67 | /* Define this for LCD backlight available */ | 70 | /* Define this for LCD backlight available */ |
68 | #define HAVE_BACKLIGHT | 71 | #define HAVE_BACKLIGHT |
69 | 72 | ||
70 | #define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */ | 73 | /* Define this if you can detect headphones */ |
71 | 74 | #define HAVE_HEADPHONE_DETECTION | |
72 | #ifndef SIMULATOR | ||
73 | |||
74 | /* Define this if you have a PortalPlayer PP5020 */ | ||
75 | #define CONFIG_CPU PP5020 | ||
76 | |||
77 | /* Define this if you want to use the PP5020 i2c interface */ | ||
78 | #define CONFIG_I2C I2C_PP5020 | ||
79 | 75 | ||
80 | /* Type of mobile power */ | 76 | /* Type of mobile power */ |
81 | #define CONFIG_BATTERY BATT_LIPOL1300 | 77 | #define CONFIG_BATTERY BATT_LIPOL1300 |
78 | #define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */ | ||
82 | #define BATTERY_CAPACITY_MIN 700 /* min. capacity selectable */ | 79 | #define BATTERY_CAPACITY_MIN 700 /* min. capacity selectable */ |
83 | #define BATTERY_CAPACITY_MAX 1000 /* max. capacity selectable */ | 80 | #define BATTERY_CAPACITY_MAX 1000 /* max. capacity selectable */ |
84 | #define BATTERY_CAPACITY_INC 10 /* capacity increment */ | 81 | #define BATTERY_CAPACITY_INC 10 /* capacity increment */ |
@@ -88,6 +85,17 @@ | |||
88 | /* Hardware controlled charging? FIXME */ | 85 | /* Hardware controlled charging? FIXME */ |
89 | //#define CONFIG_CHARGING CHARGING_SIMPLE | 86 | //#define CONFIG_CHARGING CHARGING_SIMPLE |
90 | 87 | ||
88 | /* define this if the unit can be powered or charged via USB */ | ||
89 | #define HAVE_USB_POWER | ||
90 | |||
91 | #ifndef SIMULATOR | ||
92 | |||
93 | /* Define this if you have a PortalPlayer PP5020 */ | ||
94 | #define CONFIG_CPU PP5020 | ||
95 | |||
96 | /* Define this if you want to use the PP5020 i2c interface */ | ||
97 | #define CONFIG_I2C I2C_PP5020 | ||
98 | |||
91 | /* define this if the hardware can be powered off while charging */ | 99 | /* define this if the hardware can be powered off while charging */ |
92 | //#define HAVE_POWEROFF_WHILE_CHARGING | 100 | //#define HAVE_POWEROFF_WHILE_CHARGING |
93 | 101 | ||
@@ -116,21 +124,12 @@ | |||
116 | /* USB On-the-go */ | 124 | /* USB On-the-go */ |
117 | #define CONFIG_USBOTG USBOTG_ARC | 125 | #define CONFIG_USBOTG USBOTG_ARC |
118 | 126 | ||
119 | /* define this if the unit can be powered or charged via USB */ | ||
120 | #define HAVE_USB_POWER | ||
121 | |||
122 | /* Virtual LED (icon) */ | 127 | /* Virtual LED (icon) */ |
123 | #define CONFIG_LED LED_VIRTUAL | 128 | #define CONFIG_LED LED_VIRTUAL |
124 | 129 | ||
125 | /* Define if the device can wake from an RTC alarm */ | ||
126 | #define HAVE_RTC_ALARM | ||
127 | |||
128 | /* Define this if you have adjustable CPU frequency */ | 130 | /* Define this if you have adjustable CPU frequency */ |
129 | #define HAVE_ADJUSTABLE_CPU_FREQ | 131 | #define HAVE_ADJUSTABLE_CPU_FREQ |
130 | 132 | ||
131 | /* Define this if you can detect headphones */ | ||
132 | #define HAVE_HEADPHONE_DETECTION | ||
133 | |||
134 | /* Define this if you can read an absolute wheel position */ | 133 | /* Define this if you can read an absolute wheel position */ |
135 | #define HAVE_WHEEL_POSITION | 134 | #define HAVE_WHEEL_POSITION |
136 | 135 | ||
diff --git a/firmware/export/config-ipodmini.h b/firmware/export/config-ipodmini.h index 7fba883c9c..7f77681d1d 100644 --- a/firmware/export/config-ipodmini.h +++ b/firmware/export/config-ipodmini.h | |||
@@ -48,6 +48,9 @@ | |||
48 | /* define this if you have a real-time clock */ | 48 | /* define this if you have a real-time clock */ |
49 | #define CONFIG_RTC RTC_PCF50605 | 49 | #define CONFIG_RTC RTC_PCF50605 |
50 | 50 | ||
51 | /* Define if the device can wake from an RTC alarm */ | ||
52 | #define HAVE_RTC_ALARM | ||
53 | |||
51 | /* Define this if you have a software controlled poweroff */ | 54 | /* Define this if you have a software controlled poweroff */ |
52 | #define HAVE_SW_POWEROFF | 55 | #define HAVE_SW_POWEROFF |
53 | 56 | ||
@@ -69,18 +72,12 @@ | |||
69 | /* Define this for LCD backlight available */ | 72 | /* Define this for LCD backlight available */ |
70 | #define HAVE_BACKLIGHT | 73 | #define HAVE_BACKLIGHT |
71 | 74 | ||
72 | #define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */ | 75 | /* Define this if you can detect headphones */ |
73 | 76 | #define HAVE_HEADPHONE_DETECTION | |
74 | #ifndef SIMULATOR | ||
75 | |||
76 | /* Define this if you have a PortalPlayer PP5020 */ | ||
77 | #define CONFIG_CPU PP5020 | ||
78 | |||
79 | /* Define this if you want to use the PP5020 i2c interface */ | ||
80 | #define CONFIG_I2C I2C_PP5020 | ||
81 | 77 | ||
82 | /* Type of mobile power */ | 78 | /* Type of mobile power */ |
83 | #define CONFIG_BATTERY BATT_LIPOL1300 | 79 | #define CONFIG_BATTERY BATT_LIPOL1300 |
80 | #define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */ | ||
84 | #define BATTERY_CAPACITY_MIN 400 /* min. capacity selectable */ | 81 | #define BATTERY_CAPACITY_MIN 400 /* min. capacity selectable */ |
85 | #define BATTERY_CAPACITY_MAX 800 /* max. capacity selectable */ | 82 | #define BATTERY_CAPACITY_MAX 800 /* max. capacity selectable */ |
86 | #define BATTERY_CAPACITY_INC 10 /* capacity increment */ | 83 | #define BATTERY_CAPACITY_INC 10 /* capacity increment */ |
@@ -90,6 +87,17 @@ | |||
90 | /* Hardware controlled charging? FIXME */ | 87 | /* Hardware controlled charging? FIXME */ |
91 | //#define CONFIG_CHARGING CHARGING_SIMPLE | 88 | //#define CONFIG_CHARGING CHARGING_SIMPLE |
92 | 89 | ||
90 | /* define this if the unit can be powered or charged via USB */ | ||
91 | #define HAVE_USB_POWER | ||
92 | |||
93 | #ifndef SIMULATOR | ||
94 | |||
95 | /* Define this if you have a PortalPlayer PP5020 */ | ||
96 | #define CONFIG_CPU PP5020 | ||
97 | |||
98 | /* Define this if you want to use the PP5020 i2c interface */ | ||
99 | #define CONFIG_I2C I2C_PP5020 | ||
100 | |||
93 | /* define this if the hardware can be powered off while charging */ | 101 | /* define this if the hardware can be powered off while charging */ |
94 | //#define HAVE_POWEROFF_WHILE_CHARGING | 102 | //#define HAVE_POWEROFF_WHILE_CHARGING |
95 | 103 | ||
@@ -118,21 +126,12 @@ | |||
118 | /* USB On-the-go */ | 126 | /* USB On-the-go */ |
119 | #define CONFIG_USBOTG USBOTG_ARC | 127 | #define CONFIG_USBOTG USBOTG_ARC |
120 | 128 | ||
121 | /* define this if the unit can be powered or charged via USB */ | ||
122 | #define HAVE_USB_POWER | ||
123 | |||
124 | /* Virtual LED (icon) */ | 129 | /* Virtual LED (icon) */ |
125 | #define CONFIG_LED LED_VIRTUAL | 130 | #define CONFIG_LED LED_VIRTUAL |
126 | 131 | ||
127 | /* Define if the device can wake from an RTC alarm */ | ||
128 | #define HAVE_RTC_ALARM | ||
129 | |||
130 | /* Define this if you have adjustable CPU frequency */ | 132 | /* Define this if you have adjustable CPU frequency */ |
131 | #define HAVE_ADJUSTABLE_CPU_FREQ | 133 | #define HAVE_ADJUSTABLE_CPU_FREQ |
132 | 134 | ||
133 | /* Define this if you can detect headphones */ | ||
134 | #define HAVE_HEADPHONE_DETECTION | ||
135 | |||
136 | #define BOOTFILE_EXT "ipod" | 135 | #define BOOTFILE_EXT "ipod" |
137 | #define BOOTFILE "rockbox." BOOTFILE_EXT | 136 | #define BOOTFILE "rockbox." BOOTFILE_EXT |
138 | #define BOOTDIR "/.rockbox" | 137 | #define BOOTDIR "/.rockbox" |
diff --git a/firmware/export/config-ipodmini2g.h b/firmware/export/config-ipodmini2g.h index 032d32ad4c..76c64f47d4 100644 --- a/firmware/export/config-ipodmini2g.h +++ b/firmware/export/config-ipodmini2g.h | |||
@@ -48,6 +48,9 @@ | |||
48 | /* define this if you have a real-time clock */ | 48 | /* define this if you have a real-time clock */ |
49 | #define CONFIG_RTC RTC_PCF50605 | 49 | #define CONFIG_RTC RTC_PCF50605 |
50 | 50 | ||
51 | /* Define if the device can wake from an RTC alarm */ | ||
52 | #define HAVE_RTC_ALARM | ||
53 | |||
51 | /* Define this if you have a software controlled poweroff */ | 54 | /* Define this if you have a software controlled poweroff */ |
52 | #define HAVE_SW_POWEROFF | 55 | #define HAVE_SW_POWEROFF |
53 | 56 | ||
@@ -72,18 +75,12 @@ | |||
72 | /* We can fade the backlight by using PWM */ | 75 | /* We can fade the backlight by using PWM */ |
73 | #define HAVE_BACKLIGHT_PWM_FADING | 76 | #define HAVE_BACKLIGHT_PWM_FADING |
74 | 77 | ||
75 | #define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */ | 78 | /* Define this if you can detect headphones */ |
76 | 79 | #define HAVE_HEADPHONE_DETECTION | |
77 | #ifndef SIMULATOR | ||
78 | |||
79 | /* Define this if you have a PortalPlayer PP5022 */ | ||
80 | #define CONFIG_CPU PP5022 | ||
81 | |||
82 | /* Define this if you want to use the PP5020 i2c interface */ | ||
83 | #define CONFIG_I2C I2C_PP5020 | ||
84 | 80 | ||
85 | /* Type of mobile power */ | 81 | /* Type of mobile power */ |
86 | #define CONFIG_BATTERY BATT_LIPOL1300 | 82 | #define CONFIG_BATTERY BATT_LIPOL1300 |
83 | #define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */ | ||
87 | #define BATTERY_CAPACITY_MIN 400 /* min. capacity selectable */ | 84 | #define BATTERY_CAPACITY_MIN 400 /* min. capacity selectable */ |
88 | #define BATTERY_CAPACITY_MAX 800 /* max. capacity selectable */ | 85 | #define BATTERY_CAPACITY_MAX 800 /* max. capacity selectable */ |
89 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | 86 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ |
@@ -93,6 +90,17 @@ | |||
93 | /* Hardware controlled charging? FIXME */ | 90 | /* Hardware controlled charging? FIXME */ |
94 | //#define CONFIG_CHARGING CHARGING_SIMPLE | 91 | //#define CONFIG_CHARGING CHARGING_SIMPLE |
95 | 92 | ||
93 | /* define this if the unit can be powered or charged via USB */ | ||
94 | #define HAVE_USB_POWER | ||
95 | |||
96 | #ifndef SIMULATOR | ||
97 | |||
98 | /* Define this if you have a PortalPlayer PP5022 */ | ||
99 | #define CONFIG_CPU PP5022 | ||
100 | |||
101 | /* Define this if you want to use the PP5020 i2c interface */ | ||
102 | #define CONFIG_I2C I2C_PP5020 | ||
103 | |||
96 | /* define this if the hardware can be powered off while charging */ | 104 | /* define this if the hardware can be powered off while charging */ |
97 | //#define HAVE_POWEROFF_WHILE_CHARGING | 105 | //#define HAVE_POWEROFF_WHILE_CHARGING |
98 | 106 | ||
@@ -121,21 +129,12 @@ | |||
121 | /* USB On-the-go */ | 129 | /* USB On-the-go */ |
122 | #define CONFIG_USBOTG USBOTG_ARC | 130 | #define CONFIG_USBOTG USBOTG_ARC |
123 | 131 | ||
124 | /* define this if the unit can be powered or charged via USB */ | ||
125 | #define HAVE_USB_POWER | ||
126 | |||
127 | /* Virtual LED (icon) */ | 132 | /* Virtual LED (icon) */ |
128 | #define CONFIG_LED LED_VIRTUAL | 133 | #define CONFIG_LED LED_VIRTUAL |
129 | 134 | ||
130 | /* Define if the device can wake from an RTC alarm */ | ||
131 | #define HAVE_RTC_ALARM | ||
132 | |||
133 | /* Define this if you have adjustable CPU frequency */ | 135 | /* Define this if you have adjustable CPU frequency */ |
134 | #define HAVE_ADJUSTABLE_CPU_FREQ | 136 | #define HAVE_ADJUSTABLE_CPU_FREQ |
135 | 137 | ||
136 | /* Define this if you can detect headphones */ | ||
137 | #define HAVE_HEADPHONE_DETECTION | ||
138 | |||
139 | /* Define this if you can read an absolute wheel position */ | 138 | /* Define this if you can read an absolute wheel position */ |
140 | #define HAVE_WHEEL_POSITION | 139 | #define HAVE_WHEEL_POSITION |
141 | 140 | ||
diff --git a/firmware/export/config-ipodnano.h b/firmware/export/config-ipodnano.h index 546d9b85fc..a2f9e3249b 100644 --- a/firmware/export/config-ipodnano.h +++ b/firmware/export/config-ipodnano.h | |||
@@ -49,6 +49,9 @@ | |||
49 | /* define this if you have a real-time clock */ | 49 | /* define this if you have a real-time clock */ |
50 | #define CONFIG_RTC RTC_PCF50605 | 50 | #define CONFIG_RTC RTC_PCF50605 |
51 | 51 | ||
52 | /* Define if the device can wake from an RTC alarm */ | ||
53 | #define HAVE_RTC_ALARM | ||
54 | |||
52 | /* Define this if you have a software controlled poweroff */ | 55 | /* Define this if you have a software controlled poweroff */ |
53 | #define HAVE_SW_POWEROFF | 56 | #define HAVE_SW_POWEROFF |
54 | 57 | ||
@@ -70,17 +73,12 @@ | |||
70 | /* We can fade the backlight by using PWM */ | 73 | /* We can fade the backlight by using PWM */ |
71 | #define HAVE_BACKLIGHT_PWM_FADING | 74 | #define HAVE_BACKLIGHT_PWM_FADING |
72 | 75 | ||
76 | /* Define this if you can detect headphones */ | ||
77 | #define HAVE_HEADPHONE_DETECTION | ||
78 | |||
73 | /* define this if you have a flash memory storage */ | 79 | /* define this if you have a flash memory storage */ |
74 | #define HAVE_FLASH_STORAGE | 80 | #define HAVE_FLASH_STORAGE |
75 | 81 | ||
76 | #ifndef SIMULATOR | ||
77 | |||
78 | /* Define this if you have a PortalPlayer PP5022 */ | ||
79 | #define CONFIG_CPU PP5022 | ||
80 | |||
81 | /* Define this if you want to use the PP5020 i2c interface */ | ||
82 | #define CONFIG_I2C I2C_PP5020 | ||
83 | |||
84 | /* Type of mobile power */ | 82 | /* Type of mobile power */ |
85 | #define CONFIG_BATTERY BATT_LIION300 | 83 | #define CONFIG_BATTERY BATT_LIION300 |
86 | #define BATTERY_CAPACITY_DEFAULT 300 /* default battery capacity */ | 84 | #define BATTERY_CAPACITY_DEFAULT 300 /* default battery capacity */ |
@@ -88,11 +86,23 @@ | |||
88 | #define BATTERY_CAPACITY_MAX 600 /* max. capacity selectable */ | 86 | #define BATTERY_CAPACITY_MAX 600 /* max. capacity selectable */ |
89 | #define BATTERY_CAPACITY_INC 20 /* capacity increment */ | 87 | #define BATTERY_CAPACITY_INC 20 /* capacity increment */ |
90 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | 88 | #define BATTERY_TYPES_COUNT 1 /* only one type */ |
91 | #define BATTERY_SCALE_FACTOR 5840 | ||
92 | 89 | ||
93 | /* Hardware controlled charging? FIXME */ | 90 | /* Hardware controlled charging? FIXME */ |
94 | //#define CONFIG_CHARGING CHARGING_SIMPLE | 91 | //#define CONFIG_CHARGING CHARGING_SIMPLE |
95 | 92 | ||
93 | /* define this if the unit can be powered or charged via USB */ | ||
94 | #define HAVE_USB_POWER | ||
95 | |||
96 | #ifndef SIMULATOR | ||
97 | |||
98 | /* Define this if you have a PortalPlayer PP5022 */ | ||
99 | #define CONFIG_CPU PP5022 | ||
100 | |||
101 | /* Define this if you want to use the PP5020 i2c interface */ | ||
102 | #define CONFIG_I2C I2C_PP5020 | ||
103 | |||
104 | #define BATTERY_SCALE_FACTOR 5840 | ||
105 | |||
96 | /* define this if the hardware can be powered off while charging */ | 106 | /* define this if the hardware can be powered off while charging */ |
97 | //#define HAVE_POWEROFF_WHILE_CHARGING | 107 | //#define HAVE_POWEROFF_WHILE_CHARGING |
98 | 108 | ||
@@ -121,21 +131,12 @@ | |||
121 | /* USB On-the-go */ | 131 | /* USB On-the-go */ |
122 | #define CONFIG_USBOTG USBOTG_ARC | 132 | #define CONFIG_USBOTG USBOTG_ARC |
123 | 133 | ||
124 | /* define this if the unit can be powered or charged via USB */ | ||
125 | #define HAVE_USB_POWER | ||
126 | |||
127 | /* Virtual LED (icon) */ | 134 | /* Virtual LED (icon) */ |
128 | #define CONFIG_LED LED_VIRTUAL | 135 | #define CONFIG_LED LED_VIRTUAL |
129 | 136 | ||
130 | /* Define if the device can wake from an RTC alarm */ | ||
131 | #define HAVE_RTC_ALARM | ||
132 | |||
133 | /* Define this if you have adjustable CPU frequency */ | 137 | /* Define this if you have adjustable CPU frequency */ |
134 | #define HAVE_ADJUSTABLE_CPU_FREQ | 138 | #define HAVE_ADJUSTABLE_CPU_FREQ |
135 | 139 | ||
136 | /* Define this if you can detect headphones */ | ||
137 | #define HAVE_HEADPHONE_DETECTION | ||
138 | |||
139 | /* Define this if you can read an absolute wheel position */ | 140 | /* Define this if you can read an absolute wheel position */ |
140 | #define HAVE_WHEEL_POSITION | 141 | #define HAVE_WHEEL_POSITION |
141 | 142 | ||
diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h index 419a49135f..0f2da5360a 100644 --- a/firmware/export/config-ipodvideo.h +++ b/firmware/export/config-ipodvideo.h | |||
@@ -52,6 +52,9 @@ | |||
52 | /* define this if you have a real-time clock */ | 52 | /* define this if you have a real-time clock */ |
53 | #define CONFIG_RTC RTC_PCF50605 | 53 | #define CONFIG_RTC RTC_PCF50605 |
54 | 54 | ||
55 | /* Define if the device can wake from an RTC alarm */ | ||
56 | #define HAVE_RTC_ALARM | ||
57 | |||
55 | /* Define this if you have a software controlled poweroff */ | 58 | /* Define this if you have a software controlled poweroff */ |
56 | #define HAVE_SW_POWEROFF | 59 | #define HAVE_SW_POWEROFF |
57 | 60 | ||
@@ -73,13 +76,8 @@ | |||
73 | /* We can fade the backlight by using PWM */ | 76 | /* We can fade the backlight by using PWM */ |
74 | #define HAVE_BACKLIGHT_PWM_FADING | 77 | #define HAVE_BACKLIGHT_PWM_FADING |
75 | 78 | ||
76 | #ifndef SIMULATOR | 79 | /* Define this if you can detect headphones */ |
77 | 80 | #define HAVE_HEADPHONE_DETECTION | |
78 | /* Define this if you have a PortalPlayer PP5022 */ | ||
79 | #define CONFIG_CPU PP5022 | ||
80 | |||
81 | /* Define this if you want to use the PP5020 i2c interface */ | ||
82 | #define CONFIG_I2C I2C_PP5020 | ||
83 | 81 | ||
84 | /* Type of mobile power */ | 82 | /* Type of mobile power */ |
85 | #if (MEM==32) /* this is the 30GB-model */ | 83 | #if (MEM==32) /* this is the 30GB-model */ |
@@ -103,6 +101,17 @@ | |||
103 | /* Hardware controlled charging with monitoring */ | 101 | /* Hardware controlled charging with monitoring */ |
104 | #define CONFIG_CHARGING CHARGING_MONITOR | 102 | #define CONFIG_CHARGING CHARGING_MONITOR |
105 | 103 | ||
104 | /* define this if the unit can be powered or charged via USB */ | ||
105 | #define HAVE_USB_POWER | ||
106 | |||
107 | #ifndef SIMULATOR | ||
108 | |||
109 | /* Define this if you have a PortalPlayer PP5022 */ | ||
110 | #define CONFIG_CPU PP5022 | ||
111 | |||
112 | /* Define this if you want to use the PP5020 i2c interface */ | ||
113 | #define CONFIG_I2C I2C_PP5020 | ||
114 | |||
106 | /* define this if the hardware can be powered off while charging */ | 115 | /* define this if the hardware can be powered off while charging */ |
107 | //#define HAVE_POWEROFF_WHILE_CHARGING | 116 | //#define HAVE_POWEROFF_WHILE_CHARGING |
108 | 117 | ||
@@ -131,21 +140,12 @@ | |||
131 | /* USB On-the-go */ | 140 | /* USB On-the-go */ |
132 | #define CONFIG_USBOTG USBOTG_ARC | 141 | #define CONFIG_USBOTG USBOTG_ARC |
133 | 142 | ||
134 | /* define this if the unit can be powered or charged via USB */ | ||
135 | #define HAVE_USB_POWER | ||
136 | |||
137 | /* Virtual LED (icon) */ | 143 | /* Virtual LED (icon) */ |
138 | #define CONFIG_LED LED_VIRTUAL | 144 | #define CONFIG_LED LED_VIRTUAL |
139 | 145 | ||
140 | /* Define if the device can wake from an RTC alarm */ | ||
141 | #define HAVE_RTC_ALARM | ||
142 | |||
143 | /* Define this if you have adjustable CPU frequency */ | 146 | /* Define this if you have adjustable CPU frequency */ |
144 | #define HAVE_ADJUSTABLE_CPU_FREQ | 147 | #define HAVE_ADJUSTABLE_CPU_FREQ |
145 | 148 | ||
146 | /* Define this if you can detect headphones */ | ||
147 | #define HAVE_HEADPHONE_DETECTION | ||
148 | |||
149 | /* Define this if you can read an absolute wheel position */ | 149 | /* Define this if you can read an absolute wheel position */ |
150 | #define HAVE_WHEEL_POSITION | 150 | #define HAVE_WHEEL_POSITION |
151 | 151 | ||
diff --git a/firmware/export/config-ondiofm.h b/firmware/export/config-ondiofm.h index 93c0fccc8c..f9c2b191f1 100644 --- a/firmware/export/config-ondiofm.h +++ b/firmware/export/config-ondiofm.h | |||
@@ -46,11 +46,24 @@ | |||
46 | /* Enable this if you have done the backlight mod */ | 46 | /* Enable this if you have done the backlight mod */ |
47 | //#define HAVE_BACKLIGHT | 47 | //#define HAVE_BACKLIGHT |
48 | 48 | ||
49 | #define BATTERY_CAPACITY_DEFAULT 1000 /* default battery capacity */ | ||
50 | |||
51 | /* define this if you have a flash memory storage */ | 49 | /* define this if you have a flash memory storage */ |
52 | #define HAVE_FLASH_STORAGE | 50 | #define HAVE_FLASH_STORAGE |
53 | 51 | ||
52 | /* define this if more than one device/partition can be used */ | ||
53 | #define HAVE_MULTIVOLUME | ||
54 | |||
55 | /* Type of mobile power */ | ||
56 | #define CONFIG_BATTERY BATT_3AAA | ||
57 | #define BATTERY_CAPACITY_DEFAULT 1000 /* default battery capacity */ | ||
58 | #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */ | ||
59 | #define BATTERY_CAPACITY_MAX 1500 /* max. capacity selectable */ | ||
60 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
61 | #define BATTERY_TYPES_COUNT 2 /* Alkalines or NiMH */ | ||
62 | #define BATTERY_SCALE_FACTOR 4735 /* average from 3 Ondios */ | ||
63 | |||
64 | /* define this if the unit can be powered or charged via USB */ | ||
65 | #define HAVE_USB_POWER | ||
66 | |||
54 | #ifndef SIMULATOR | 67 | #ifndef SIMULATOR |
55 | 68 | ||
56 | /* Define this if you have a SH7034 */ | 69 | /* Define this if you have a SH7034 */ |
@@ -62,14 +75,6 @@ | |||
62 | /* Define this for different I2C pinout */ | 75 | /* Define this for different I2C pinout */ |
63 | #define CONFIG_I2C I2C_ONDIO | 76 | #define CONFIG_I2C I2C_ONDIO |
64 | 77 | ||
65 | /* Type of mobile power */ | ||
66 | #define CONFIG_BATTERY BATT_3AAA | ||
67 | #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */ | ||
68 | #define BATTERY_CAPACITY_MAX 1500 /* max. capacity selectable */ | ||
69 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
70 | #define BATTERY_TYPES_COUNT 2 /* Alkalines or NiMH */ | ||
71 | #define BATTERY_SCALE_FACTOR 4735 /* average from 3 Ondios */ | ||
72 | |||
73 | /* Define this if you control power on PB5 (instead of the OFF button) */ | 78 | /* Define this if you control power on PB5 (instead of the OFF button) */ |
74 | #define HAVE_POWEROFF_ON_PB5 | 79 | #define HAVE_POWEROFF_ON_PB5 |
75 | 80 | ||
@@ -107,9 +112,6 @@ | |||
107 | /* Define this if the MAS SIBI line can be controlled via PB8 */ | 112 | /* Define this if the MAS SIBI line can be controlled via PB8 */ |
108 | #define HAVE_MAS_SIBI_CONTROL | 113 | #define HAVE_MAS_SIBI_CONTROL |
109 | 114 | ||
110 | /* define this if more than one device/partition can be used */ | ||
111 | #define HAVE_MULTIVOLUME | ||
112 | |||
113 | /* define this if media can be exchanged on the fly */ | 115 | /* define this if media can be exchanged on the fly */ |
114 | #define HAVE_HOTSWAP | 116 | #define HAVE_HOTSWAP |
115 | 117 | ||
@@ -118,9 +120,6 @@ | |||
118 | 120 | ||
119 | #define CONFIG_LCD LCD_SSD1815 | 121 | #define CONFIG_LCD LCD_SSD1815 |
120 | 122 | ||
121 | /* define this if the unit can be powered or charged via USB */ | ||
122 | #define HAVE_USB_POWER | ||
123 | |||
124 | #define BOOTFILE_EXT "ajz" | 123 | #define BOOTFILE_EXT "ajz" |
125 | #define BOOTFILE "ajbrec." BOOTFILE_EXT | 124 | #define BOOTFILE "ajbrec." BOOTFILE_EXT |
126 | #define BOOTDIR "/" | 125 | #define BOOTDIR "/" |
diff --git a/firmware/export/config-ondiosp.h b/firmware/export/config-ondiosp.h index 22673e82b3..510ce01f57 100644 --- a/firmware/export/config-ondiosp.h +++ b/firmware/export/config-ondiosp.h | |||
@@ -35,27 +35,32 @@ | |||
35 | /* Enable this if you have done the backlight mod */ | 35 | /* Enable this if you have done the backlight mod */ |
36 | //#define HAVE_BACKLIGHT | 36 | //#define HAVE_BACKLIGHT |
37 | 37 | ||
38 | #define BATTERY_CAPACITY_DEFAULT 1000 /* default battery capacity */ | ||
39 | |||
40 | /* define this if you have a flash memory storage */ | 38 | /* define this if you have a flash memory storage */ |
41 | #define HAVE_FLASH_STORAGE | 39 | #define HAVE_FLASH_STORAGE |
42 | 40 | ||
43 | #ifndef SIMULATOR | 41 | /* define this if more than one device/partition can be used */ |
44 | 42 | #define HAVE_MULTIVOLUME | |
45 | /* Define this if you have a SH7034 */ | ||
46 | #define CONFIG_CPU SH7034 | ||
47 | |||
48 | /* Define this to the CPU frequency */ | ||
49 | #define CPU_FREQ 12000000 | ||
50 | 43 | ||
51 | /* Type of mobile power */ | 44 | /* Type of mobile power */ |
52 | #define CONFIG_BATTERY BATT_3AAA | 45 | #define CONFIG_BATTERY BATT_3AAA |
46 | #define BATTERY_CAPACITY_DEFAULT 1000 /* default battery capacity */ | ||
53 | #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */ | 47 | #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */ |
54 | #define BATTERY_CAPACITY_MAX 1500 /* max. capacity selectable */ | 48 | #define BATTERY_CAPACITY_MAX 1500 /* max. capacity selectable */ |
55 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | 49 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ |
56 | #define BATTERY_TYPES_COUNT 2 /* Alkalines or NiMH */ | 50 | #define BATTERY_TYPES_COUNT 2 /* Alkalines or NiMH */ |
57 | #define BATTERY_SCALE_FACTOR 4735 /* average from 3 Ondios */ | 51 | #define BATTERY_SCALE_FACTOR 4735 /* average from 3 Ondios */ |
58 | 52 | ||
53 | /* define this if the unit can be powered or charged via USB */ | ||
54 | #define HAVE_USB_POWER | ||
55 | |||
56 | #ifndef SIMULATOR | ||
57 | |||
58 | /* Define this if you have a SH7034 */ | ||
59 | #define CONFIG_CPU SH7034 | ||
60 | |||
61 | /* Define this to the CPU frequency */ | ||
62 | #define CPU_FREQ 12000000 | ||
63 | |||
59 | /* Define this if you control power on PB5 (instead of the OFF button) */ | 64 | /* Define this if you control power on PB5 (instead of the OFF button) */ |
60 | #define HAVE_POWEROFF_ON_PB5 | 65 | #define HAVE_POWEROFF_ON_PB5 |
61 | 66 | ||
@@ -90,9 +95,6 @@ | |||
90 | /* Define this if the MAS SIBI line can be controlled via PB8 */ | 95 | /* Define this if the MAS SIBI line can be controlled via PB8 */ |
91 | #define HAVE_MAS_SIBI_CONTROL | 96 | #define HAVE_MAS_SIBI_CONTROL |
92 | 97 | ||
93 | /* define this if more than one device/partition can be used */ | ||
94 | #define HAVE_MULTIVOLUME | ||
95 | |||
96 | /* define this if media can be exchanged on the fly */ | 98 | /* define this if media can be exchanged on the fly */ |
97 | #define HAVE_HOTSWAP | 99 | #define HAVE_HOTSWAP |
98 | 100 | ||
@@ -101,9 +103,6 @@ | |||
101 | 103 | ||
102 | #define CONFIG_LCD LCD_SSD1815 | 104 | #define CONFIG_LCD LCD_SSD1815 |
103 | 105 | ||
104 | /* define this if the unit can be powered or charged via USB */ | ||
105 | #define HAVE_USB_POWER | ||
106 | |||
107 | #define BOOTFILE_EXT "ajz" | 106 | #define BOOTFILE_EXT "ajz" |
108 | #define BOOTFILE "ajbrec." BOOTFILE_EXT | 107 | #define BOOTFILE "ajbrec." BOOTFILE_EXT |
109 | #define BOOTDIR "/" | 108 | #define BOOTDIR "/" |
diff --git a/firmware/export/config-player.h b/firmware/export/config-player.h index 0256db137f..5e20d9e393 100644 --- a/firmware/export/config-player.h +++ b/firmware/export/config-player.h | |||
@@ -27,7 +27,17 @@ | |||
27 | /* Define this for LCD backlight available */ | 27 | /* Define this for LCD backlight available */ |
28 | #define HAVE_BACKLIGHT | 28 | #define HAVE_BACKLIGHT |
29 | 29 | ||
30 | /* Type of mobile power */ | ||
31 | #define CONFIG_BATTERY BATT_4AA_NIMH | ||
30 | #define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */ | 32 | #define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */ |
33 | #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */ | ||
34 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ | ||
35 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
36 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
37 | #define BATTERY_SCALE_FACTOR 6546 | ||
38 | |||
39 | /* Hardware controlled charging */ | ||
40 | #define CONFIG_CHARGING CHARGING_SIMPLE | ||
31 | 41 | ||
32 | #ifndef SIMULATOR | 42 | #ifndef SIMULATOR |
33 | 43 | ||
@@ -48,14 +58,6 @@ | |||
48 | /* Define this to the CPU frequency */ | 58 | /* Define this to the CPU frequency */ |
49 | #define CPU_FREQ 12000000 /* cycle time ~83.3ns */ | 59 | #define CPU_FREQ 12000000 /* cycle time ~83.3ns */ |
50 | 60 | ||
51 | /* Type of mobile power */ | ||
52 | #define CONFIG_BATTERY BATT_4AA_NIMH | ||
53 | #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */ | ||
54 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ | ||
55 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
56 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
57 | #define BATTERY_SCALE_FACTOR 6546 | ||
58 | |||
59 | /* Define this if you must discharge the data line by driving it low | 61 | /* Define this if you must discharge the data line by driving it low |
60 | and then set it to input to see if it stays low or goes high */ | 62 | and then set it to input to see if it stays low or goes high */ |
61 | #define HAVE_I2C_LOW_FIRST | 63 | #define HAVE_I2C_LOW_FIRST |
@@ -74,9 +76,6 @@ | |||
74 | /* Offset ( in the firmware file's header ) to the real data */ | 76 | /* Offset ( in the firmware file's header ) to the real data */ |
75 | #define FIRMWARE_OFFSET_FILE_DATA 6 | 77 | #define FIRMWARE_OFFSET_FILE_DATA 6 |
76 | 78 | ||
77 | /* Hardware controlled charging */ | ||
78 | #define CONFIG_CHARGING CHARGING_SIMPLE | ||
79 | |||
80 | /* The start address index for ROM builds */ | 79 | /* The start address index for ROM builds */ |
81 | /* #define ROM_START 0xD010 for behind original Archos */ | 80 | /* #define ROM_START 0xD010 for behind original Archos */ |
82 | #define ROM_START 0x6010 /* for behind BootBox */ | 81 | #define ROM_START 0x6010 /* for behind BootBox */ |
diff --git a/firmware/export/config-recorder.h b/firmware/export/config-recorder.h index 29f187fdd2..920db04a01 100644 --- a/firmware/export/config-recorder.h +++ b/firmware/export/config-recorder.h | |||
@@ -51,7 +51,17 @@ | |||
51 | 51 | ||
52 | #define CONFIG_I2C I2C_PLAYREC | 52 | #define CONFIG_I2C I2C_PLAYREC |
53 | 53 | ||
54 | /* Type of mobile power */ | ||
55 | #define CONFIG_BATTERY BATT_4AA_NIMH | ||
54 | #define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */ | 56 | #define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */ |
57 | #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */ | ||
58 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ | ||
59 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
60 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
61 | #define BATTERY_SCALE_FACTOR 6465 | ||
62 | |||
63 | /* Software controlled charging */ | ||
64 | #define CONFIG_CHARGING CHARGING_CONTROL | ||
55 | 65 | ||
56 | #ifndef SIMULATOR | 66 | #ifndef SIMULATOR |
57 | 67 | ||
@@ -67,14 +77,6 @@ | |||
67 | /* Define this to the CPU frequency */ | 77 | /* Define this to the CPU frequency */ |
68 | #define CPU_FREQ 11059200 | 78 | #define CPU_FREQ 11059200 |
69 | 79 | ||
70 | /* Type of mobile power */ | ||
71 | #define CONFIG_BATTERY BATT_4AA_NIMH | ||
72 | #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */ | ||
73 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ | ||
74 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
75 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
76 | #define BATTERY_SCALE_FACTOR 6465 | ||
77 | |||
78 | /* Define this if you control power on PBDR (instead of PADR) */ | 80 | /* Define this if you control power on PBDR (instead of PADR) */ |
79 | #define HAVE_POWEROFF_ON_PBDR | 81 | #define HAVE_POWEROFF_ON_PBDR |
80 | 82 | ||
@@ -87,9 +89,6 @@ | |||
87 | /* Offset ( in the firmware file's header ) to the real data */ | 89 | /* Offset ( in the firmware file's header ) to the real data */ |
88 | #define FIRMWARE_OFFSET_FILE_DATA 6 | 90 | #define FIRMWARE_OFFSET_FILE_DATA 6 |
89 | 91 | ||
90 | /* Software controlled charging */ | ||
91 | #define CONFIG_CHARGING CHARGING_CONTROL | ||
92 | |||
93 | /* The start address index for ROM builds */ | 92 | /* The start address index for ROM builds */ |
94 | /* #define ROM_START 0x11010 for behind original Archos */ | 93 | /* #define ROM_START 0x11010 for behind original Archos */ |
95 | #define ROM_START 0x7010 /* for behind BootBox */ | 94 | #define ROM_START 0x7010 /* for behind BootBox */ |
diff --git a/firmware/export/config-recorderv2.h b/firmware/export/config-recorderv2.h index b534be568f..fc1461066a 100644 --- a/firmware/export/config-recorderv2.h +++ b/firmware/export/config-recorderv2.h | |||
@@ -35,6 +35,9 @@ | |||
35 | /* define this if you have a real-time clock */ | 35 | /* define this if you have a real-time clock */ |
36 | #define CONFIG_RTC RTC_M41ST84W | 36 | #define CONFIG_RTC RTC_M41ST84W |
37 | 37 | ||
38 | /* FM recorders can wake up from RTC alarm */ | ||
39 | #define HAVE_RTC_ALARM | ||
40 | |||
38 | /* define this if you have RTC RAM available for settings */ | 41 | /* define this if you have RTC RAM available for settings */ |
39 | #define HAVE_RTC_RAM | 42 | #define HAVE_RTC_RAM |
40 | 43 | ||
@@ -54,7 +57,21 @@ | |||
54 | 57 | ||
55 | #define CONFIG_I2C I2C_PLAYREC | 58 | #define CONFIG_I2C I2C_PLAYREC |
56 | 59 | ||
60 | /* Type of mobile power */ | ||
61 | #define CONFIG_BATTERY BATT_LIION2200 | ||
57 | #define BATTERY_CAPACITY_DEFAULT 2200 /* default battery capacity */ | 62 | #define BATTERY_CAPACITY_DEFAULT 2200 /* default battery capacity */ |
63 | #define BATTERY_CAPACITY_MIN 2200 /* min. capacity selectable */ | ||
64 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ | ||
65 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
66 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
67 | /* Battery scale factor (guessed, seems to be 1,25 * value from recorder) */ | ||
68 | #define BATTERY_SCALE_FACTOR 8081 | ||
69 | |||
70 | /* Hardware controlled charging with monitoring */ | ||
71 | #define CONFIG_CHARGING CHARGING_MONITOR | ||
72 | |||
73 | /* define this if the unit can be powered or charged via USB */ | ||
74 | #define HAVE_USB_POWER | ||
58 | 75 | ||
59 | #ifndef SIMULATOR | 76 | #ifndef SIMULATOR |
60 | 77 | ||
@@ -73,15 +90,6 @@ | |||
73 | /* Define this to the CPU frequency */ | 90 | /* Define this to the CPU frequency */ |
74 | #define CPU_FREQ 11059200 | 91 | #define CPU_FREQ 11059200 |
75 | 92 | ||
76 | /* Type of mobile power */ | ||
77 | #define CONFIG_BATTERY BATT_LIION2200 | ||
78 | #define BATTERY_CAPACITY_MIN 2200 /* min. capacity selectable */ | ||
79 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ | ||
80 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
81 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
82 | /* Battery scale factor (guessed, seems to be 1,25 * value from recorder) */ | ||
83 | #define BATTERY_SCALE_FACTOR 8081 | ||
84 | |||
85 | /* Define this if you control power on PB5 (instead of the OFF button) */ | 93 | /* Define this if you control power on PB5 (instead of the OFF button) */ |
86 | #define HAVE_POWEROFF_ON_PB5 | 94 | #define HAVE_POWEROFF_ON_PB5 |
87 | 95 | ||
@@ -94,15 +102,9 @@ | |||
94 | /* Offset ( in the firmware file's header ) to the real data */ | 102 | /* Offset ( in the firmware file's header ) to the real data */ |
95 | #define FIRMWARE_OFFSET_FILE_DATA 24 | 103 | #define FIRMWARE_OFFSET_FILE_DATA 24 |
96 | 104 | ||
97 | /* FM recorders can wake up from RTC alarm */ | ||
98 | #define HAVE_RTC_ALARM | ||
99 | |||
100 | /* Define this if you have an FM Radio */ | 105 | /* Define this if you have an FM Radio */ |
101 | #define CONFIG_TUNER S1A0903X01 | 106 | #define CONFIG_TUNER S1A0903X01 |
102 | 107 | ||
103 | /* Hardware controlled charging with monitoring */ | ||
104 | #define CONFIG_CHARGING CHARGING_MONITOR | ||
105 | |||
106 | /* The start address index for ROM builds */ | 108 | /* The start address index for ROM builds */ |
107 | /* #define ROM_START 0x12010 for behind original Archos */ | 109 | /* #define ROM_START 0x12010 for behind original Archos */ |
108 | #define ROM_START 0x7010 /* for behind BootBox */ | 110 | #define ROM_START 0x7010 /* for behind BootBox */ |
@@ -110,9 +112,6 @@ | |||
110 | /* Software controlled LED */ | 112 | /* Software controlled LED */ |
111 | #define CONFIG_LED LED_REAL | 113 | #define CONFIG_LED LED_REAL |
112 | 114 | ||
113 | /* define this if the unit can be powered or charged via USB */ | ||
114 | #define HAVE_USB_POWER | ||
115 | |||
116 | #define CONFIG_LCD LCD_SSD1815 | 115 | #define CONFIG_LCD LCD_SSD1815 |
117 | 116 | ||
118 | #define BOOTFILE_EXT "ajz" | 117 | #define BOOTFILE_EXT "ajz" |
diff --git a/firmware/export/config-tpj1022.h b/firmware/export/config-tpj1022.h index 02e7319cfe..be2da37412 100644 --- a/firmware/export/config-tpj1022.h +++ b/firmware/export/config-tpj1022.h | |||
@@ -57,20 +57,11 @@ | |||
57 | /* Define this for LCD backlight available */ | 57 | /* Define this for LCD backlight available */ |
58 | #define HAVE_BACKLIGHT | 58 | #define HAVE_BACKLIGHT |
59 | 59 | ||
60 | /* Type of mobile power */ | ||
61 | #define CONFIG_BATTERY BATT_LPCS355385 | ||
60 | #define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity | 62 | #define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity |
61 | TODO: check this, probably different | 63 | TODO: check this, probably different |
62 | for different models too */ | 64 | for different models too */ |
63 | |||
64 | #ifndef SIMULATOR | ||
65 | |||
66 | /* Define this if you have a PortalPlayer PP5020 */ | ||
67 | #define CONFIG_CPU PP5020 | ||
68 | |||
69 | /* Define this if you want to use the PP5020 i2c interface */ | ||
70 | #define CONFIG_I2C I2C_PP5020 | ||
71 | |||
72 | /* Type of mobile power */ | ||
73 | #define CONFIG_BATTERY BATT_LPCS355385 | ||
74 | #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */ | 65 | #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */ |
75 | #define BATTERY_CAPACITY_MAX 1600 /* max. capacity selectable */ | 66 | #define BATTERY_CAPACITY_MAX 1600 /* max. capacity selectable */ |
76 | #define BATTERY_CAPACITY_INC 10 /* capacity increment */ | 67 | #define BATTERY_CAPACITY_INC 10 /* capacity increment */ |
@@ -80,6 +71,17 @@ | |||
80 | /* Hardware controlled charging? FIXME */ | 71 | /* Hardware controlled charging? FIXME */ |
81 | //#define CONFIG_CHARGING CHARGING_SIMPLE | 72 | //#define CONFIG_CHARGING CHARGING_SIMPLE |
82 | 73 | ||
74 | /* define this if the unit can be powered or charged via USB */ | ||
75 | /*#define HAVE_USB_POWER*/ | ||
76 | |||
77 | #ifndef SIMULATOR | ||
78 | |||
79 | /* Define this if you have a PortalPlayer PP5020 */ | ||
80 | #define CONFIG_CPU PP5020 | ||
81 | |||
82 | /* Define this if you want to use the PP5020 i2c interface */ | ||
83 | #define CONFIG_I2C I2C_PP5020 | ||
84 | |||
83 | /* define this if the hardware can be powered off while charging */ | 85 | /* define this if the hardware can be powered off while charging */ |
84 | /* TODO: should this be set for the H10? */ | 86 | /* TODO: should this be set for the H10? */ |
85 | //#define HAVE_POWEROFF_WHILE_CHARGING | 87 | //#define HAVE_POWEROFF_WHILE_CHARGING |
@@ -110,9 +112,6 @@ | |||
110 | /* USB On-the-go */ | 112 | /* USB On-the-go */ |
111 | #define CONFIG_USBOTG USBOTG_ARC | 113 | #define CONFIG_USBOTG USBOTG_ARC |
112 | 114 | ||
113 | /* define this if the unit can be powered or charged via USB */ | ||
114 | /*#define HAVE_USB_POWER*/ | ||
115 | |||
116 | /* Virtual LED (icon) */ | 115 | /* Virtual LED (icon) */ |
117 | #define CONFIG_LED LED_VIRTUAL | 116 | #define CONFIG_LED LED_VIRTUAL |
118 | 117 | ||
diff --git a/firmware/export/lcd-remote.h b/firmware/export/lcd-remote.h index 6f3602c5ab..44f809a838 100644 --- a/firmware/export/lcd-remote.h +++ b/firmware/export/lcd-remote.h | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | #ifdef HAVE_REMOTE_LCD | 28 | #ifdef HAVE_REMOTE_LCD |
29 | 29 | ||
30 | #if defined(TARGET_TREE) && !defined(SIMULATOR) | 30 | #if defined(TARGET_TREE) |
31 | #include "lcd-remote-target.h" | 31 | #include "lcd-remote-target.h" |
32 | #endif | 32 | #endif |
33 | 33 | ||
diff --git a/firmware/export/power.h b/firmware/export/power.h index fbc3ded3c1..b97410fd54 100644 --- a/firmware/export/power.h +++ b/firmware/export/power.h | |||
@@ -31,14 +31,14 @@ bool charger_inserted(void); | |||
31 | void power_off(void); | 31 | void power_off(void); |
32 | void ide_power_enable(bool on); | 32 | void ide_power_enable(bool on); |
33 | 33 | ||
34 | #ifndef SIMULATOR | ||
35 | |||
36 | void power_init(void); | ||
37 | |||
38 | # if CONFIG_CHARGING == CHARGING_MONITOR | 34 | # if CONFIG_CHARGING == CHARGING_MONITOR |
39 | bool charging_state(void); | 35 | bool charging_state(void); |
40 | # endif | 36 | # endif |
41 | 37 | ||
38 | #ifndef SIMULATOR | ||
39 | |||
40 | void power_init(void); | ||
41 | |||
42 | bool ide_powered(void); | 42 | bool ide_powered(void); |
43 | #endif | 43 | #endif |
44 | 44 | ||
diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h index 77764b5a31..4bdaa4387d 100644 --- a/firmware/export/powermgmt.h +++ b/firmware/export/powermgmt.h | |||
@@ -26,6 +26,34 @@ | |||
26 | #define CHARGE_END_LONGD 50 /* stop when N minutes have passed with | 26 | #define CHARGE_END_LONGD 50 /* stop when N minutes have passed with |
27 | * avg delta being < -0.02 V */ | 27 | * avg delta being < -0.02 V */ |
28 | 28 | ||
29 | #if CONFIG_CHARGING >= CHARGING_MONITOR | ||
30 | typedef enum { /* sorted by increasing charging current */ | ||
31 | DISCHARGING = 0, | ||
32 | TRICKLE, /* Can occur for CONFIG_CHARGING >= CHARGING_MONITOR */ | ||
33 | TOPOFF, /* Can occur for CONFIG_CHARGING == CHARGING_CONTROL */ | ||
34 | CHARGING /* Can occur for all CONFIG_CHARGING options */ | ||
35 | } charge_state_type; | ||
36 | |||
37 | /* tells what the charger is doing */ | ||
38 | extern charge_state_type charge_state; | ||
39 | #endif /* CONFIG_CHARGING >= CHARGING_MONITOR */ | ||
40 | |||
41 | #ifdef CONFIG_CHARGING | ||
42 | /* | ||
43 | * Flag that the charger has been plugged in/removed: this is set for exactly | ||
44 | * one time through the power loop when the charger has been plugged in. | ||
45 | */ | ||
46 | typedef enum { | ||
47 | NO_CHARGER, | ||
48 | CHARGER_UNPLUGGED, /* transient state */ | ||
49 | CHARGER_PLUGGED, /* transient state */ | ||
50 | CHARGER | ||
51 | } charger_input_state_type; | ||
52 | |||
53 | /* tells the state of the charge input */ | ||
54 | extern charger_input_state_type charger_input_state; | ||
55 | #endif | ||
56 | |||
29 | #ifndef SIMULATOR | 57 | #ifndef SIMULATOR |
30 | 58 | ||
31 | #if CONFIG_CHARGING == CHARGING_CONTROL | 59 | #if CONFIG_CHARGING == CHARGING_CONTROL |
@@ -61,34 +89,6 @@ extern int trickle_sec; /* trickle charge: How many seconds per minute | |||
61 | 89 | ||
62 | #endif /* CONFIG_CHARGING == CHARGING_CONTROL */ | 90 | #endif /* CONFIG_CHARGING == CHARGING_CONTROL */ |
63 | 91 | ||
64 | #if CONFIG_CHARGING >= CHARGING_MONITOR | ||
65 | typedef enum { /* sorted by increasing charging current */ | ||
66 | DISCHARGING = 0, | ||
67 | TRICKLE, /* Can occur for CONFIG_CHARGING >= CHARGING_MONITOR */ | ||
68 | TOPOFF, /* Can occur for CONFIG_CHARGING == CHARGING_CONTROL */ | ||
69 | CHARGING /* Can occur for all CONFIG_CHARGING options */ | ||
70 | } charge_state_type; | ||
71 | |||
72 | /* tells what the charger is doing */ | ||
73 | extern charge_state_type charge_state; | ||
74 | #endif /* CONFIG_CHARGING >= CHARGING_MONITOR */ | ||
75 | |||
76 | #ifdef CONFIG_CHARGING | ||
77 | /* | ||
78 | * Flag that the charger has been plugged in/removed: this is set for exactly | ||
79 | * one time through the power loop when the charger has been plugged in. | ||
80 | */ | ||
81 | typedef enum { | ||
82 | NO_CHARGER, | ||
83 | CHARGER_UNPLUGGED, /* transient state */ | ||
84 | CHARGER_PLUGGED, /* transient state */ | ||
85 | CHARGER | ||
86 | } charger_input_state_type; | ||
87 | |||
88 | /* tells the state of the charge input */ | ||
89 | extern charger_input_state_type charger_input_state; | ||
90 | #endif | ||
91 | |||
92 | #ifdef HAVE_MMC /* Values for Ondio */ | 92 | #ifdef HAVE_MMC /* Values for Ondio */ |
93 | # define CURRENT_NORMAL 95 /* average, nearly proportional to 1/U */ | 93 | # define CURRENT_NORMAL 95 /* average, nearly proportional to 1/U */ |
94 | # define CURRENT_USB 1 /* host powered in USB mode; avoid zero-div */ | 94 | # define CURRENT_USB 1 /* host powered in USB mode; avoid zero-div */ |
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 6f013dec98..49b9a51d40 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c | |||
@@ -76,6 +76,13 @@ static int wrcount; | |||
76 | #endif | 76 | #endif |
77 | 77 | ||
78 | static int shutdown_timeout = 0; | 78 | static int shutdown_timeout = 0; |
79 | #if CONFIG_CHARGING >= CHARGING_MONITOR | ||
80 | charge_state_type charge_state; /* charging mode */ | ||
81 | #endif | ||
82 | |||
83 | #if CONFIG_CHARGING | ||
84 | charger_input_state_type charger_input_state IDATA_ATTR; | ||
85 | #endif | ||
79 | 86 | ||
80 | #ifdef SIMULATOR /***********************************************************/ | 87 | #ifdef SIMULATOR /***********************************************************/ |
81 | 88 | ||
@@ -153,10 +160,16 @@ void set_battery_capacity(int capacity) | |||
153 | (void)capacity; | 160 | (void)capacity; |
154 | } | 161 | } |
155 | 162 | ||
156 | void reset_poweroff_timer(void) | 163 | #if BATTERY_TYPES_COUNT > 1 |
164 | void set_battery_type(int type) | ||
157 | { | 165 | { |
166 | (void)type; | ||
158 | } | 167 | } |
168 | #endif | ||
159 | 169 | ||
170 | void reset_poweroff_timer(void) | ||
171 | { | ||
172 | } | ||
160 | 173 | ||
161 | #else /* not SIMULATOR ******************************************************/ | 174 | #else /* not SIMULATOR ******************************************************/ |
162 | 175 | ||
@@ -269,9 +282,6 @@ static const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = | |||
269 | }; | 282 | }; |
270 | 283 | ||
271 | #if CONFIG_CHARGING | 284 | #if CONFIG_CHARGING |
272 | charger_input_state_type charger_input_state IDATA_ATTR; | ||
273 | |||
274 | |||
275 | /* voltages (centivolt) of 0%, 10%, ... 100% when charging enabled */ | 285 | /* voltages (centivolt) of 0%, 10%, ... 100% when charging enabled */ |
276 | static const unsigned short percent_to_volt_charge[11] = | 286 | static const unsigned short percent_to_volt_charge[11] = |
277 | { | 287 | { |
@@ -305,10 +315,6 @@ static const unsigned short percent_to_volt_charge[11] = | |||
305 | }; | 315 | }; |
306 | #endif /* CONFIG_CHARGING */ | 316 | #endif /* CONFIG_CHARGING */ |
307 | 317 | ||
308 | #if CONFIG_CHARGING >= CHARGING_MONITOR | ||
309 | charge_state_type charge_state; /* charging mode */ | ||
310 | #endif | ||
311 | |||
312 | #if CONFIG_CHARGING == CHARGING_CONTROL | 318 | #if CONFIG_CHARGING == CHARGING_CONTROL |
313 | int long_delta; /* long term delta battery voltage */ | 319 | int long_delta; /* long term delta battery voltage */ |
314 | int short_delta; /* short term delta battery voltage */ | 320 | int short_delta; /* short term delta battery voltage */ |
diff --git a/firmware/target/coldfire/iaudio/m5/power-m5.c b/firmware/target/coldfire/iaudio/m5/power-m5.c index f3e7cdd496..d33cbec8be 100644 --- a/firmware/target/coldfire/iaudio/m5/power-m5.c +++ b/firmware/target/coldfire/iaudio/m5/power-m5.c | |||
@@ -65,25 +65,4 @@ void power_off(void) | |||
65 | asm("halt"); | 65 | asm("halt"); |
66 | } | 66 | } |
67 | 67 | ||
68 | #else | ||
69 | |||
70 | bool charger_inserted(void) | ||
71 | { | ||
72 | return false; | ||
73 | } | ||
74 | |||
75 | void charger_enable(bool on) | ||
76 | { | ||
77 | (void)on; | ||
78 | } | ||
79 | |||
80 | void power_off(void) | ||
81 | { | ||
82 | } | ||
83 | |||
84 | void ide_power_enable(bool on) | ||
85 | { | ||
86 | (void)on; | ||
87 | } | ||
88 | |||
89 | #endif /* SIMULATOR */ | 68 | #endif /* SIMULATOR */ |
diff --git a/firmware/target/coldfire/iaudio/x5/power-x5.c b/firmware/target/coldfire/iaudio/x5/power-x5.c index 5c6c388a71..76d612334b 100644 --- a/firmware/target/coldfire/iaudio/x5/power-x5.c +++ b/firmware/target/coldfire/iaudio/x5/power-x5.c | |||
@@ -65,27 +65,6 @@ void power_off(void) | |||
65 | asm("halt"); | 65 | asm("halt"); |
66 | } | 66 | } |
67 | 67 | ||
68 | #else | ||
69 | |||
70 | bool charger_inserted(void) | ||
71 | { | ||
72 | return false; | ||
73 | } | ||
74 | |||
75 | void charger_enable(bool on) | ||
76 | { | ||
77 | (void)on; | ||
78 | } | ||
79 | |||
80 | void power_off(void) | ||
81 | { | ||
82 | } | ||
83 | |||
84 | void ide_power_enable(bool on) | ||
85 | { | ||
86 | (void)on; | ||
87 | } | ||
88 | |||
89 | #endif /* SIMULATOR */ | 68 | #endif /* SIMULATOR */ |
90 | 69 | ||
91 | static bool powered = false; | 70 | static bool powered = false; |
diff --git a/firmware/target/coldfire/iriver/h100/power-h100.c b/firmware/target/coldfire/iriver/h100/power-h100.c index c1841264a2..27000ebf8a 100644 --- a/firmware/target/coldfire/iriver/h100/power-h100.c +++ b/firmware/target/coldfire/iriver/h100/power-h100.c | |||
@@ -127,37 +127,4 @@ void power_off(void) | |||
127 | yield(); | 127 | yield(); |
128 | } | 128 | } |
129 | 129 | ||
130 | #else | ||
131 | |||
132 | bool charger_inserted(void) | ||
133 | { | ||
134 | return false; | ||
135 | } | ||
136 | |||
137 | void charger_enable(bool on) | ||
138 | { | ||
139 | (void)on; | ||
140 | } | ||
141 | |||
142 | void power_off(void) | ||
143 | { | ||
144 | } | ||
145 | |||
146 | void ide_power_enable(bool on) | ||
147 | { | ||
148 | (void)on; | ||
149 | } | ||
150 | |||
151 | #ifdef HAVE_SPDIF_POWER | ||
152 | void spdif_power_enable(bool on) | ||
153 | { | ||
154 | (void)on; | ||
155 | } | ||
156 | |||
157 | bool spdif_powered(void) | ||
158 | { | ||
159 | return false; | ||
160 | } | ||
161 | #endif | ||
162 | |||
163 | #endif /* SIMULATOR */ | 130 | #endif /* SIMULATOR */ |