2 * This config file is for the Sandisk Sansa c200v2
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"
9 #define FIRMWARE_OFFSET_FILE_DATA 8
10 #define FIRMWARE_OFFSET_FILE_CRC 0
12 #define HW_SAMPR_CAPS SAMPR_CAP_ALL
14 /* define this if you have recording possibility */
15 #define HAVE_RECORDING
17 #define REC_SAMPR_CAPS SAMPR_CAP_ALL
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 #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 127
75 #define DEFAULT_CONTRAST_SETTING 85
77 #if 0 /* not enough room for a 16 bits framebuffer */
78 #define IRAM_LCDFRAMEBUFFER IDATA_ATTR /* put the lcd frame buffer in IRAM */
81 #define CONFIG_KEYPAD SANSA_C200_PAD
83 /* define this if the target has volume keys which can be used in the lists */
84 #define HAVE_VOLUME_IN_LIST
86 /* Define this if you do software codec */
87 #define CONFIG_CODEC SWCODEC
89 /* There is no hardware tone control */
90 #define HAVE_SW_TONE_CONTROLS
92 /* The AS3525 has a built-in AS3514 (or a newer version) */
95 /* define this if you have a real-time clock */
97 #define CONFIG_RTC RTC_AS3514
100 /* Define this if you have a software controlled poweroff */
101 #define HAVE_SW_POWEROFF
103 /* Some Sansa E200s seem to be FAT16 formatted */
104 #define HAVE_FAT16SUPPORT
106 /* The number of bytes reserved for loadable codecs */
107 #define CODEC_SIZE 0x48000
109 /* The number of bytes reserved for loadable plugins */
110 #define PLUGIN_BUFFER_SIZE 0x14000
112 #define AB_REPEAT_ENABLE
114 /* FM Tuner - suspected to be the SI4702 */
115 #define CONFIG_TUNER SI4700
116 /* #define HAVE_TUNER_PWR_CTRL */
118 /* Define this for LCD backlight available */
119 #define HAVE_BACKLIGHT
120 #define HAVE_BACKLIGHT_BRIGHTNESS
122 /* define this if you have a flash memory storage */
123 #define HAVE_FLASH_STORAGE
125 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
126 #define CONFIG_STORAGE STORAGE_SD
128 #define BATTERY_CAPACITY_DEFAULT 530 /* default battery capacity */
129 #define BATTERY_CAPACITY_MIN 530 /* min. capacity selectable */
130 #define BATTERY_CAPACITY_MAX 530 /* max. capacity selectable */
131 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
132 #define BATTERY_TYPES_COUNT 1 /* only one type */
134 /* Charging implemented in a target-specific algorithm */
135 #define CONFIG_CHARGING CHARGING_TARGET
137 /* define this if the unit can be powered or charged via USB */
138 #define HAVE_USB_POWER
140 /* Define this if you have a PortalPlayer PP5024 */
141 #define CONFIG_CPU AS3525
143 /* Define how much SD sectors are reserved for OF */
144 #define AMS_OF_SIZE 0x5000
146 /* Define this if you want to use the PP5024 i2c interface */
147 #define CONFIG_I2C I2C_AS3525
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 #define CURRENT_NORMAL 50
154 #define CURRENT_BACKLIGHT 25
155 #define CURRENT_RECORD CURRENT_NORMAL
157 /* maximum charging current */
158 #define CURRENT_MAX_CHG 200
160 /* The start address index for ROM builds */
161 #define ROM_START 0x00000000
163 /* Define this to the CPU frequency */
164 #define CPU_FREQ 248000000
166 /* Type of LCD : Samsung S6B33B2 */
167 #define CONFIG_LCD LCD_C200
170 #define HAVE_MULTIDRIVE
173 #endif /* BOOTLOADER */
175 #define CONFIG_USBOTG USBOTG_AS3525
177 /* enable these for the experimental usb stack */
178 #define HAVE_USBSTACK
179 //#define USB_HANDLED_BY_OF
180 #define USE_ROCKBOX_USB
181 //#define USB_ENABLE_SERIAL
182 #define USB_VENDOR_ID 0x0781
183 #define USB_PRODUCT_ID 0x7452
184 #define HAVE_USB_HID_MOUSE
186 /* Define this if you have adjustable CPU frequency */
187 #define HAVE_ADJUSTABLE_CPU_FREQ
189 #define BOOTFILE_EXT "sansa"
190 #define BOOTFILE "rockbox." BOOTFILE_EXT
191 #define BOOTDIR "/.rockbox"
193 #define ICODE_ATTR_TREMOR_NOT_MDCT
195 #define INCLUDE_TIMEOUT_API
197 /** Port-specific settings **/
199 /* Main LCD backlight brightness range and defaults */
200 #define MIN_BRIGHTNESS_SETTING 1
201 #define MAX_BRIGHTNESS_SETTING 12
202 #define DEFAULT_BRIGHTNESS_SETTING 6
204 /* Default recording levels */
205 #define DEFAULT_REC_MIC_GAIN 23
206 #define DEFAULT_REC_LEFT_GAIN 23
207 #define DEFAULT_REC_RIGHT_GAIN 23
209 /* Define this if a programmable hotkey is mapped */