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 16
8 #define MODEL_NAME "Sandisk Sansa e200"
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 have a light associated with the buttons */
30 #define HAVE_BUTTON_LIGHT
32 /* define this if you have access to the quickscreen */
33 #define HAVE_QUICKSCREEN
35 /* define this if you have access to the pitchscreen */
36 #define HAVE_PITCHSCREEN
38 /* define this if you would like tagcache to build on this target */
43 #define LCD_HEIGHT 220
44 #define LCD_DEPTH 16 /* 65536 colours */
45 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
47 /* define this if you have LCD enable function */
48 #define HAVE_LCD_ENABLE
50 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
51 should be defined as well. */
52 #define HAVE_LCD_SLEEP
54 /* define this if you can flip your LCD */
57 /* define this if you can invert the colours on your LCD */
58 #define HAVE_LCD_INVERT
60 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
62 #define CONFIG_KEYPAD SANSA_E200_PAD
64 /* Define this if you do software codec */
65 #define CONFIG_CODEC SWCODEC
66 /* There is no hardware tone control */
67 #define HAVE_SW_TONE_CONTROLS
68 /* The PP5024 has a built-in AustriaMicrosystems AS3514 */
71 /* define this if you have a real-time clock */
73 #define CONFIG_RTC RTC_AS3514
76 /* Define this if you have a software controlled poweroff */
77 #define HAVE_SW_POWEROFF
79 /* Some Sansa E200s seem to be FAT16 formatted */
80 #define HAVE_FAT16SUPPORT
82 /* The number of bytes reserved for loadable codecs */
83 #define CODEC_SIZE 0x80000
85 /* The number of bytes reserved for loadable plugins */
86 #define PLUGIN_BUFFER_SIZE 0x80000
88 #define AB_REPEAT_ENABLE 1
91 #define CONFIG_TUNER LV24020LP
92 #define HAVE_TUNER_PWR_CTRL
94 /* Define this for LCD backlight available */
95 #define HAVE_BACKLIGHT
96 #define HAVE_BACKLIGHT_BRIGHTNESS
98 /* define this if the unit uses a scrollwheel for navigation */
99 #define HAVE_SCROLLWHEEL
100 /* define wheel acceleration scaling factor */
101 /* Range for this target: 0xffffff*(0.0-16.000000894069724921567733381255) */
102 #define WHEEL_ACCELERATION_FACTOR (0xffffff*7)
104 /* define this if you have a flash memory storage */
105 #define HAVE_FLASH_STORAGE
107 #define HAVE_MULTIVOLUME
109 #define BATTERY_CAPACITY_DEFAULT 750 /* default battery capacity */
110 #define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */
111 #define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */
112 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
113 #define BATTERY_TYPES_COUNT 1 /* only one type */
115 /* Hardware controlled charging? FIXME */
116 #define CONFIG_CHARGING CHARGING_SIMPLE
118 /* define this if the unit can be powered or charged via USB */
119 #define HAVE_USB_POWER
121 /** Non-simulator section **/
124 /* Define this if you have a PortalPlayer PP5024 */
125 #define CONFIG_CPU PP5024
127 /* Define this if you want to use the PP5024 i2c interface */
128 #define CONFIG_I2C I2C_PP5024
130 /* define this if the hardware can be powered off while charging */
131 /* Sansa can't be powered off while charging */
132 /* #define HAVE_POWEROFF_WHILE_CHARGING */
134 /* The start address index for ROM builds */
135 #define ROM_START 0x00000000
137 /* Define this to the CPU frequency */
138 #define CPU_FREQ 75000000
140 /* Type of LCD TODO: hopefully the same as the x5 but check this*/
141 #define CONFIG_LCD LCD_X5
145 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
146 only used when loading the old format rockbox.e200 file */
147 #define FIRMWARE_OFFSET_FILE_CRC 0x0
148 #define FIRMWARE_OFFSET_FILE_DATA 0x8
150 /* #define USB_IPODSTYLE */
153 #define CONFIG_USBOTG USBOTG_ARC
155 /* enable these for the experimental usb stack
156 #define HAVE_USBSTACK
157 #define USBSTACK_CAPS CONTROLLER_DEVICE
160 /* Virtual LED (icon) */
161 #define CONFIG_LED LED_VIRTUAL
163 /* Define this if you have adjustable CPU frequency */
164 #define HAVE_ADJUSTABLE_CPU_FREQ
167 #define BOOTFILE_EXT "mi4"
168 #define BOOTFILE "rockbox." BOOTFILE_EXT
169 #define OLD_BOOTFILE "rockbox.e200"
170 #define BOOTDIR "/.rockbox"
172 #define ICODE_ATTR_TREMOR_NOT_MDCT
174 #define INCLUDE_TIMEOUT_API
176 #endif /* SIMULATOR */
178 /** Port-specific settings **/
180 /* Main LCD backlight brightness range and defaults */
181 #define MIN_BRIGHTNESS_SETTING 1
182 #define MAX_BRIGHTNESS_SETTING 12
183 #define DEFAULT_BRIGHTNESS_SETTING 6
185 /* Default recording levels */
186 #define DEFAULT_REC_MIC_GAIN 23
187 #define DEFAULT_REC_LEFT_GAIN 23
188 #define DEFAULT_REC_RIGHT_GAIN 23