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 44
8 #define MODEL_NAME "Sandisk Sansa c200v2 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
20 /* Define bitmask of input sources - recordable bitmask can be defined
21 explicitly if different */
22 #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 if you have a light associated with the buttons */
35 #define HAVE_BUTTON_LIGHT
37 /* define this if you have access to the quickscreen */
38 #define HAVE_QUICKSCREEN
40 /* define this if you have access to the pitchscreen */
41 #define HAVE_PITCHSCREEN
43 /* define this if you would like tagcache to build on this target */
49 #define LCD_DEPTH 16 /* 65536 colours */
50 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
53 /* define this if you have LCD enable function */
54 #define HAVE_LCD_ENABLE
56 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
57 should be defined as well. */
58 /* TODO: #define HAVE_LCD_SLEEP */
59 /* TODO: #define HAVE_LCD_SLEEP_SETTING <= optional */
61 /* define this if you can flip your LCD */
64 /* define this if you can invert the colours on your LCD */
65 /* TODO: #define HAVE_LCD_INVERT */
68 /* Define this if your LCD can set contrast */
69 #define HAVE_LCD_CONTRAST
71 #define MIN_CONTRAST_SETTING 0
72 #define MAX_CONTRAST_SETTING 255
73 #define DEFAULT_CONTRAST_SETTING 85
75 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
77 #define CONFIG_KEYPAD SANSA_C200_PAD
79 /* define this if the target has volume keys which can be used in the lists */
80 #define HAVE_VOLUME_IN_LIST
82 /* Define this if you do software codec */
83 #define CONFIG_CODEC SWCODEC
85 /* There is no hardware tone control */
86 #define HAVE_SW_TONE_CONTROLS
88 /* The PP5024 has a built-in AustriaMicrosystems AS3514 */
91 /* define this if you have a real-time clock */
93 #define CONFIG_RTC RTC_AS3514
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 - suspected to be the SI4702 */
111 //#define CONFIG_TUNER SI4700
112 /* #define HAVE_TUNER_PWR_CTRL */
114 /* Define this for LCD backlight available */
115 #define HAVE_BACKLIGHT
116 #define HAVE_BACKLIGHT_BRIGHTNESS
118 /* define this if you have a flash memory storage */
119 #define HAVE_FLASH_STORAGE
121 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
122 #define CONFIG_STORAGE STORAGE_SD
124 #define BATTERY_CAPACITY_DEFAULT 530 /* default battery capacity */
125 #define BATTERY_CAPACITY_MIN 530 /* min. capacity selectable */
126 #define BATTERY_CAPACITY_MAX 530 /* max. capacity selectable */
127 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
128 #define BATTERY_TYPES_COUNT 1 /* only one type */
130 /* Hardware controlled charging? FIXME */
131 #define CONFIG_CHARGING CHARGING_SIMPLE
133 /* define this if the unit can be powered or charged via USB */
134 #define HAVE_USB_POWER
136 /** Non-simulator section **/
139 /* Define this if you have a PortalPlayer PP5024 */
140 #define CONFIG_CPU AS3525
142 /* Define this if you want to use the PP5024 i2c interface */
143 #define CONFIG_I2C I2C_AS3525
145 /* define this if the hardware can be powered off while charging */
146 /* Sansa can't be powered off while charging */
147 /* #define HAVE_POWEROFF_WHILE_CHARGING */
149 /* The start address index for ROM builds */
150 #define ROM_START 0x00000000
152 /* Define this to the CPU frequency */
153 #define CPU_FREQ 75000000
155 /* Type of LCD TODO: hopefully the same as the x5 but check this*/
156 #define CONFIG_LCD LCD_C200
158 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
159 only used when loading the old format rockbox.e200 file */
160 #define FIRMWARE_OFFSET_FILE_CRC 0x0
161 #define FIRMWARE_OFFSET_FILE_DATA 0x8
163 #define USB_HANDLED_BY_OF
166 #define HAVE_MULTIVOLUME
171 #define CONFIG_USBOTG USBOTG_ARC
173 /* enable these for the experimental usb stack */
174 //#define HAVE_USBSTACK
175 //#define USB_VENDOR_ID 0x0781
176 //#define USB_PRODUCT_ID 0x7450
177 /* Virtual LED (icon) */
178 #define CONFIG_LED LED_VIRTUAL
180 /* Define this if you have adjustable CPU frequency */
181 #define HAVE_ADJUSTABLE_CPU_FREQ
183 #define BOOTFILE_EXT "sansa"
184 #define BOOTFILE "rockbox." BOOTFILE_EXT
185 #define BOOTDIR "/.rockbox"
187 #define ICODE_ATTR_TREMOR_NOT_MDCT
189 #define INCLUDE_TIMEOUT_API
191 #endif /* SIMULATOR */
193 /** Port-specific settings **/
195 /* Main LCD backlight brightness range and defaults */
196 #define MIN_BRIGHTNESS_SETTING 1
197 #define MAX_BRIGHTNESS_SETTING 12
198 #define DEFAULT_BRIGHTNESS_SETTING 6
200 /* Default recording levels */
201 #define DEFAULT_REC_MIC_GAIN 23
202 #define DEFAULT_REC_LEFT_GAIN 23
203 #define DEFAULT_REC_RIGHT_GAIN 23