Should clear up rest of red. Add a required #define in the config for c200. Fix up...
[kugel-rb.git] / firmware / export / config / sansac200.h
blob3240af43f240ea494d6dfd2915d8bf68d8a9e08a
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 20
8 #define MODEL_NAME "Sandisk Sansa c200 series"
10 #define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32)
12 /* define this if you have recording possibility */
13 #define HAVE_RECORDING
15 #define REC_SAMPR_CAPS (SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16)
16 #define REC_FREQ_DEFAULT REC_FREQ_22 /* Default is not 44.1kHz */
17 #define REC_SAMPR_DEFAULT SAMPR_22
19 /* because the samplerates don't match at each point, we must be able to
20 * tell PCM which set of rates to use. not needed if recording rates are
21 * a simple subset of playback rates and are equal values. */
22 #define CONFIG_SAMPR_TYPES
24 /* Define bitmask of input sources - recordable bitmask can be defined
25 explicitly if different */
26 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
28 /* define this if you have a bitmap LCD display */
29 #define HAVE_LCD_BITMAP
31 /* define this if you have a colour LCD */
32 #define HAVE_LCD_COLOR
34 /* define this if you want album art for this target */
35 #define HAVE_ALBUMART
37 /* define this to enable bitmap scaling */
38 #define HAVE_BMP_SCALING
40 /* define this to enable JPEG decoding */
41 #define HAVE_JPEG
43 /* define this if you have a light associated with the buttons */
44 #define HAVE_BUTTON_LIGHT
46 /* define this if you have access to the quickscreen */
47 #define HAVE_QUICKSCREEN
49 /* define this if you have access to the pitchscreen */
50 #define HAVE_PITCHSCREEN
52 /* define this if you would like tagcache to build on this target */
53 #define HAVE_TAGCACHE
55 /* LCD dimensions */
56 #define LCD_WIDTH 132
57 #define LCD_HEIGHT 80
58 #define LCD_DEPTH 16 /* 65536 colours */
59 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
61 /* define this if you have LCD enable function */
62 #define HAVE_LCD_ENABLE
64 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
65 should be defined as well. */
66 /* TODO: #define HAVE_LCD_SLEEP */
67 /* TODO: #define HAVE_LCD_SLEEP_SETTING <= optional */
69 /* define this if you can flip your LCD */
70 #define HAVE_LCD_FLIP
72 /* define this if you can invert the colours on your LCD */
73 #define HAVE_LCD_INVERT
75 /* Define this if your LCD can set contrast */
76 #define HAVE_LCD_CONTRAST
78 #define MIN_CONTRAST_SETTING 0
79 #define MAX_CONTRAST_SETTING 255
80 #define DEFAULT_CONTRAST_SETTING 85
82 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
84 #define CONFIG_KEYPAD SANSA_C200_PAD
86 /* define this if the target has volume keys which can be used in the lists */
87 #define HAVE_VOLUME_IN_LIST
89 /* Define this if you do software codec */
90 #define CONFIG_CODEC SWCODEC
92 /* There is no hardware tone control */
93 #define HAVE_SW_TONE_CONTROLS
95 /* The PP5024 has a built-in AustriaMicrosystems AS3514 */
96 #define HAVE_AS3514
98 /* define this if you have a real-time clock */
99 #ifndef BOOTLOADER
100 #define CONFIG_RTC RTC_AS3514
101 #endif
103 /* Define this if you have a software controlled poweroff */
104 #define HAVE_SW_POWEROFF
106 /* Some Sansa E200s seem to be FAT16 formatted */
107 #define HAVE_FAT16SUPPORT
109 /* The number of bytes reserved for loadable codecs */
110 #define CODEC_SIZE 0x100000
112 /* The number of bytes reserved for loadable plugins */
113 #define PLUGIN_BUFFER_SIZE 0x80000
115 #define AB_REPEAT_ENABLE 1
117 /* FM Tuner */
118 #define CONFIG_TUNER LV24020LP
119 #define HAVE_TUNER_PWR_CTRL
121 /* Define this for LCD backlight available */
122 #define HAVE_BACKLIGHT
123 #define HAVE_BACKLIGHT_BRIGHTNESS
125 /* Main LCD backlight brightness range and defaults */
126 #define MIN_BRIGHTNESS_SETTING 1
127 #define MAX_BRIGHTNESS_SETTING 16
128 #define DEFAULT_BRIGHTNESS_SETTING 6
130 /* Which backlight fading type? */
131 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
133 /* define this if you have a flash memory storage */
134 #define HAVE_FLASH_STORAGE
136 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
137 #define CONFIG_STORAGE STORAGE_SD
139 #define BATTERY_CAPACITY_DEFAULT 530 /* default battery capacity */
140 #define BATTERY_CAPACITY_MIN 530 /* min. capacity selectable */
141 #define BATTERY_CAPACITY_MAX 530 /* max. capacity selectable */
142 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
143 #define BATTERY_TYPES_COUNT 1 /* only one type */
145 /* Charging implemented in a target-specific algorithm */
146 #define CONFIG_CHARGING CHARGING_TARGET
147 #define HAVE_POWEROFF_WHILE_CHARGING
149 /* define this if the unit can be powered or charged via USB */
150 #define HAVE_USB_POWER
152 /* define current usage levels */
153 #define CURRENT_NORMAL 30 /* Should be nearly identical to E200 */
154 #define CURRENT_BACKLIGHT 40 /* Screen is about 20, blue LEDs are another 20, so 40 if both */
155 #define CURRENT_RECORD 30 /* flash player, so this is just unboosted current*/
157 /* Define this if you have a PortalPlayer PP5024 */
158 #define CONFIG_CPU PP5022
160 /* Define this if you want to use the PP5024 i2c interface */
161 #define CONFIG_I2C I2C_PP5024
163 /* define this if the hardware can be powered off while charging */
164 /* Sansa can't be powered off while charging */
165 /* #define HAVE_POWEROFF_WHILE_CHARGING */
167 /* The start address index for ROM builds */
168 #define ROM_START 0x00000000
170 /* Define this to the CPU frequency */
171 #define CPU_FREQ 75000000
173 /* Type of LCD TODO: hopefully the same as the x5 but check this*/
174 #define CONFIG_LCD LCD_C200
176 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
177 only used when loading the old format rockbox.e200 file */
178 #define FIRMWARE_OFFSET_FILE_CRC 0x0
179 #define FIRMWARE_OFFSET_FILE_DATA 0x8
181 #ifndef BOOTLOADER
182 #define HAVE_MULTIDRIVE
183 #define NUM_DRIVES 2
184 #define HAVE_HOTSWAP
185 #endif
187 /* USB On-the-go */
188 #define CONFIG_USBOTG USBOTG_ARC
190 /* enable these for the experimental usb stack */
191 #define HAVE_USBSTACK
192 #define USE_ROCKBOX_USB
193 #define USB_VENDOR_ID 0x0781
194 #define USB_PRODUCT_ID 0x7451
195 #define HAVE_USB_HID_MOUSE
197 /* Define this if you have adjustable CPU frequency */
198 #define HAVE_ADJUSTABLE_CPU_FREQ
200 #define MI4_FORMAT
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 /* Default recording levels */
210 #define DEFAULT_REC_MIC_GAIN 23
211 #define DEFAULT_REC_LEFT_GAIN 23
212 #define DEFAULT_REC_RIGHT_GAIN 23
214 /* Define this if a programmable hotkey is mapped */
215 #define HAVE_HOTKEY