2 * This config file is for the Sandisk Sansa Fuze v2
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 68
8 #define MODEL_NAME "Sandisk Sansa Fuze v2"
10 #define HW_SAMPR_CAPS SAMPR_CAP_ALL
12 /* define this if you have recording possibility */
13 #define HAVE_RECORDING
15 #define REC_SAMPR_CAPS SAMPR_CAP_ALL
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
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)
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
31 #ifndef BOOTLOADER/* define this if you want album art for this target */
34 /* define this to enable bitmap scaling */
35 #define HAVE_BMP_SCALING
37 /* define this to enable JPEG decoding */
40 /* define this if you have access to the quickscreen */
41 #define HAVE_QUICKSCREEN
43 /* define this if you have access to the pitchscreen */
44 #define HAVE_PITCHSCREEN
46 /* define this if you would like tagcache to build on this target */
49 /* define this if you have LCD enable function */
50 #define HAVE_LCD_ENABLE
52 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
53 should be defined as well.
54 #define HAVE_LCD_SLEEP
55 #define HAVE_LCD_SLEEP_SETTING
58 /* define this if you can flip your LCD */
61 /* define this if you can invert the colours on your LCD */
62 #define HAVE_LCD_INVERT
65 /* define this if you have a real-time clock */
66 #define CONFIG_RTC RTC_AS3514
68 /* Define if the device can wake from an RTC alarm */
69 #define HAVE_RTC_ALARM
72 /* There is no hardware tone control */
73 #define HAVE_SW_TONE_CONTROLS
75 /* define this if the unit uses a scrollwheel for navigation */
76 #define HAVE_SCROLLWHEEL
77 /* define to activate advanced wheel acceleration code */
78 #define HAVE_WHEEL_ACCELERATION
79 /* define from which rotation speed [degree/sec] on the acceleration starts */
80 #define WHEEL_ACCEL_START 720
81 /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
82 #define WHEEL_ACCELERATION 1
84 #endif /* !BOOTLOADER */
86 /* put the lcd frame buffer in IRAM */
87 #define IRAM_LCDFRAMEBUFFER //IBSS_ATTR
89 #define CONFIG_KEYPAD SANSA_FUZE_PAD
91 /* Define this to enable morse code input */
92 #define HAVE_MORSE_INPUT
94 /* Define this if you do software codec */
95 #define CONFIG_CODEC SWCODEC
100 #define LCD_HEIGHT 176
101 #define LCD_DEPTH 16 /* 65536 colours */
102 #define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 swapped */
105 /* AS3514 or newer */
109 /* Define this if you have a software controlled poweroff */
110 #define HAVE_SW_POWEROFF
112 /* Some Sansa Fuzes seem to be FAT16 formatted */
113 #define HAVE_FAT16SUPPORT
115 /* The number of bytes reserved for loadable codecs */
116 #define CODEC_SIZE (0x100000-0x8000)
118 /* The number of bytes reserved for loadable plugins */
119 #define PLUGIN_BUFFER_SIZE 0x80000
121 #define AB_REPEAT_ENABLE
123 /* FM Tuner - suspected to be the SI4702 */
124 #define CONFIG_TUNER (SI4700|RDA5802)
125 /* #define HAVE_TUNER_PWR_CTRL */
127 /* Define this for LCD backlight available */
128 #define HAVE_BACKLIGHT
129 #define HAVE_BACKLIGHT_BRIGHTNESS
131 /* Main LCD backlight brightness range and defaults */
132 #define MIN_BRIGHTNESS_SETTING 1
133 #define MAX_BRIGHTNESS_SETTING 25
134 #define DEFAULT_BRIGHTNESS_SETTING 6
136 /* define this if you have a light associated with the buttons */
137 #define HAVE_BUTTON_LIGHT
139 /* Which backlight fading type? */
140 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
142 /* define this if you have a flash memory storage */
143 #define HAVE_FLASH_STORAGE
145 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
146 #define CONFIG_STORAGE STORAGE_SD
148 #define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */
149 #define BATTERY_CAPACITY_MIN 550 /* min. capacity selectable */
150 #define BATTERY_CAPACITY_MAX 550 /* max. capacity selectable */
151 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
152 #define BATTERY_TYPES_COUNT 1 /* only one type */
154 /* Charging implemented in a target-specific algorithm */
155 #define CONFIG_CHARGING CHARGING_TARGET
157 /* define this if the unit can be powered or charged via USB */
158 #define HAVE_USB_POWER
160 /* Define this if you have an AMS AS3525v2 */
161 #define CONFIG_CPU AS3525v2
163 /* Define this if you want to use the AS2525 i2c interface */
164 #define CONFIG_I2C I2C_AS3525
166 /* define current usage levels (based on battery bench) */
167 #define CURRENT_NORMAL 26
168 #define CURRENT_BACKLIGHT 30
169 #define CURRENT_RECORD CURRENT_NORMAL
171 /* maximum charging current */
172 #define CURRENT_MAX_CHG 200
174 /* Define this to the CPU frequency */
175 #define CPU_FREQ 240000000
178 #define CONFIG_LCD LCD_FUZE
180 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
181 only used when loading the old format rockbox.e200 file */
182 #define FIRMWARE_OFFSET_FILE_CRC 0x0
183 #define FIRMWARE_OFFSET_FILE_DATA 0x8
186 #define HAVE_MULTIDRIVE
192 #define CONFIG_USBOTG USBOTG_AS3525v2
194 /* enable these for the experimental usb stack */
195 #define HAVE_USBSTACK
196 #define USB_HANDLED_BY_OF
197 //#define USE_ROCKBOX_USB
198 #define USB_VENDOR_ID 0x0781
199 #define USB_PRODUCT_ID 0x74c3 /* MSC = 0x74c3, MTP = 0x74c2 */
201 /* Define this if you have adjustable CPU frequency */
202 //#define HAVE_ADJUSTABLE_CPU_FREQ
204 #define BOOTFILE_EXT "sansa"
205 #define BOOTFILE "rockbox." BOOTFILE_EXT
206 #define BOOTDIR "/.rockbox"
208 #define ICODE_ATTR_TREMOR_NOT_MDCT
210 #define INCLUDE_TIMEOUT_API
212 /* Define this if a programmable hotkey is mapped */