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