summaryrefslogtreecommitdiff
path: root/firmware/export/config-e200v2.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config-e200v2.h')
-rw-r--r--firmware/export/config-e200v2.h202
1 files changed, 202 insertions, 0 deletions
diff --git a/firmware/export/config-e200v2.h b/firmware/export/config-e200v2.h
new file mode 100644
index 0000000000..ac41cd33c4
--- /dev/null
+++ b/firmware/export/config-e200v2.h
@@ -0,0 +1,202 @@
1/*
2 * This config file is for the Sandisk Sansa e200v2
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 41
8#define MODEL_NAME "Sandisk Sansa e200v2 series"
9
10#define HW_SAMPR_CAPS (SAMPR_CAP_44)
11
12/* define this if you have recording possibility */
13#define HAVE_RECORDING
14
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
18
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)
22
23/* define this if you have a bitmap LCD display */
24#define HAVE_LCD_BITMAP
25
26/* define this if you have a colour LCD */
27#define HAVE_LCD_COLOR
28
29/* define this if you want album art for this target */
30#define HAVE_ALBUMART
31
32/* define this if you have a light associated with the buttons */
33#define HAVE_BUTTON_LIGHT
34
35/* define this if you have access to the quickscreen */
36#define HAVE_QUICKSCREEN
37
38/* define this if you have access to the pitchscreen */
39#define HAVE_PITCHSCREEN
40
41/* define this if you would like tagcache to build on this target */
42#define HAVE_TAGCACHE
43
44/* LCD dimensions */
45#define LCD_WIDTH 176
46#define LCD_HEIGHT 220
47#define LCD_DEPTH 16 /* 65536 colours */
48#define LCD_PIXELFORMAT RGB565 /* rgb565 */
49
50/* define this if you have LCD enable function */
51#define HAVE_LCD_ENABLE
52
53/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
54 should be defined as well. */
55#define HAVE_LCD_SLEEP
56#define HAVE_LCD_SLEEP_SETTING
57
58/* define this if you can flip your LCD */
59#define HAVE_LCD_FLIP
60
61/* define this if you can invert the colours on your LCD */
62#define HAVE_LCD_INVERT
63
64/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
65
66#define CONFIG_KEYPAD SANSA_E200_PAD
67
68/* Define this if you do software codec */
69#define CONFIG_CODEC SWCODEC
70/* There is no hardware tone control */
71#define HAVE_SW_TONE_CONTROLS
72
73/* Define this if you have an AMS AS3525 */
74#define HAVE_AS3525
75
76/* define this if you have a real-time clock */
77#ifndef BOOTLOADER
78#define CONFIG_RTC RTC_AS3525
79#endif
80
81/* Define this if you have a software controlled poweroff */
82#define HAVE_SW_POWEROFF
83
84/* Some Sansa E200s seem to be FAT16 formatted */
85#define HAVE_FAT16SUPPORT
86
87/* The number of bytes reserved for loadable codecs */
88#define CODEC_SIZE 0x100000
89
90/* The number of bytes reserved for loadable plugins */
91#define PLUGIN_BUFFER_SIZE 0x80000
92
93#define AB_REPEAT_ENABLE 1
94
95/* FM Tuner */
96/* #define CONFIG_TUNER LV24020LP */
97/* #define HAVE_TUNER_PWR_CTRL */
98
99/* Define this for LCD backlight available */
100#define HAVE_BACKLIGHT
101#define HAVE_BACKLIGHT_BRIGHTNESS
102
103/* define this if the unit uses a scrollwheel for navigation */
104#define HAVE_SCROLLWHEEL
105/* define from which rotation speed [degree/sec] on the acceleration starts */
106#define WHEEL_ACCEL_START 540
107/* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
108#define WHEEL_ACCELERATION 1
109
110/* define this if you have a flash memory storage */
111#define HAVE_FLASH_STORAGE
112
113/* define this if the flash memory uses the SecureDigital Memory Card protocol */
114#define HAVE_ATA_SD
115
116#define BATTERY_CAPACITY_DEFAULT 750 /* default battery capacity */
117#define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */
118#define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */
119#define BATTERY_CAPACITY_INC 0 /* capacity increment */
120#define BATTERY_TYPES_COUNT 1 /* only one type */
121
122/* Hardware controlled charging? FIXME */
123#define CONFIG_CHARGING CHARGING_SIMPLE
124
125/* define this if the unit can be powered or charged via USB */
126#define HAVE_USB_POWER
127
128/** Non-simulator section **/
129#ifndef SIMULATOR
130
131/* Define this if you have an AMS AS3525*/
132#define CONFIG_CPU AS3525
133
134/* Define this if you want to use the AS2525 i2c interface */
135#define CONFIG_I2C I2C_AS3525
136
137/* define this if the hardware can be powered off while charging */
138/* Sansa can't be powered off while charging */
139/* #define HAVE_POWEROFF_WHILE_CHARGING */
140
141/* The start address index for ROM builds */
142#define ROM_START 0x00000000
143
144/* Define this to the CPU frequency */
145#define CPU_FREQ 75000000
146
147/* Type of LCD TODO: hopefully the same as the x5 but check this*/
148#define CONFIG_LCD LCD_X5
149
150/* Offset ( in the firmware file's header ) to the file CRC and data. These are
151 only used when loading the old format rockbox.e200 file */
152#define FIRMWARE_OFFSET_FILE_CRC 0x0
153#define FIRMWARE_OFFSET_FILE_DATA 0x8
154
155#ifndef BOOTLOADER
156#define HAVE_MULTIVOLUME
157#define HAVE_HOTSWAP
158#endif
159
160/* #define USB_IPODSTYLE */
161
162/* USB On-the-go */
163#define CONFIG_USBOTG USBOTG_AS3525
164
165/* enable these for the experimental usb stack */
166#define HAVE_USBSTACK
167#define USB_VENDOR_ID 0x0781
168#define USB_PRODUCT_ID 0x7423
169
170/* Virtual LED (icon) */
171#define CONFIG_LED LED_VIRTUAL
172
173/* Define this if you have adjustable CPU frequency */
174#define HAVE_ADJUSTABLE_CPU_FREQ
175
176#define MI4_FORMAT
177#define BOOTFILE_EXT "sansa"
178#define BOOTFILE "rockbox." BOOTFILE_EXT
179#define BOOTDIR "/.rockbox"
180
181#define ICODE_ATTR_TREMOR_NOT_MDCT
182
183#define INCLUDE_TIMEOUT_API
184
185#endif /* SIMULATOR */
186
187/** Port-specific settings **/
188
189/* Main LCD backlight brightness range and defaults */
190#define MIN_BRIGHTNESS_SETTING 1
191#define MAX_BRIGHTNESS_SETTING 12
192#define DEFAULT_BRIGHTNESS_SETTING 6
193
194/* Default recording levels */
195#define DEFAULT_REC_MIC_GAIN 23
196#define DEFAULT_REC_LEFT_GAIN 23
197#define DEFAULT_REC_RIGHT_GAIN 23
198
199#ifdef E200R_INSTALLER
200#define IRAMORIG 0x40004000
201#endif
202