2 * This config file is for the Sandisk Sansa e200
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 20
8 #define MODEL_NAME "Sandisk Sansa c200 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 */
32 /* define this to enable bitmap scaling */
33 #define HAVE_BMP_SCALING
35 /* define this to enable JPEG decoding */
38 /* define this if you have a light associated with the buttons */
39 #define HAVE_BUTTON_LIGHT
41 /* define this if you have access to the quickscreen */
42 #define HAVE_QUICKSCREEN
44 /* define this if you have access to the pitchscreen */
45 #define HAVE_PITCHSCREEN
47 /* define this if you would like tagcache to build on this target */
53 #define LCD_DEPTH 16 /* 65536 colours */
54 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
56 /* define this if you have LCD enable function */
57 #define HAVE_LCD_ENABLE
59 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
60 should be defined as well. */
61 /* TODO: #define HAVE_LCD_SLEEP */
62 /* TODO: #define HAVE_LCD_SLEEP_SETTING <= optional */
64 /* define this if you can flip your LCD */
67 /* define this if you can invert the colours on your LCD */
68 /* TODO: #define HAVE_LCD_INVERT */
70 /* Define this if your LCD can set contrast */
71 #define HAVE_LCD_CONTRAST
73 #define MIN_CONTRAST_SETTING 0
74 #define MAX_CONTRAST_SETTING 255
75 #define DEFAULT_CONTRAST_SETTING 85
77 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
79 #define CONFIG_KEYPAD SANSA_C200_PAD
81 /* define this if the target has volume keys which can be used in the lists */
82 #define HAVE_VOLUME_IN_LIST
84 /* Define this if you do software codec */
85 #define CONFIG_CODEC SWCODEC
87 /* There is no hardware tone control */
88 #define HAVE_SW_TONE_CONTROLS
90 /* The PP5024 has a built-in AustriaMicrosystems AS3514 */
93 /* define this if you have a real-time clock */
95 #define CONFIG_RTC RTC_AS3514
98 /* Define this if you have a software controlled poweroff */
99 #define HAVE_SW_POWEROFF
101 /* Some Sansa E200s seem to be FAT16 formatted */
102 #define HAVE_FAT16SUPPORT
104 /* The number of bytes reserved for loadable codecs */
105 #define CODEC_SIZE 0x100000
107 /* The number of bytes reserved for loadable plugins */
108 #define PLUGIN_BUFFER_SIZE 0x80000
110 #define AB_REPEAT_ENABLE 1
113 #define CONFIG_TUNER LV24020LP
114 #define HAVE_TUNER_PWR_CTRL
116 /* Define this for LCD backlight available */
117 #define HAVE_BACKLIGHT
118 #define HAVE_BACKLIGHT_BRIGHTNESS
120 /* Main LCD backlight brightness range and defaults */
121 #define MIN_BRIGHTNESS_SETTING 1
122 #define MAX_BRIGHTNESS_SETTING 12
123 #define DEFAULT_BRIGHTNESS_SETTING 6
125 /* Which backlight fading type? */
126 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
128 /* define this if you have a flash memory storage */
129 #define HAVE_FLASH_STORAGE
131 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
132 #define CONFIG_STORAGE STORAGE_SD
134 #define BATTERY_CAPACITY_DEFAULT 530 /* default battery capacity */
135 #define BATTERY_CAPACITY_MIN 530 /* min. capacity selectable */
136 #define BATTERY_CAPACITY_MAX 530 /* max. capacity selectable */
137 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
138 #define BATTERY_TYPES_COUNT 1 /* only one type */
140 /* Charging implemented in a target-specific algorithm */
141 #define CONFIG_CHARGING CHARGING_TARGET
142 #define HAVE_POWEROFF_WHILE_CHARGING
144 /* define this if the unit can be powered or charged via USB */
145 #define HAVE_USB_POWER
147 /* define current usage levels */
148 #define CURRENT_NORMAL 30 /* Should be nearly identical to E200 */
149 #define CURRENT_BACKLIGHT 40 /* Screen is about 20, blue LEDs are another 20, so 40 if both */
150 #define CURRENT_RECORD 30 /* flash player, so this is just unboosted current*/
152 /** Non-simulator section **/
155 /* Define this if you have a PortalPlayer PP5024 */
156 #define CONFIG_CPU PP5022
158 /* Define this if you want to use the PP5024 i2c interface */
159 #define CONFIG_I2C I2C_PP5024
161 /* define this if the hardware can be powered off while charging */
162 /* Sansa can't be powered off while charging */
163 /* #define HAVE_POWEROFF_WHILE_CHARGING */
165 /* The start address index for ROM builds */
166 #define ROM_START 0x00000000
168 /* Define this to the CPU frequency */
169 #define CPU_FREQ 75000000
171 /* Type of LCD TODO: hopefully the same as the x5 but check this*/
172 #define CONFIG_LCD LCD_C200
174 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
175 only used when loading the old format rockbox.e200 file */
176 #define FIRMWARE_OFFSET_FILE_CRC 0x0
177 #define FIRMWARE_OFFSET_FILE_DATA 0x8
180 #define HAVE_MULTIDRIVE
186 #define CONFIG_USBOTG USBOTG_ARC
188 /* enable these for the experimental usb stack */
189 #define HAVE_USBSTACK
190 #define USE_ROCKBOX_USB
191 #define USB_VENDOR_ID 0x0781
192 #define USB_PRODUCT_ID 0x7451
194 /* Virtual LED (icon) */
195 #define CONFIG_LED LED_VIRTUAL
197 /* Define this if you have adjustable CPU frequency */
198 #define HAVE_ADJUSTABLE_CPU_FREQ
201 #define BOOTFILE_EXT "mi4"
202 #define BOOTFILE "rockbox." BOOTFILE_EXT
203 #define BOOTDIR "/.rockbox"
205 #define ICODE_ATTR_TREMOR_NOT_MDCT
207 #define INCLUDE_TIMEOUT_API
209 #endif /* SIMULATOR */
211 /* Default recording levels */
212 #define DEFAULT_REC_MIC_GAIN 23
213 #define DEFAULT_REC_LEFT_GAIN 23
214 #define DEFAULT_REC_RIGHT_GAIN 23