summaryrefslogtreecommitdiff
path: root/firmware/export/config/sansae200v2.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config/sansae200v2.h')
-rw-r--r--firmware/export/config/sansae200v2.h212
1 files changed, 212 insertions, 0 deletions
diff --git a/firmware/export/config/sansae200v2.h b/firmware/export/config/sansae200v2.h
new file mode 100644
index 0000000000..110555aec5
--- /dev/null
+++ b/firmware/export/config/sansae200v2.h
@@ -0,0 +1,212 @@
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_ALL
11
12/* define this if you have recording possibility */
13#define HAVE_RECORDING
14
15#define REC_SAMPR_CAPS SAMPR_CAP_ALL
16
17/* Define bitmask of input sources - recordable bitmask can be defined
18 explicitly if different */
19#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
20
21/* define this if you have a bitmap LCD display */
22#define HAVE_LCD_BITMAP
23
24/* define this if you have a colour LCD */
25#define HAVE_LCD_COLOR
26
27/* define this if you want album art for this target */
28#define HAVE_ALBUMART
29
30/* define this to enable bitmap scaling */
31#define HAVE_BMP_SCALING
32
33/* define this to enable JPEG decoding */
34#define HAVE_JPEG
35
36/* define this if you have a light associated with the buttons */
37#define HAVE_BUTTON_LIGHT
38
39/* define this if you have access to the quickscreen */
40#define HAVE_QUICKSCREEN
41
42/* define this if you have access to the pitchscreen */
43#define HAVE_PITCHSCREEN
44
45/* define this if you would like tagcache to build on this target */
46#define HAVE_TAGCACHE
47
48/* LCD dimensions */
49#define LCD_WIDTH 176
50#define LCD_HEIGHT 220
51#define LCD_DEPTH 16 /* 65536 colours */
52#define LCD_PIXELFORMAT RGB565 /* rgb565 */
53
54#ifndef BOOTLOADER
55/* define this if you have LCD enable function */
56#define HAVE_LCD_ENABLE
57
58/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
59 should be defined as well.
60#define HAVE_LCD_SLEEP
61#define HAVE_LCD_SLEEP_SETTING
62 */
63#endif
64
65/* define this if you can flip your LCD */
66#define HAVE_LCD_FLIP
67
68/* define this if you can invert the colours on your LCD */
69#define HAVE_LCD_INVERT
70
71/* put the lcd frame buffer in IRAM */
72#define IRAM_LCDFRAMEBUFFER IBSS_ATTR
73
74#define CONFIG_KEYPAD SANSA_E200_PAD
75
76/* Define this to enable morse code input */
77#define HAVE_MORSE_INPUT
78
79/* Define this if you do software codec */
80#define CONFIG_CODEC SWCODEC
81
82/* There is no hardware tone control */
83#define HAVE_SW_TONE_CONTROLS
84
85/* We're working on the assumption that the AS3525 has something
86 similar to the AS3514 for audio codec etc */
87#define HAVE_AS3514
88
89/* define this if you have a real-time clock */
90#ifndef BOOTLOADER
91#define CONFIG_RTC RTC_AS3514
92#endif
93
94/* Define this if you have a software controlled poweroff */
95#define HAVE_SW_POWEROFF
96
97/* Some Sansa E200s seem to be FAT16 formatted */
98#define HAVE_FAT16SUPPORT
99
100/* The number of bytes reserved for loadable codecs */
101#define CODEC_SIZE 0x100000
102
103/* The number of bytes reserved for loadable plugins */
104#define PLUGIN_BUFFER_SIZE 0x80000
105
106#define AB_REPEAT_ENABLE 1
107
108/* FM Tuner - suspected to be the SI4702 */
109#define CONFIG_TUNER SI4700
110/* #define HAVE_TUNER_PWR_CTRL */
111
112/* Define this for LCD backlight available */
113#define HAVE_BACKLIGHT
114#define HAVE_BACKLIGHT_BRIGHTNESS
115
116/* Main LCD backlight brightness range and defaults */
117#define MIN_BRIGHTNESS_SETTING 1
118#define MAX_BRIGHTNESS_SETTING 12
119#define DEFAULT_BRIGHTNESS_SETTING 6
120
121/* Which backlight fading type? */
122#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
123
124/* define this if the unit uses a scrollwheel for navigation */
125#define HAVE_SCROLLWHEEL
126/* define to activate advanced wheel acceleration code */
127#define HAVE_WHEEL_ACCELERATION
128/* define from which rotation speed [degree/sec] on the acceleration starts */
129#define WHEEL_ACCEL_START 540
130/* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
131#define WHEEL_ACCELERATION 1
132
133/* define this if you have a flash memory storage */
134#define HAVE_FLASH_STORAGE
135
136/* define this if the flash memory uses the SecureDigital Memory Card protocol */
137#define CONFIG_STORAGE STORAGE_SD
138
139#define BATTERY_CAPACITY_DEFAULT 730 /* default battery capacity */
140#define BATTERY_CAPACITY_MIN 730 /* min. capacity selectable */
141#define BATTERY_CAPACITY_MAX 730 /* max. capacity selectable */
142#define BATTERY_CAPACITY_INC 0 /* capacity increment */
143#define BATTERY_TYPES_COUNT 1 /* only one type */
144
145/* Charging implemented in a target-specific algorithm */
146#define CONFIG_CHARGING CHARGING_TARGET
147
148/* define this if the unit can be powered or charged via USB */
149#define HAVE_USB_POWER
150
151/* Define this if you have an AMS AS3525*/
152#define CONFIG_CPU AS3525
153
154/* Define how much SD sectors are reserved for OF */
155#define AMS_OF_SIZE 0xF000
156
157/* Define this if you want to use the AS2525 i2c interface */
158#define CONFIG_I2C I2C_AS3525
159
160/* define this if the hardware can be powered off while charging */
161/* Sansa can't be powered off while charging */
162/* #define HAVE_POWEROFF_WHILE_CHARGING */
163
164/* The start address index for ROM builds */
165#define ROM_START 0x00000000
166
167/* Define this to the CPU frequency */
168#define CPU_FREQ 75000000
169
170/* Type of LCD TODO: hopefully the same as the x5 but check this*/
171#define CONFIG_LCD LCD_X5
172
173/* Offset ( in the firmware file's header ) to the file CRC and data. These are
174 only used when loading the old format rockbox.e200 file */
175#define FIRMWARE_OFFSET_FILE_CRC 0x0
176#define FIRMWARE_OFFSET_FILE_DATA 0x8
177
178#ifndef BOOTLOADER
179#define HAVE_MULTIDRIVE
180#define NUM_DRIVES 2
181#define HAVE_HOTSWAP
182#endif
183
184#ifndef BOOTLOADER
185
186#define USB_HANDLED_BY_OF
187
188/* USB On-the-go */
189#define CONFIG_USBOTG USBOTG_AS3525
190
191/* enable these for the experimental usb stack */
192#define HAVE_USBSTACK
193#define USB_VENDOR_ID 0x0781
194#define USB_PRODUCT_ID 0x7423
195
196#endif /* !BOOTLOADER */
197
198/* Define this if you have adjustable CPU frequency */
199#define HAVE_ADJUSTABLE_CPU_FREQ
200
201#define BOOTFILE_EXT "sansa"
202#define BOOTFILE "rockbox." BOOTFILE_EXT
203#define BOOTDIR "/.rockbox"
204
205#define ICODE_ATTR_TREMOR_NOT_MDCT
206
207#define INCLUDE_TIMEOUT_API
208
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