diff options
author | Björn Stenberg <bjorn@haxx.se> | 2009-12-07 09:17:48 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2009-12-07 09:17:48 +0000 |
commit | 36a81eb9b98ac7b1dff0d6658dba0255dd579f5f (patch) | |
tree | 81b81008c4cb69c276329ecd50200887c4da4838 /firmware/export/config-c200.h | |
parent | 66fa5b578904f7df61293d6ce5c08966b5db13db (diff) | |
download | rockbox-36a81eb9b98ac7b1dff0d6658dba0255dd579f5f.tar.gz rockbox-36a81eb9b98ac7b1dff0d6658dba0255dd579f5f.zip |
Reverted r23881 mistakenly committed to branch.v3.4
git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_4@23882 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config-c200.h')
-rw-r--r-- | firmware/export/config-c200.h | 211 |
1 files changed, 211 insertions, 0 deletions
diff --git a/firmware/export/config-c200.h b/firmware/export/config-c200.h new file mode 100644 index 0000000000..654ac7b9cf --- /dev/null +++ b/firmware/export/config-c200.h | |||
@@ -0,0 +1,211 @@ | |||
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 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 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 | /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */ | ||
78 | |||
79 | #define CONFIG_KEYPAD SANSA_C200_PAD | ||
80 | |||
81 | /* define this if the target has volume keys which can be used in the lists */ | ||
82 | #define HAVE_VOLUME_IN_LIST | ||
83 | |||
84 | /* Define this if you do software codec */ | ||
85 | #define CONFIG_CODEC SWCODEC | ||
86 | |||
87 | /* There is no hardware tone control */ | ||
88 | #define HAVE_SW_TONE_CONTROLS | ||
89 | |||
90 | /* The PP5024 has a built-in AustriaMicrosystems AS3514 */ | ||
91 | #define HAVE_AS3514 | ||
92 | |||
93 | /* define this if you have a real-time clock */ | ||
94 | #ifndef BOOTLOADER | ||
95 | #define CONFIG_RTC RTC_AS3514 | ||
96 | #endif | ||
97 | |||
98 | /* Define this if you have a software controlled poweroff */ | ||
99 | #define HAVE_SW_POWEROFF | ||
100 | |||
101 | /* Some Sansa E200s seem to be FAT16 formatted */ | ||
102 | #define HAVE_FAT16SUPPORT | ||
103 | |||
104 | /* The number of bytes reserved for loadable codecs */ | ||
105 | #define CODEC_SIZE 0x100000 | ||
106 | |||
107 | /* The number of bytes reserved for loadable plugins */ | ||
108 | #define PLUGIN_BUFFER_SIZE 0x80000 | ||
109 | |||
110 | #define AB_REPEAT_ENABLE 1 | ||
111 | |||
112 | /* FM Tuner */ | ||
113 | #define CONFIG_TUNER LV24020LP | ||
114 | #define HAVE_TUNER_PWR_CTRL | ||
115 | |||
116 | /* Define this for LCD backlight available */ | ||
117 | #define HAVE_BACKLIGHT | ||
118 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
119 | |||
120 | /* Main LCD backlight brightness range and defaults */ | ||
121 | #define MIN_BRIGHTNESS_SETTING 1 | ||
122 | #define MAX_BRIGHTNESS_SETTING 12 | ||
123 | #define DEFAULT_BRIGHTNESS_SETTING 6 | ||
124 | |||
125 | /* Which backlight fading type? */ | ||
126 | #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING | ||
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 | /* Charging implemented in a target-specific algorithm */ | ||
141 | #define CONFIG_CHARGING CHARGING_TARGET | ||
142 | #define HAVE_POWEROFF_WHILE_CHARGING | ||
143 | |||
144 | /* define this if the unit can be powered or charged via USB */ | ||
145 | #define HAVE_USB_POWER | ||
146 | |||
147 | /* define current usage levels */ | ||
148 | #define CURRENT_NORMAL 30 /* Should be nearly identical to E200 */ | ||
149 | #define CURRENT_BACKLIGHT 40 /* Screen is about 20, blue LEDs are another 20, so 40 if both */ | ||
150 | #define CURRENT_RECORD 30 /* flash player, so this is just unboosted current*/ | ||
151 | |||
152 | /** Non-simulator section **/ | ||
153 | #ifndef SIMULATOR | ||
154 | |||
155 | /* Define this if you have a PortalPlayer PP5024 */ | ||
156 | #define CONFIG_CPU PP5022 | ||
157 | |||
158 | /* Define this if you want to use the PP5024 i2c interface */ | ||
159 | #define CONFIG_I2C I2C_PP5024 | ||
160 | |||
161 | /* define this if the hardware can be powered off while charging */ | ||
162 | /* Sansa can't be powered off while charging */ | ||
163 | /* #define HAVE_POWEROFF_WHILE_CHARGING */ | ||
164 | |||
165 | /* The start address index for ROM builds */ | ||
166 | #define ROM_START 0x00000000 | ||
167 | |||
168 | /* Define this to the CPU frequency */ | ||
169 | #define CPU_FREQ 75000000 | ||
170 | |||
171 | /* Type of LCD TODO: hopefully the same as the x5 but check this*/ | ||
172 | #define CONFIG_LCD LCD_C200 | ||
173 | |||
174 | /* Offset ( in the firmware file's header ) to the file CRC and data. These are | ||
175 | only used when loading the old format rockbox.e200 file */ | ||
176 | #define FIRMWARE_OFFSET_FILE_CRC 0x0 | ||
177 | #define FIRMWARE_OFFSET_FILE_DATA 0x8 | ||
178 | |||
179 | #ifndef BOOTLOADER | ||
180 | #define HAVE_MULTIDRIVE | ||
181 | #define NUM_DRIVES 2 | ||
182 | #define HAVE_HOTSWAP | ||
183 | #endif | ||
184 | |||
185 | /* USB On-the-go */ | ||
186 | #define CONFIG_USBOTG USBOTG_ARC | ||
187 | |||
188 | /* enable these for the experimental usb stack */ | ||
189 | #define HAVE_USBSTACK | ||
190 | #define USE_ROCKBOX_USB | ||
191 | #define USB_VENDOR_ID 0x0781 | ||
192 | #define USB_PRODUCT_ID 0x7451 | ||
193 | |||
194 | /* Define this if you have adjustable CPU frequency */ | ||
195 | #define HAVE_ADJUSTABLE_CPU_FREQ | ||
196 | |||
197 | #define MI4_FORMAT | ||
198 | #define BOOTFILE_EXT "mi4" | ||
199 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
200 | #define BOOTDIR "/.rockbox" | ||
201 | |||
202 | #define ICODE_ATTR_TREMOR_NOT_MDCT | ||
203 | |||
204 | #define INCLUDE_TIMEOUT_API | ||
205 | |||
206 | #endif /* SIMULATOR */ | ||
207 | |||
208 | /* Default recording levels */ | ||
209 | #define DEFAULT_REC_MIC_GAIN 23 | ||
210 | #define DEFAULT_REC_LEFT_GAIN 23 | ||
211 | #define DEFAULT_REC_RIGHT_GAIN 23 | ||