diff options
Diffstat (limited to 'firmware/export/config/sansae200v2.h')
-rw-r--r-- | firmware/export/config/sansae200v2.h | 214 |
1 files changed, 214 insertions, 0 deletions
diff --git a/firmware/export/config/sansae200v2.h b/firmware/export/config/sansae200v2.h new file mode 100644 index 0000000000..dff99cde16 --- /dev/null +++ b/firmware/export/config/sansae200v2.h | |||
@@ -0,0 +1,214 @@ | |||
1 | /* | ||
2 | * This config file is for the Sandisk Sansa e200v2 | ||
3 | */ | ||
4 | #define TARGET_TREE /* this target is using the target tree system */ | ||
5 | |||
6 | /* For Rolo and boot loader */ | ||
7 | #define MODEL_NUMBER 41 | ||
8 | #define MODEL_NAME "Sandisk Sansa e200v2 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 | #endif | ||
21 | /* Define bitmask of input sources - recordable bitmask can be defined | ||
22 | explicitly if different */ | ||
23 | #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) | ||
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 to enable bitmap scaling */ | ||
35 | #define HAVE_BMP_SCALING | ||
36 | |||
37 | /* define this to enable JPEG decoding */ | ||
38 | #define HAVE_JPEG | ||
39 | |||
40 | /* define this if you have a light associated with the buttons */ | ||
41 | #define HAVE_BUTTON_LIGHT | ||
42 | |||
43 | /* define this if you have access to the quickscreen */ | ||
44 | #define HAVE_QUICKSCREEN | ||
45 | |||
46 | /* define this if you have access to the pitchscreen */ | ||
47 | #define HAVE_PITCHSCREEN | ||
48 | |||
49 | /* define this if you would like tagcache to build on this target */ | ||
50 | #define HAVE_TAGCACHE | ||
51 | |||
52 | /* LCD dimensions */ | ||
53 | #define LCD_WIDTH 176 | ||
54 | #define LCD_HEIGHT 220 | ||
55 | #define LCD_DEPTH 16 /* 65536 colours */ | ||
56 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | ||
57 | |||
58 | #ifndef BOOTLOADER | ||
59 | /* define this if you have LCD enable function */ | ||
60 | #define HAVE_LCD_ENABLE | ||
61 | |||
62 | /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE | ||
63 | should be defined as well. | ||
64 | #define HAVE_LCD_SLEEP | ||
65 | #define HAVE_LCD_SLEEP_SETTING | ||
66 | */ | ||
67 | #endif | ||
68 | |||
69 | /* define this if you can flip your LCD */ | ||
70 | #define HAVE_LCD_FLIP | ||
71 | |||
72 | /* define this if you can invert the colours on your LCD */ | ||
73 | #define HAVE_LCD_INVERT | ||
74 | |||
75 | /* put the lcd frame buffer in IRAM */ | ||
76 | #define IRAM_LCDFRAMEBUFFER IBSS_ATTR | ||
77 | |||
78 | #define CONFIG_KEYPAD SANSA_E200_PAD | ||
79 | |||
80 | /* Define this if you do software codec */ | ||
81 | #define CONFIG_CODEC SWCODEC | ||
82 | |||
83 | /* There is no hardware tone control */ | ||
84 | #define HAVE_SW_TONE_CONTROLS | ||
85 | |||
86 | /* We're working on the assumption that the AS3525 has something | ||
87 | similar to the AS3514 for audio codec etc */ | ||
88 | #define HAVE_AS3514 | ||
89 | |||
90 | /* define this if you have a real-time clock */ | ||
91 | #ifndef BOOTLOADER | ||
92 | #define CONFIG_RTC RTC_AS3514 | ||
93 | #endif | ||
94 | |||
95 | /* Define this if you have a software controlled poweroff */ | ||
96 | #define HAVE_SW_POWEROFF | ||
97 | |||
98 | /* Some Sansa E200s seem to be FAT16 formatted */ | ||
99 | #define HAVE_FAT16SUPPORT | ||
100 | |||
101 | /* The number of bytes reserved for loadable codecs */ | ||
102 | #define CODEC_SIZE 0x100000 | ||
103 | |||
104 | /* The number of bytes reserved for loadable plugins */ | ||
105 | #define PLUGIN_BUFFER_SIZE 0x80000 | ||
106 | |||
107 | #define AB_REPEAT_ENABLE 1 | ||
108 | |||
109 | /* FM Tuner - suspected to be the SI4702 */ | ||
110 | #define CONFIG_TUNER SI4700 | ||
111 | /* #define HAVE_TUNER_PWR_CTRL */ | ||
112 | |||
113 | /* Define this for LCD backlight available */ | ||
114 | #define HAVE_BACKLIGHT | ||
115 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
116 | |||
117 | /* Main LCD backlight brightness range and defaults */ | ||
118 | #define MIN_BRIGHTNESS_SETTING 1 | ||
119 | #define MAX_BRIGHTNESS_SETTING 12 | ||
120 | #define DEFAULT_BRIGHTNESS_SETTING 6 | ||
121 | |||
122 | /* Which backlight fading type? */ | ||
123 | #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING | ||
124 | |||
125 | /* define this if the unit uses a scrollwheel for navigation */ | ||
126 | #define HAVE_SCROLLWHEEL | ||
127 | /* define to activate advanced wheel acceleration code */ | ||
128 | #define HAVE_WHEEL_ACCELERATION | ||
129 | /* define from which rotation speed [degree/sec] on the acceleration starts */ | ||
130 | #define WHEEL_ACCEL_START 540 | ||
131 | /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */ | ||
132 | #define WHEEL_ACCELERATION 1 | ||
133 | |||
134 | /* define this if you have a flash memory storage */ | ||
135 | #define HAVE_FLASH_STORAGE | ||
136 | |||
137 | /* define this if the flash memory uses the SecureDigital Memory Card protocol */ | ||
138 | #define CONFIG_STORAGE STORAGE_SD | ||
139 | |||
140 | #define BATTERY_CAPACITY_DEFAULT 730 /* default battery capacity */ | ||
141 | #define BATTERY_CAPACITY_MIN 730 /* min. capacity selectable */ | ||
142 | #define BATTERY_CAPACITY_MAX 730 /* max. capacity selectable */ | ||
143 | #define BATTERY_CAPACITY_INC 0 /* capacity increment */ | ||
144 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
145 | |||
146 | /* Charging implemented in a target-specific algorithm */ | ||
147 | #define CONFIG_CHARGING CHARGING_TARGET | ||
148 | |||
149 | /* define this if the unit can be powered or charged via USB */ | ||
150 | #define HAVE_USB_POWER | ||
151 | |||
152 | /** Non-simulator section **/ | ||
153 | #ifndef SIMULATOR | ||
154 | |||
155 | /* Define this if you have an AMS AS3525*/ | ||
156 | #define CONFIG_CPU AS3525 | ||
157 | |||
158 | /* Define how much SD sectors are reserved for OF */ | ||
159 | #define AMS_OF_SIZE 0xF000 | ||
160 | |||
161 | /* Define this if you want to use the AS2525 i2c interface */ | ||
162 | #define CONFIG_I2C I2C_AS3525 | ||
163 | |||
164 | /* define this if the hardware can be powered off while charging */ | ||
165 | /* Sansa can't be powered off while charging */ | ||
166 | /* #define HAVE_POWEROFF_WHILE_CHARGING */ | ||
167 | |||
168 | /* The start address index for ROM builds */ | ||
169 | #define ROM_START 0x00000000 | ||
170 | |||
171 | /* Define this to the CPU frequency */ | ||
172 | #define CPU_FREQ 75000000 | ||
173 | |||
174 | /* Type of LCD TODO: hopefully the same as the x5 but check this*/ | ||
175 | #define CONFIG_LCD LCD_X5 | ||
176 | |||
177 | /* Offset ( in the firmware file's header ) to the file CRC and data. These are | ||
178 | only used when loading the old format rockbox.e200 file */ | ||
179 | #define FIRMWARE_OFFSET_FILE_CRC 0x0 | ||
180 | #define FIRMWARE_OFFSET_FILE_DATA 0x8 | ||
181 | |||
182 | #ifndef BOOTLOADER | ||
183 | #define HAVE_MULTIDRIVE | ||
184 | #define NUM_DRIVES 2 | ||
185 | #define HAVE_HOTSWAP | ||
186 | #endif | ||
187 | |||
188 | #define USB_HANDLED_BY_OF | ||
189 | |||
190 | /* USB On-the-go */ | ||
191 | #define CONFIG_USBOTG USBOTG_AS3525 | ||
192 | |||
193 | /* enable these for the experimental usb stack */ | ||
194 | #define HAVE_USBSTACK | ||
195 | #define USB_VENDOR_ID 0x0781 | ||
196 | #define USB_PRODUCT_ID 0x7423 | ||
197 | |||
198 | /* Define this if you have adjustable CPU frequency */ | ||
199 | #define HAVE_ADJUSTABLE_CPU_FREQ | ||
200 | |||
201 | #define BOOTFILE_EXT "sansa" | ||
202 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
203 | #define BOOTDIR "/.rockbox" | ||
204 | |||
205 | #define ICODE_ATTR_TREMOR_NOT_MDCT | ||
206 | |||
207 | #define INCLUDE_TIMEOUT_API | ||
208 | |||
209 | #endif /* SIMULATOR */ | ||
210 | |||
211 | /* Default recording levels */ | ||
212 | #define DEFAULT_REC_MIC_GAIN 23 | ||
213 | #define DEFAULT_REC_LEFT_GAIN 23 | ||
214 | #define DEFAULT_REC_RIGHT_GAIN 23 | ||