summaryrefslogtreecommitdiff
path: root/firmware/export/config/sansac200v2.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config/sansac200v2.h')
-rw-r--r--firmware/export/config/sansac200v2.h199
1 files changed, 199 insertions, 0 deletions
diff --git a/firmware/export/config/sansac200v2.h b/firmware/export/config/sansac200v2.h
new file mode 100644
index 0000000000..65aebf245b
--- /dev/null
+++ b/firmware/export/config/sansac200v2.h
@@ -0,0 +1,199 @@
1/*
2 * This config file is for the Sandisk Sansa c200v2
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 44
8#define MODEL_NAME "Sandisk Sansa c200v2 series"
9#define FIRMWARE_OFFSET_FILE_DATA 8
10#define FIRMWARE_OFFSET_FILE_CRC 0
11
12#define HW_SAMPR_CAPS SAMPR_CAP_ALL
13
14/* define this if you have recording possibility */
15//#define HAVE_RECORDING
16
17#define REC_SAMPR_CAPS SAMPR_CAP_ALL
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 to enable bitmap scaling */
33#define HAVE_BMP_SCALING
34
35/* define this to enable JPEG decoding */
36#define HAVE_JPEG
37
38/* define this if you have a light associated with the buttons */
39#define HAVE_BUTTON_LIGHT
40
41/* define this if you have access to the quickscreen */
42#define HAVE_QUICKSCREEN
43
44/* define this if you have access to the pitchscreen */
45#define HAVE_PITCHSCREEN
46
47/* define this if you would like tagcache to build on this target */
48#define HAVE_TAGCACHE
49
50/* LCD dimensions */
51#define LCD_WIDTH 132
52#define LCD_HEIGHT 80
53#define LCD_DEPTH 16 /* 65536 colours */
54#define LCD_PIXELFORMAT RGB565 /* rgb565 */
55
56/* define this if you have LCD enable function */
57#define HAVE_LCD_ENABLE
58
59/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
60 should be defined as well. */
61/* TODO: #define HAVE_LCD_SLEEP */
62/* TODO: #define HAVE_LCD_SLEEP_SETTING <= optional */
63
64/* define this if you can flip your LCD */
65#define HAVE_LCD_FLIP
66
67/* define this if you can invert the colours on your LCD */
68/* TODO: #define HAVE_LCD_INVERT */
69
70/* Define this if your LCD can set contrast */
71#define HAVE_LCD_CONTRAST
72
73#define MIN_CONTRAST_SETTING 0
74#define MAX_CONTRAST_SETTING 255
75#define DEFAULT_CONTRAST_SETTING 85
76
77#if 0 /* not enough room for a 16 bits framebuffer */
78#define IRAM_LCDFRAMEBUFFER IDATA_ATTR /* put the lcd frame buffer in IRAM */
79#endif
80
81#define CONFIG_KEYPAD SANSA_C200_PAD
82
83/* define this if the target has volume keys which can be used in the lists */
84#define HAVE_VOLUME_IN_LIST
85
86/* Define this if you do software codec */
87#define CONFIG_CODEC SWCODEC
88
89/* There is no hardware tone control */
90#define HAVE_SW_TONE_CONTROLS
91
92/* The AS3525 has a built-in AS3514 (or a newer version) */
93#define HAVE_AS3514
94
95/* define this if you have a real-time clock */
96#ifndef BOOTLOADER
97#define CONFIG_RTC RTC_AS3514
98#endif
99
100/* Define this if you have a software controlled poweroff */
101#define HAVE_SW_POWEROFF
102
103/* Some Sansa E200s seem to be FAT16 formatted */
104#define HAVE_FAT16SUPPORT
105
106/* The number of bytes reserved for loadable codecs */
107#define CODEC_SIZE 0x48000
108
109/* The number of bytes reserved for loadable plugins */
110#define PLUGIN_BUFFER_SIZE 0x80000
111
112#define AB_REPEAT_ENABLE 1
113
114/* FM Tuner - suspected to be the SI4702 */
115#define CONFIG_TUNER SI4700
116/* #define HAVE_TUNER_PWR_CTRL */
117
118/* Define this for LCD backlight available */
119#define HAVE_BACKLIGHT
120#define HAVE_BACKLIGHT_BRIGHTNESS
121
122/* define this if you have a flash memory storage */
123#define HAVE_FLASH_STORAGE
124
125/* define this if the flash memory uses the SecureDigital Memory Card protocol */
126#define CONFIG_STORAGE STORAGE_SD
127
128#define BATTERY_CAPACITY_DEFAULT 530 /* default battery capacity */
129#define BATTERY_CAPACITY_MIN 530 /* min. capacity selectable */
130#define BATTERY_CAPACITY_MAX 530 /* max. capacity selectable */
131#define BATTERY_CAPACITY_INC 0 /* capacity increment */
132#define BATTERY_TYPES_COUNT 1 /* only one type */
133
134/* Hardware controlled charging? FIXME */
135#define CONFIG_CHARGING CHARGING_SIMPLE
136
137/* define this if the unit can be powered or charged via USB */
138#define HAVE_USB_POWER
139
140/* Define this if you have a PortalPlayer PP5024 */
141#define CONFIG_CPU AS3525
142
143/* Define how much SD sectors are reserved for OF */
144#define AMS_OF_SIZE 0x5000
145
146/* Define this if you want to use the PP5024 i2c interface */
147#define CONFIG_I2C I2C_AS3525
148
149/* define this if the hardware can be powered off while charging */
150/* Sansa can't be powered off while charging */
151/* #define HAVE_POWEROFF_WHILE_CHARGING */
152
153/* The start address index for ROM builds */
154#define ROM_START 0x00000000
155
156/* Define this to the CPU frequency */
157#define CPU_FREQ 250000000
158
159/* Type of LCD : Samsung S6B33B2 */
160#define CONFIG_LCD LCD_C200
161
162#ifndef BOOTLOADER
163#define HAVE_MULTIDRIVE
164#define NUM_DRIVES 2
165#define HAVE_HOTSWAP
166
167#define USB_HANDLED_BY_OF
168
169#define CONFIG_USBOTG USBOTG_AS3525
170
171/* enable these for the experimental usb stack */
172#define HAVE_USBSTACK
173#define USB_VENDOR_ID 0x0781
174#define USB_PRODUCT_ID 0x7452
175
176#endif /* BOOTLOADER */
177
178/* Define this if you have adjustable CPU frequency */
179#define HAVE_ADJUSTABLE_CPU_FREQ
180
181#define BOOTFILE_EXT "sansa"
182#define BOOTFILE "rockbox." BOOTFILE_EXT
183#define BOOTDIR "/.rockbox"
184
185#define ICODE_ATTR_TREMOR_NOT_MDCT
186
187#define INCLUDE_TIMEOUT_API
188
189/** Port-specific settings **/
190
191/* Main LCD backlight brightness range and defaults */
192#define MIN_BRIGHTNESS_SETTING 1
193#define MAX_BRIGHTNESS_SETTING 12
194#define DEFAULT_BRIGHTNESS_SETTING 6
195
196/* Default recording levels */
197#define DEFAULT_REC_MIC_GAIN 23
198#define DEFAULT_REC_LEFT_GAIN 23
199#define DEFAULT_REC_RIGHT_GAIN 23