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