e200v1/c200v1: Implement limited samplerate switching. Rates 24kHz and below are...
[kugel-rb.git] / firmware / export / config / sansae200.h
blob501e9eac37a8a1d7db76dfc41f40b9b339af49bb
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_48 | SAMPR_CAP_44 | SAMPR_CAP_32)
12 /* define this if you have recording possibility */
13 #define HAVE_RECORDING
15 #define REC_SAMPR_CAPS (SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16)
16 #define REC_FREQ_DEFAULT REC_FREQ_22 /* Default is not 44.1kHz */
17 #define REC_SAMPR_DEFAULT SAMPR_22
19 /* because the samplerates don't match at each point, we must be able to
20 * tell PCM which set of rates to use. not needed if recording rates are
21 * a simple subset of playback rates and are equal values. */
22 #define CONFIG_SAMPR_TYPES
24 /* Define bitmask of input sources - recordable bitmask can be defined
25 explicitly if different */
26 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
28 /* define this if you have a bitmap LCD display */
29 #define HAVE_LCD_BITMAP
31 /* define this if you have a colour LCD */
32 #define HAVE_LCD_COLOR
34 /* define this if you want album art for this target */
35 #define HAVE_ALBUMART
37 /* define this to enable bitmap scaling */
38 #define HAVE_BMP_SCALING
40 /* define this to enable JPEG decoding */
41 #define HAVE_JPEG
43 /* define this if you have a light associated with the buttons */
44 #define HAVE_BUTTON_LIGHT
46 /* define this if you have access to the quickscreen */
47 #define HAVE_QUICKSCREEN
49 /* define this if you have access to the pitchscreen */
50 #define HAVE_PITCHSCREEN
52 /* define this if you would like tagcache to build on this target */
53 #define HAVE_TAGCACHE
55 /* LCD dimensions */
56 #define LCD_WIDTH 176
57 #define LCD_HEIGHT 220
58 #define LCD_DEPTH 16 /* 65536 colours */
59 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
61 #ifndef BOOTLOADER
62 /* define this if you have LCD enable function */
63 #define HAVE_LCD_ENABLE
65 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
66 should be defined as well. */
67 #define HAVE_LCD_SLEEP
68 #define HAVE_LCD_SLEEP_SETTING
69 #endif
71 /* define this if you can flip your LCD */
72 #define HAVE_LCD_FLIP
74 /* define this if you can invert the colours on your LCD */
75 #define HAVE_LCD_INVERT
77 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
79 #define CONFIG_KEYPAD SANSA_E200_PAD
81 /* Define this to enable morse code input */
82 #define HAVE_MORSE_INPUT
84 /* Define this if you do software codec */
85 #define CONFIG_CODEC SWCODEC
86 /* There is no hardware tone control */
87 #define HAVE_SW_TONE_CONTROLS
88 /* The PP5024 has a built-in AustriaMicrosystems AS3514 */
89 #define HAVE_AS3514
91 /* define this if you have a real-time clock */
92 #ifndef BOOTLOADER
93 #define CONFIG_RTC RTC_AS3514
94 #endif
96 /* Define this if you have a software controlled poweroff */
97 #define HAVE_SW_POWEROFF
99 /* Some Sansa E200s seem to be FAT16 formatted */
100 #define HAVE_FAT16SUPPORT
102 /* The number of bytes reserved for loadable codecs */
103 #define CODEC_SIZE 0x100000
105 /* The number of bytes reserved for loadable plugins */
106 #define PLUGIN_BUFFER_SIZE 0x80000
108 #define AB_REPEAT_ENABLE 1
110 /* FM Tuner */
111 #define CONFIG_TUNER LV24020LP
112 #define HAVE_TUNER_PWR_CTRL
114 /* Define this for LCD backlight available */
115 #define HAVE_BACKLIGHT
116 #define HAVE_BACKLIGHT_BRIGHTNESS
118 /* Which backlight fading type? */
119 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
121 /* define this if the unit uses a scrollwheel for navigation */
122 #define HAVE_SCROLLWHEEL
123 /* define to activate advanced wheel acceleration code */
124 #define HAVE_WHEEL_ACCELERATION
125 /* define from which rotation speed [degree/sec] on the acceleration starts */
126 #define WHEEL_ACCEL_START 540
127 /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
128 #define WHEEL_ACCELERATION 1
130 /* define this if you have a flash memory storage */
131 #define HAVE_FLASH_STORAGE
133 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
134 #define CONFIG_STORAGE STORAGE_SD
136 #define BATTERY_CAPACITY_DEFAULT 750 /* default battery capacity */
137 #define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */
138 #define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */
139 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
140 #define BATTERY_TYPES_COUNT 1 /* only one type */
142 /* Charging implemented in a target-specific algorithm */
143 #define CONFIG_CHARGING CHARGING_TARGET
144 #define HAVE_POWEROFF_WHILE_CHARGING
146 /* define current usage levels */
147 #define CURRENT_NORMAL 30 /* Toni's measurements in Nov 2008 */
148 #define CURRENT_BACKLIGHT 40 /* Screen is about 20, blue LEDs are another 20, so 40 if both */
149 #define CURRENT_RECORD 30 /* flash player, so this is just unboosted current*/
151 /* define this if the unit can be powered or charged via USB */
152 #define HAVE_USB_POWER
154 /* Define this if you have a PortalPlayer PP5024 */
155 #define CONFIG_CPU PP5024
157 /* Define this if you want to use the PP5024 i2c interface */
158 #define CONFIG_I2C I2C_PP5024
160 /* define this if the hardware can be powered off while charging */
161 /* Sansa can't be powered off while charging */
162 /* #define HAVE_POWEROFF_WHILE_CHARGING */
164 /* The start address index for ROM builds */
165 #define ROM_START 0x00000000
167 /* Define this to the CPU frequency */
168 #define CPU_FREQ 75000000
170 /* Type of LCD TODO: hopefully the same as the x5 but check this*/
171 #define CONFIG_LCD LCD_X5
173 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
174 only used when loading the old format rockbox.e200 file */
175 #define FIRMWARE_OFFSET_FILE_CRC 0x0
176 #define FIRMWARE_OFFSET_FILE_DATA 0x8
178 #ifndef BOOTLOADER
179 #define HAVE_MULTIDRIVE
180 #define NUM_DRIVES 2
181 #define HAVE_HOTSWAP
182 #endif
184 /* USB On-the-go */
185 #define CONFIG_USBOTG USBOTG_ARC
187 /* enable these for the experimental usb stack */
188 #define HAVE_USBSTACK
189 #define USE_ROCKBOX_USB
190 #define USB_VENDOR_ID 0x0781
191 #define USB_PRODUCT_ID 0x7421
192 #define HAVE_USB_HID_MOUSE
194 /* Define this if you have adjustable CPU frequency */
195 #define HAVE_ADJUSTABLE_CPU_FREQ
197 #define MI4_FORMAT
198 #define BOOTFILE_EXT "mi4"
199 #define BOOTFILE "rockbox." BOOTFILE_EXT
200 #define BOOTDIR "/.rockbox"
202 #define ICODE_ATTR_TREMOR_NOT_MDCT
204 #define INCLUDE_TIMEOUT_API
206 /** Port-specific settings **/
208 /* Main LCD backlight brightness range and defaults */
209 #define MIN_BRIGHTNESS_SETTING 1
210 #define MAX_BRIGHTNESS_SETTING 12
211 #define DEFAULT_BRIGHTNESS_SETTING 6
213 /* Default recording levels */
214 #define DEFAULT_REC_MIC_GAIN 23
215 #define DEFAULT_REC_LEFT_GAIN 23
216 #define DEFAULT_REC_RIGHT_GAIN 23
218 #ifdef E200R_INSTALLER
219 #define IRAMORIG 0x40004000
220 #endif
222 /* Define this if a programmable hotkey is mapped */
223 #define HAVE_HOTKEY