fuzev2: current estimation assuming same battery capacity than v1
[kugel-rb.git] / firmware / export / config / sansafuzev2.h
blob96622818dd898d0b1315efcf04be23282e8f0295
1 /*
2 * This config file is for the Sandisk Sansa Fuze v2
3 */
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 */
32 #define HAVE_ALBUMART
34 /* define this to enable bitmap scaling */
35 #define HAVE_BMP_SCALING
37 /* define this to enable JPEG decoding */
38 #define HAVE_JPEG
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 */
47 #define HAVE_TAGCACHE
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 */
59 //#define HAVE_LCD_FLIP
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 /* There is no hardware tone control */
69 #define HAVE_SW_TONE_CONTROLS
71 /* define this if the unit uses a scrollwheel for navigation */
72 #define HAVE_SCROLLWHEEL
73 /* define to activate advanced wheel acceleration code */
74 #define HAVE_WHEEL_ACCELERATION
75 /* define from which rotation speed [degree/sec] on the acceleration starts */
76 #define WHEEL_ACCEL_START 540
77 /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
78 #define WHEEL_ACCELERATION 1
80 #endif /* !BOOTLOADER */
82 /* put the lcd frame buffer in IRAM */
83 #define IRAM_LCDFRAMEBUFFER //IBSS_ATTR
85 #define CONFIG_KEYPAD SANSA_FUZE_PAD
87 /* Define this to enable morse code input */
88 #define HAVE_MORSE_INPUT
90 /* Define this if you do software codec */
91 #define CONFIG_CODEC SWCODEC
94 /* LCD dimensions */
95 #define LCD_WIDTH 220
96 #define LCD_HEIGHT 176
97 #define LCD_DEPTH 16 /* 65536 colours */
98 #define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 swapped */
101 /* AS3514 or newer */
102 #define HAVE_AS3514
103 #define HAVE_AS3543
105 /* Define this if you have a software controlled poweroff */
106 #define HAVE_SW_POWEROFF
108 /* Some Sansa Fuzes seem to be FAT16 formatted */
109 #define HAVE_FAT16SUPPORT
111 /* The number of bytes reserved for loadable codecs */
112 #define CODEC_SIZE (0x100000-0x8000)
114 /* The number of bytes reserved for loadable plugins */
115 #define PLUGIN_BUFFER_SIZE 0x80000
117 #define AB_REPEAT_ENABLE 1
119 /* FM Tuner - suspected to be the SI4702 */
120 #define CONFIG_TUNER SI4700
121 /* #define HAVE_TUNER_PWR_CTRL */
123 /* Define this for LCD backlight available */
124 #define HAVE_BACKLIGHT
125 #define HAVE_BACKLIGHT_BRIGHTNESS
127 /* Main LCD backlight brightness range and defaults */
128 #define MIN_BRIGHTNESS_SETTING 1
129 #define MAX_BRIGHTNESS_SETTING 25
130 #define DEFAULT_BRIGHTNESS_SETTING 6
132 /* define this if you have a light associated with the buttons */
133 #define HAVE_BUTTON_LIGHT
135 /* Which backlight fading type? */
136 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
138 /* define this if you have a flash memory storage */
139 #define HAVE_FLASH_STORAGE
141 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
142 #define CONFIG_STORAGE STORAGE_SD
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 */
150 /* Charging implemented in a target-specific algorithm */
151 #define CONFIG_CHARGING CHARGING_TARGET
153 /* define this if the unit can be powered or charged via USB */
154 #define HAVE_USB_POWER
156 /* Define this if you have an AMS AS3525v2 */
157 #define CONFIG_CPU AS3525v2
159 /* Define this if you want to use the AS2525 i2c interface */
160 #define CONFIG_I2C I2C_AS3525
162 /* define current usage levels (based on battery bench) */
163 #define CURRENT_NORMAL 30
164 #define CURRENT_BACKLIGHT 30
165 #define CURRENT_RECORD CURRENT_NORMAL
167 /* Define this to the CPU frequency */
168 #define CPU_FREQ 240000000
170 /* Type of LCD */
171 #define CONFIG_LCD LCD_FUZE
173 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
174 only used when loading the old format rockbox.e200 file */
175 #define FIRMWARE_OFFSET_FILE_CRC 0x0
176 #define FIRMWARE_OFFSET_FILE_DATA 0x8
178 #ifndef BOOTLOADER
179 #define HAVE_MULTIDRIVE
180 #define NUM_DRIVES 2
181 #define HAVE_HOTSWAP
182 #endif
184 #ifndef BOOTLOADER
186 #define USB_HANDLED_BY_OF
188 /* USB On-the-go */
189 #define CONFIG_USBOTG USBOTG_AS3525
191 /* enable these for the experimental usb stack */
192 #define HAVE_USBSTACK
193 #define USB_VENDOR_ID 0x0781
194 #define USB_PRODUCT_ID 0x74c3 /* MSC = 0x74c3, MTP = 0x74c2 */
196 #endif /* !BOOTLOADER */
198 /* Define this if you have adjustable CPU frequency */
199 //#define HAVE_ADJUSTABLE_CPU_FREQ
201 #define BOOTFILE_EXT "sansa"
202 #define BOOTFILE "rockbox." BOOTFILE_EXT
203 #define BOOTDIR "/.rockbox"
205 #define ICODE_ATTR_TREMOR_NOT_MDCT
207 #define INCLUDE_TIMEOUT_API
209 /* Define this if a programmable hotkey is mapped */
210 #define HAVE_HOTKEY