2 * This config file is for the Sandisk Sansa e200v2
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 41
8 #define MODEL_NAME "Sandisk Sansa e200v2 series"
10 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
13 /* define this if you have recording possibility */
14 #define HAVE_RECORDING
16 #define REC_SAMPR_CAPS (SAMPR_CAP_22)
17 #define REC_FREQ_DEFAULT REC_FREQ_22 /* Default is not 44.1kHz */
18 #define REC_SAMPR_DEFAULT SAMPR_22
21 /* Define bitmask of input sources - recordable bitmask can be defined
22 explicitly if different */
23 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
25 /* define this if you have a bitmap LCD display */
26 #define HAVE_LCD_BITMAP
28 /* define this if you have a colour LCD */
29 #define HAVE_LCD_COLOR
31 /* define this if you want album art for this target */
34 /* define this to enable bitmap scaling */
35 #define HAVE_BMP_SCALING
37 /* define this to enable JPEG decoding */
40 /* define this if you have a light associated with the buttons */
41 #define HAVE_BUTTON_LIGHT
43 /* define this if you have access to the quickscreen */
44 #define HAVE_QUICKSCREEN
46 /* define this if you have access to the pitchscreen */
47 #define HAVE_PITCHSCREEN
49 /* define this if you would like tagcache to build on this target */
54 #define LCD_HEIGHT 220
55 #define LCD_DEPTH 16 /* 65536 colours */
56 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
59 /* define this if you have LCD enable function */
60 #define HAVE_LCD_ENABLE
62 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
63 should be defined as well.
64 #define HAVE_LCD_SLEEP
65 #define HAVE_LCD_SLEEP_SETTING
69 /* define this if you can flip your LCD */
72 /* define this if you can invert the colours on your LCD */
73 #define HAVE_LCD_INVERT
75 /* put the lcd frame buffer in IRAM */
76 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR
78 #define CONFIG_KEYPAD SANSA_E200_PAD
80 /* Define this if you do software codec */
81 #define CONFIG_CODEC SWCODEC
83 /* There is no hardware tone control */
84 #define HAVE_SW_TONE_CONTROLS
86 /* We're working on the assumption that the AS3525 has something
87 similar to the AS3514 for audio codec etc */
90 /* define this if you have a real-time clock */
92 #define CONFIG_RTC RTC_AS3514
95 /* Define this if you have a software controlled poweroff */
96 #define HAVE_SW_POWEROFF
98 /* Some Sansa E200s seem to be FAT16 formatted */
99 #define HAVE_FAT16SUPPORT
101 /* The number of bytes reserved for loadable codecs */
102 #define CODEC_SIZE 0x100000
104 /* The number of bytes reserved for loadable plugins */
105 #define PLUGIN_BUFFER_SIZE 0x80000
107 #define AB_REPEAT_ENABLE 1
109 /* FM Tuner - suspected to be the SI4702 */
110 #define CONFIG_TUNER SI4700
111 /* #define HAVE_TUNER_PWR_CTRL */
113 /* Define this for LCD backlight available */
114 #define HAVE_BACKLIGHT
115 #define HAVE_BACKLIGHT_BRIGHTNESS
117 /* Main LCD backlight brightness range and defaults */
118 #define MIN_BRIGHTNESS_SETTING 1
119 #define MAX_BRIGHTNESS_SETTING 12
120 #define DEFAULT_BRIGHTNESS_SETTING 6
122 /* Which backlight fading type? */
123 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
125 /* define this if the unit uses a scrollwheel for navigation */
126 #define HAVE_SCROLLWHEEL
127 /* define to activate advanced wheel acceleration code */
128 #define HAVE_WHEEL_ACCELERATION
129 /* define from which rotation speed [degree/sec] on the acceleration starts */
130 #define WHEEL_ACCEL_START 540
131 /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
132 #define WHEEL_ACCELERATION 1
134 /* define this if you have a flash memory storage */
135 #define HAVE_FLASH_STORAGE
137 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
138 #define CONFIG_STORAGE STORAGE_SD
140 #define BATTERY_CAPACITY_DEFAULT 730 /* default battery capacity */
141 #define BATTERY_CAPACITY_MIN 730 /* min. capacity selectable */
142 #define BATTERY_CAPACITY_MAX 730 /* max. capacity selectable */
143 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
144 #define BATTERY_TYPES_COUNT 1 /* only one type */
146 /* Charging implemented in a target-specific algorithm */
147 #define CONFIG_CHARGING CHARGING_TARGET
149 /* define this if the unit can be powered or charged via USB */
150 #define HAVE_USB_POWER
152 /** Non-simulator section **/
155 /* Define this if you have an AMS AS3525*/
156 #define CONFIG_CPU AS3525
158 /* Define how much SD sectors are reserved for OF */
159 #define AMS_OF_SIZE 0xF000
161 /* Define this if you want to use the AS2525 i2c interface */
162 #define CONFIG_I2C I2C_AS3525
164 /* define this if the hardware can be powered off while charging */
165 /* Sansa can't be powered off while charging */
166 /* #define HAVE_POWEROFF_WHILE_CHARGING */
168 /* The start address index for ROM builds */
169 #define ROM_START 0x00000000
171 /* Define this to the CPU frequency */
172 #define CPU_FREQ 75000000
174 /* Type of LCD TODO: hopefully the same as the x5 but check this*/
175 #define CONFIG_LCD LCD_X5
177 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
178 only used when loading the old format rockbox.e200 file */
179 #define FIRMWARE_OFFSET_FILE_CRC 0x0
180 #define FIRMWARE_OFFSET_FILE_DATA 0x8
183 #define HAVE_MULTIDRIVE
188 #define USB_HANDLED_BY_OF
191 #define CONFIG_USBOTG USBOTG_AS3525
193 /* enable these for the experimental usb stack */
194 #define HAVE_USBSTACK
195 #define USB_VENDOR_ID 0x0781
196 #define USB_PRODUCT_ID 0x7423
198 /* Virtual LED (icon) */
199 #define CONFIG_LED LED_VIRTUAL
201 /* Define this if you have adjustable CPU frequency */
202 #define HAVE_ADJUSTABLE_CPU_FREQ
204 #define BOOTFILE_EXT "sansa"
205 #define BOOTFILE "rockbox." BOOTFILE_EXT
206 #define BOOTDIR "/.rockbox"
208 #define ICODE_ATTR_TREMOR_NOT_MDCT
210 #define INCLUDE_TIMEOUT_API
212 #endif /* SIMULATOR */
214 /* Default recording levels */
215 #define DEFAULT_REC_MIC_GAIN 23
216 #define DEFAULT_REC_LEFT_GAIN 23
217 #define DEFAULT_REC_RIGHT_GAIN 23