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