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