Use different read and write buffer sizes. Due to interaction between common transfer...
[kugel-rb.git] / firmware / export / config-c200v2.h
blobb47ba7361007b1e67324fc0dac1b1dbd4ad894c7
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 44
8 #define MODEL_NAME "Sandisk Sansa c200v2 series"
10 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
12 #if 0
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
19 #endif
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 */
32 #define HAVE_ALBUMART
34 /* define this to enable bitmap scaling */
35 #define HAVE_BMP_SCALING
37 /* define this to enable JPEG decoding */
38 #define HAVE_JPEG
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 */
50 #define HAVE_TAGCACHE
52 /* LCD dimensions */
53 #define LCD_WIDTH 132
54 #define LCD_HEIGHT 80
55 #define LCD_DEPTH 16 /* 65536 colours */
56 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
58 #ifndef BOOTLOADER
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 /* TODO: #define HAVE_LCD_SLEEP */
65 /* TODO: #define HAVE_LCD_SLEEP_SETTING <= optional */
66 #endif
67 /* define this if you can flip your LCD */
68 #define HAVE_LCD_FLIP
70 /* define this if you can invert the colours on your LCD */
71 /* TODO: #define HAVE_LCD_INVERT */
73 #if 0
74 /* Define this if your LCD can set contrast */
75 #define HAVE_LCD_CONTRAST
77 #define MIN_CONTRAST_SETTING 0
78 #define MAX_CONTRAST_SETTING 255
79 #define DEFAULT_CONTRAST_SETTING 85
80 #endif
81 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
83 #define CONFIG_KEYPAD SANSA_C200_PAD
85 /* define this if the target has volume keys which can be used in the lists */
86 #define HAVE_VOLUME_IN_LIST
88 /* Define this if you do software codec */
89 #define CONFIG_CODEC SWCODEC
91 /* There is no hardware tone control */
92 #define HAVE_SW_TONE_CONTROLS
94 /* The PP5024 has a built-in AustriaMicrosystems AS3514 */
95 #define HAVE_AS3514
97 /* define this if you have a real-time clock */
98 #ifndef BOOTLOADER
99 #define CONFIG_RTC RTC_AS3514
100 #endif
102 /* Define this if you have a software controlled poweroff */
103 #define HAVE_SW_POWEROFF
105 /* Some Sansa E200s seem to be FAT16 formatted */
106 #define HAVE_FAT16SUPPORT
108 /* The number of bytes reserved for loadable codecs */
109 #define CODEC_SIZE 0x100000
111 /* The number of bytes reserved for loadable plugins */
112 #define PLUGIN_BUFFER_SIZE 0x80000
114 #define AB_REPEAT_ENABLE 1
116 /* FM Tuner - suspected to be the SI4702 */
117 #define CONFIG_TUNER SI4700
118 /* #define HAVE_TUNER_PWR_CTRL */
120 /* Define this for LCD backlight available */
121 #define HAVE_BACKLIGHT
122 #define HAVE_BACKLIGHT_BRIGHTNESS
124 /* define this if you have a flash memory storage */
125 #define HAVE_FLASH_STORAGE
127 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
128 #define CONFIG_STORAGE STORAGE_SD
130 #define BATTERY_CAPACITY_DEFAULT 530 /* default battery capacity */
131 #define BATTERY_CAPACITY_MIN 530 /* min. capacity selectable */
132 #define BATTERY_CAPACITY_MAX 530 /* max. capacity selectable */
133 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
134 #define BATTERY_TYPES_COUNT 1 /* only one type */
136 /* Hardware controlled charging? FIXME */
137 #define CONFIG_CHARGING CHARGING_SIMPLE
139 /* define this if the unit can be powered or charged via USB */
140 #define HAVE_USB_POWER
142 /** Non-simulator section **/
143 #ifndef SIMULATOR
145 /* Define this if you have a PortalPlayer PP5024 */
146 #define CONFIG_CPU AS3525
148 /* Define this if you want to use the PP5024 i2c interface */
149 #define CONFIG_I2C I2C_AS3525
151 /* define this if the hardware can be powered off while charging */
152 /* Sansa can't be powered off while charging */
153 /* #define HAVE_POWEROFF_WHILE_CHARGING */
155 /* The start address index for ROM builds */
156 #define ROM_START 0x00000000
158 /* Define this to the CPU frequency */
159 #define CPU_FREQ 75000000
161 /* Type of LCD TODO: hopefully the same as the x5 but check this*/
162 #define CONFIG_LCD LCD_C200
164 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
165 only used when loading the old format rockbox.e200 file */
166 #define FIRMWARE_OFFSET_FILE_CRC 0x0
167 #define FIRMWARE_OFFSET_FILE_DATA 0x8
169 #define USB_HANDLED_BY_OF
171 #ifndef BOOTLOADER
172 #define HAVE_MULTIVOLUME
173 #define HAVE_HOTSWAP
174 #endif
176 /* USB On-the-go */
177 #define CONFIG_USBOTG USBOTG_ARC
179 /* enable these for the experimental usb stack */
180 //#define HAVE_USBSTACK
181 //#define USB_VENDOR_ID 0x0781
182 //#define USB_PRODUCT_ID 0x7450
183 /* Virtual LED (icon) */
184 #define CONFIG_LED LED_VIRTUAL
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 #endif /* SIMULATOR */
199 /** Port-specific settings **/
201 /* Main LCD backlight brightness range and defaults */
202 #define MIN_BRIGHTNESS_SETTING 1
203 #define MAX_BRIGHTNESS_SETTING 12
204 #define DEFAULT_BRIGHTNESS_SETTING 6
206 /* Default recording levels */
207 #define DEFAULT_REC_MIC_GAIN 23
208 #define DEFAULT_REC_LEFT_GAIN 23
209 #define DEFAULT_REC_RIGHT_GAIN 23