Add very rough battery life estimateion for iPod minis. Also, update Sansav1 estimat...
[kugel-rb.git] / firmware / export / config-e200.h
blob602a84707cab6d7490ea85e19631efdb6bde65ec
1 /*
2 * This config file is for the Sandisk Sansa e200
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 16
8 #define MODEL_NAME "Sandisk Sansa e200 series"
10 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
12 /* define this if you have recording possibility */
13 #define HAVE_RECORDING
15 #define REC_SAMPR_CAPS (SAMPR_CAP_22)
16 #define REC_FREQ_DEFAULT REC_FREQ_22 /* Default is not 44.1kHz */
17 #define REC_SAMPR_DEFAULT SAMPR_22
19 /* Define bitmask of input sources - recordable bitmask can be defined
20 explicitly if different */
21 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
23 /* define this if you have a bitmap LCD display */
24 #define HAVE_LCD_BITMAP
26 /* define this if you have a colour LCD */
27 #define HAVE_LCD_COLOR
29 /* define this if you want album art for this target */
30 #define HAVE_ALBUMART
32 /* define this if you have a light associated with the buttons */
33 #define HAVE_BUTTON_LIGHT
35 /* define this if you have access to the quickscreen */
36 #define HAVE_QUICKSCREEN
38 /* define this if you have access to the pitchscreen */
39 #define HAVE_PITCHSCREEN
41 /* define this if you would like tagcache to build on this target */
42 #define HAVE_TAGCACHE
44 /* LCD dimensions */
45 #define LCD_WIDTH 176
46 #define LCD_HEIGHT 220
47 #define LCD_DEPTH 16 /* 65536 colours */
48 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
50 #ifndef BOOTLOADER
51 /* define this if you have LCD enable function */
52 #define HAVE_LCD_ENABLE
54 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
55 should be defined as well. */
56 #define HAVE_LCD_SLEEP
57 #define HAVE_LCD_SLEEP_SETTING
58 #endif
60 /* define this if you can flip your LCD */
61 #define HAVE_LCD_FLIP
63 /* define this if you can invert the colours on your LCD */
64 #define HAVE_LCD_INVERT
66 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
68 #define CONFIG_KEYPAD SANSA_E200_PAD
70 /* Define this if you do software codec */
71 #define CONFIG_CODEC SWCODEC
72 /* There is no hardware tone control */
73 #define HAVE_SW_TONE_CONTROLS
74 /* The PP5024 has a built-in AustriaMicrosystems AS3514 */
75 #define HAVE_AS3514
77 /* define this if you have a real-time clock */
78 #ifndef BOOTLOADER
79 #define CONFIG_RTC RTC_AS3514
80 #endif
82 /* Define this if you have a software controlled poweroff */
83 #define HAVE_SW_POWEROFF
85 /* Some Sansa E200s seem to be FAT16 formatted */
86 #define HAVE_FAT16SUPPORT
88 /* The number of bytes reserved for loadable codecs */
89 #define CODEC_SIZE 0x100000
91 /* The number of bytes reserved for loadable plugins */
92 #define PLUGIN_BUFFER_SIZE 0x80000
94 #define AB_REPEAT_ENABLE 1
96 /* FM Tuner */
97 #define CONFIG_TUNER LV24020LP
98 #define HAVE_TUNER_PWR_CTRL
100 /* Define this for LCD backlight available */
101 #define HAVE_BACKLIGHT
102 #define HAVE_BACKLIGHT_BRIGHTNESS
104 /* define this if the unit uses a scrollwheel for navigation */
105 #define HAVE_SCROLLWHEEL
106 /* define from which rotation speed [degree/sec] on the acceleration starts */
107 #define WHEEL_ACCEL_START 540
108 /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
109 #define WHEEL_ACCELERATION 1
111 /* define this if you have a flash memory storage */
112 #define HAVE_FLASH_STORAGE
114 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
115 #define CONFIG_STORAGE STORAGE_SD
117 #define BATTERY_CAPACITY_DEFAULT 750 /* default battery capacity */
118 #define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */
119 #define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */
120 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
121 #define BATTERY_TYPES_COUNT 1 /* only one type */
123 /* Hardware controlled charging? FIXME */
124 #define CONFIG_CHARGING CHARGING_SIMPLE
126 /* define current usage levels */
127 #define CURRENT_NORMAL 30 /* Toni's measurements in Nov 2008 */
128 #define CURRENT_BACKLIGHT 40 /* Screen is about 20, blue LEDs are another 20, so 40 if both */
129 #define CURRENT_RECORD 30 /* flash player, so this is just unboosted current*/
131 /* define this if the unit can be powered or charged via USB */
132 #define HAVE_USB_POWER
134 /** Non-simulator section **/
135 #ifndef SIMULATOR
137 /* define this if the backlight thread is used for fade, not for sim, needs
138 * HAVE_BACKLIGHT_BRIGHTNESS */
139 #ifndef BOOTLOADER
140 #define USE_BACKLIGHT_SW_FADING
141 #endif
143 /* Define this if you have a PortalPlayer PP5024 */
144 #define CONFIG_CPU PP5024
146 /* Define this if you want to use the PP5024 i2c interface */
147 #define CONFIG_I2C I2C_PP5024
149 /* define this if the hardware can be powered off while charging */
150 /* Sansa can't be powered off while charging */
151 /* #define HAVE_POWEROFF_WHILE_CHARGING */
153 /* The start address index for ROM builds */
154 #define ROM_START 0x00000000
156 /* Define this to the CPU frequency */
157 #define CPU_FREQ 75000000
159 /* Type of LCD TODO: hopefully the same as the x5 but check this*/
160 #define CONFIG_LCD LCD_X5
162 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
163 only used when loading the old format rockbox.e200 file */
164 #define FIRMWARE_OFFSET_FILE_CRC 0x0
165 #define FIRMWARE_OFFSET_FILE_DATA 0x8
167 #ifndef BOOTLOADER
168 #define HAVE_MULTIVOLUME
169 #define HAVE_HOTSWAP
170 #endif
172 /* #define USB_IPODSTYLE */
174 /* USB On-the-go */
175 #define CONFIG_USBOTG USBOTG_ARC
177 /* enable these for the experimental usb stack */
178 #define HAVE_USBSTACK
179 #define USB_VENDOR_ID 0x0781
180 #define USB_PRODUCT_ID 0x7421
182 /* Virtual LED (icon) */
183 #define CONFIG_LED LED_VIRTUAL
185 /* Define this if you have adjustable CPU frequency */
186 #define HAVE_ADJUSTABLE_CPU_FREQ
188 #define MI4_FORMAT
189 #define BOOTFILE_EXT "mi4"
190 #define BOOTFILE "rockbox." BOOTFILE_EXT
191 #define OLD_BOOTFILE "rockbox.e200"
192 #define BOOTDIR "/.rockbox"
194 #define ICODE_ATTR_TREMOR_NOT_MDCT
196 #define INCLUDE_TIMEOUT_API
198 #endif /* SIMULATOR */
200 /** Port-specific settings **/
202 /* Main LCD backlight brightness range and defaults */
203 #define MIN_BRIGHTNESS_SETTING 1
204 #define MAX_BRIGHTNESS_SETTING 12
205 #define DEFAULT_BRIGHTNESS_SETTING 6
207 /* Default recording levels */
208 #define DEFAULT_REC_MIC_GAIN 23
209 #define DEFAULT_REC_LEFT_GAIN 23
210 #define DEFAULT_REC_RIGHT_GAIN 23
212 #ifdef E200R_INSTALLER
213 #define IRAMORIG 0x40004000
214 #endif