diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config.h | 2 | ||||
-rw-r--r-- | firmware/export/config/sansafuzev2.h | 211 |
2 files changed, 213 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index 3c70bb6880..c7ddbfc3ef 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -392,6 +392,8 @@ Lyre prototype 1 */ | |||
392 | #include "config/sansam200v4.h" | 392 | #include "config/sansam200v4.h" |
393 | #elif defined(SANSA_FUZE) | 393 | #elif defined(SANSA_FUZE) |
394 | #include "config/sansafuze.h" | 394 | #include "config/sansafuze.h" |
395 | #elif defined(SANSA_FUZEV2) | ||
396 | #include "config/sansafuzev2.h" | ||
395 | #elif defined(SANSA_C200V2) | 397 | #elif defined(SANSA_C200V2) |
396 | #include "config/sansac200v2.h" | 398 | #include "config/sansac200v2.h" |
397 | #elif defined(SANSA_VIEW) | 399 | #elif defined(SANSA_VIEW) |
diff --git a/firmware/export/config/sansafuzev2.h b/firmware/export/config/sansafuzev2.h new file mode 100644 index 0000000000..b806354b09 --- /dev/null +++ b/firmware/export/config/sansafuzev2.h | |||
@@ -0,0 +1,211 @@ | |||
1 | /* | ||
2 | * This config file is for the Sandisk Sansa Fuze | ||
3 | */ | ||
4 | #define TARGET_TREE /* this target is using the target tree system */ | ||
5 | |||
6 | /* For Rolo and boot loader */ | ||
7 | #define MODEL_NUMBER 68 | ||
8 | #define MODEL_NAME "Sandisk Sansa Fuze v2" | ||
9 | |||
10 | #define HW_SAMPR_CAPS SAMPR_CAP_ALL | ||
11 | |||
12 | /* define this if you have recording possibility */ | ||
13 | //#define HAVE_RECORDING | ||
14 | |||
15 | //#define REC_SAMPR_CAPS SAMPR_CAP_ALL | ||
16 | |||
17 | /* Default recording levels */ | ||
18 | #define DEFAULT_REC_MIC_GAIN 23 | ||
19 | #define DEFAULT_REC_LEFT_GAIN 23 | ||
20 | #define DEFAULT_REC_RIGHT_GAIN 23 | ||
21 | |||
22 | /* Define bitmask of input sources - recordable bitmask can be defined | ||
23 | explicitly if different */ | ||
24 | #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) | ||
25 | |||
26 | /* define this if you have a bitmap LCD display */ | ||
27 | #define HAVE_LCD_BITMAP | ||
28 | /* define this if you have a colour LCD */ | ||
29 | #define HAVE_LCD_COLOR | ||
30 | |||
31 | #ifndef BOOTLOADER/* 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 | /* define this if you have LCD enable function */ | ||
53 | //#define HAVE_LCD_ENABLE | ||
54 | |||
55 | /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE | ||
56 | should be defined as well. | ||
57 | #define HAVE_LCD_SLEEP | ||
58 | #define HAVE_LCD_SLEEP_SETTING | ||
59 | */ | ||
60 | |||
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 | //#define HAVE_LCD_INVERT | ||
66 | |||
67 | |||
68 | /* define this if you have a real-time clock */ | ||
69 | #define CONFIG_RTC RTC_AS3514 | ||
70 | |||
71 | /* There is no hardware tone control */ | ||
72 | #define HAVE_SW_TONE_CONTROLS | ||
73 | |||
74 | #endif /* !BOOTLOADER */ | ||
75 | |||
76 | /* put the lcd frame buffer in IRAM */ | ||
77 | #define IRAM_LCDFRAMEBUFFER //IBSS_ATTR | ||
78 | |||
79 | #define CONFIG_KEYPAD SANSA_FUZE_PAD | ||
80 | |||
81 | /* Define this to enable morse code input */ | ||
82 | #define HAVE_MORSE_INPUT | ||
83 | |||
84 | /* Define this if you do software codec */ | ||
85 | #define CONFIG_CODEC SWCODEC | ||
86 | |||
87 | |||
88 | /* LCD dimensions */ | ||
89 | #define LCD_WIDTH 220 | ||
90 | #define LCD_HEIGHT 176 | ||
91 | #define LCD_DEPTH 16 /* 65536 colours */ | ||
92 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | ||
93 | |||
94 | |||
95 | /* We're working on the assumption that the AS3525 has something | ||
96 | similar to the AS3514 for audio codec etc */ | ||
97 | #define HAVE_AS3514 | ||
98 | |||
99 | /* Define this if you have a software controlled poweroff */ | ||
100 | #define HAVE_SW_POWEROFF | ||
101 | |||
102 | /* Some Sansa Fuzes seem to be FAT16 formatted */ | ||
103 | #define HAVE_FAT16SUPPORT | ||
104 | |||
105 | /* The number of bytes reserved for loadable codecs */ | ||
106 | #define CODEC_SIZE 0x100000 | ||
107 | |||
108 | /* The number of bytes reserved for loadable plugins */ | ||
109 | #define PLUGIN_BUFFER_SIZE 0x80000 | ||
110 | |||
111 | #define AB_REPEAT_ENABLE 1 | ||
112 | |||
113 | /* FM Tuner - suspected to be the SI4702 */ | ||
114 | #define CONFIG_TUNER SI4700 | ||
115 | /* #define HAVE_TUNER_PWR_CTRL */ | ||
116 | |||
117 | /* Define this for LCD backlight available */ | ||
118 | #define HAVE_BACKLIGHT | ||
119 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
120 | |||
121 | /* Main LCD backlight brightness range and defaults */ | ||
122 | #define MIN_BRIGHTNESS_SETTING 1 | ||
123 | #define MAX_BRIGHTNESS_SETTING 12 | ||
124 | #define DEFAULT_BRIGHTNESS_SETTING 6 | ||
125 | |||
126 | /* Which backlight fading type? */ | ||
127 | #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING | ||
128 | |||
129 | /* define this if the unit uses a scrollwheel for navigation */ | ||
130 | #define HAVE_SCROLLWHEEL | ||
131 | /* define to activate advanced wheel acceleration code */ | ||
132 | #define HAVE_WHEEL_ACCELERATION | ||
133 | /* define from which rotation speed [degree/sec] on the acceleration starts */ | ||
134 | #define WHEEL_ACCEL_START 540 | ||
135 | /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */ | ||
136 | #define WHEEL_ACCELERATION 1 | ||
137 | |||
138 | /* define this if you have a flash memory storage */ | ||
139 | #define HAVE_FLASH_STORAGE | ||
140 | |||
141 | /* define this if the flash memory uses the SecureDigital Memory Card protocol */ | ||
142 | #define CONFIG_STORAGE STORAGE_SD | ||
143 | |||
144 | #define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */ | ||
145 | #define BATTERY_CAPACITY_MIN 550 /* min. capacity selectable */ | ||
146 | #define BATTERY_CAPACITY_MAX 550 /* max. capacity selectable */ | ||
147 | #define BATTERY_CAPACITY_INC 0 /* capacity increment */ | ||
148 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
149 | |||
150 | /* Charging implemented in a target-specific algorithm */ | ||
151 | #define CONFIG_CHARGING 0 | ||
152 | |||
153 | /* define this if the unit can be powered or charged via USB */ | ||
154 | #define HAVE_USB_POWER | ||
155 | |||
156 | /* Define this if you have an AMS AS3525*/ | ||
157 | #define CONFIG_CPU AS3525 | ||
158 | |||
159 | /* Define how much SD sectors are reserved for OF */ | ||
160 | #define AMS_OF_SIZE 0xF000 | ||
161 | |||
162 | /* Define this if you want to use the AS2525 i2c interface */ | ||
163 | #define CONFIG_I2C I2C_AS3525 | ||
164 | |||
165 | /* define current usage levels (based on battery bench) */ | ||
166 | #define CURRENT_NORMAL 65 | ||
167 | #define CURRENT_BACKLIGHT 30 | ||
168 | #define CURRENT_RECORD CURRENT_NORMAL | ||
169 | |||
170 | /* Define this to the CPU frequency */ | ||
171 | #define CPU_FREQ 250000000 | ||
172 | |||
173 | /* Type of LCD */ | ||
174 | #define CONFIG_LCD LCD_FUZE | ||
175 | |||
176 | /* Offset ( in the firmware file's header ) to the file CRC and data. These are | ||
177 | only used when loading the old format rockbox.e200 file */ | ||
178 | #define FIRMWARE_OFFSET_FILE_CRC 0x0 | ||
179 | #define FIRMWARE_OFFSET_FILE_DATA 0x8 | ||
180 | |||
181 | #ifndef BOOTLOADER | ||
182 | #define HAVE_MULTIDRIVE | ||
183 | #define NUM_DRIVES 2 | ||
184 | #define HAVE_HOTSWAP | ||
185 | #endif | ||
186 | |||
187 | #ifndef BOOTLOADER | ||
188 | |||
189 | #define USB_HANDLED_BY_OF | ||
190 | |||
191 | /* USB On-the-go */ | ||
192 | #define CONFIG_USBOTG USBOTG_AS3525 | ||
193 | |||
194 | /* enable these for the experimental usb stack */ | ||
195 | #define HAVE_USBSTACK | ||
196 | #define USB_VENDOR_ID 0x0781 | ||
197 | #define USB_PRODUCT_ID 0x7423 | ||
198 | |||
199 | #endif /* !BOOTLOADER */ | ||
200 | |||
201 | /* Define this if you have adjustable CPU frequency */ | ||
202 | #define HAVE_ADJUSTABLE_CPU_FREQ | ||
203 | |||
204 | #define BOOTFILE_EXT "sansa" | ||
205 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
206 | #define BOOTDIR "/.rockbox" | ||
207 | |||
208 | #define ICODE_ATTR_TREMOR_NOT_MDCT | ||
209 | |||
210 | #define INCLUDE_TIMEOUT_API | ||
211 | |||