Remove the calls to backlight_lcd_sleep_countdown from target specific code and move...
[kugel-rb.git] / firmware / export / config-e200v2.h
blobdbd3b0c0ee9af0fd8780bc9ce512d22f5c17b67e
1 /*
2 * This config file is for the Sandisk Sansa e200v2
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 41
8 #define MODEL_NAME "Sandisk Sansa e200v2 series"
10 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
12 #if 0
13 /* define this if you have recording possibility */
14 #define HAVE_RECORDING
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
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)
25 /* define this if you have a bitmap LCD display */
26 #define HAVE_LCD_BITMAP
28 /* define this if you have a colour LCD */
29 #define HAVE_LCD_COLOR
31 /* define this if you want album art for this target */
32 #define HAVE_ALBUMART
34 /* define this if you have a light associated with the buttons */
35 #define HAVE_BUTTON_LIGHT
37 /* define this if you have access to the quickscreen */
38 #define HAVE_QUICKSCREEN
40 /* define this if you have access to the pitchscreen */
41 #define HAVE_PITCHSCREEN
43 /* define this if you would like tagcache to build on this target */
44 #define HAVE_TAGCACHE
46 /* LCD dimensions */
47 #define LCD_WIDTH 176
48 #define LCD_HEIGHT 220
49 #define LCD_DEPTH 16 /* 65536 colours */
50 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
52 #ifndef BOOTLOADER
53 /* define this if you have LCD enable function */
54 #define HAVE_LCD_ENABLE
56 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
57 should be defined as well.
58 #define HAVE_LCD_SLEEP
59 #define HAVE_LCD_SLEEP_SETTING
61 #endif
63 /* define this if you can flip your LCD */
64 #define HAVE_LCD_FLIP
66 /* define this if you can invert the colours on your LCD */
67 #define HAVE_LCD_INVERT
69 /* put the lcd frame buffer in IRAM */
70 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR
72 #define CONFIG_KEYPAD SANSA_E200_PAD
74 /* Define this if you do software codec */
75 #define CONFIG_CODEC SWCODEC
77 /* There is no hardware tone control */
78 #define HAVE_SW_TONE_CONTROLS
80 /* We're working on the assumption that the AS3525 has something
81 similar to the AS3514 for audio codec etc */
82 #define HAVE_AS3514
84 /* define this if you have a real-time clock */
85 #ifndef BOOTLOADER
86 #define CONFIG_RTC RTC_AS3514
87 #endif
89 /* Define this if you have a software controlled poweroff */
90 #define HAVE_SW_POWEROFF
92 /* Some Sansa E200s seem to be FAT16 formatted */
93 #define HAVE_FAT16SUPPORT
95 /* The number of bytes reserved for loadable codecs */
96 #define CODEC_SIZE 0x100000
98 /* The number of bytes reserved for loadable plugins */
99 #define PLUGIN_BUFFER_SIZE 0x80000
101 #define AB_REPEAT_ENABLE 1
103 /* FM Tuner - suspected to be the SI4702 */
104 #define CONFIG_TUNER SI4700
105 /* #define HAVE_TUNER_PWR_CTRL */
107 /* Define this for LCD backlight available */
108 #define HAVE_BACKLIGHT
109 #define HAVE_BACKLIGHT_BRIGHTNESS
111 /* Main LCD backlight brightness range and defaults */
112 #define MIN_BRIGHTNESS_SETTING 1
113 #define MAX_BRIGHTNESS_SETTING 12
114 #define DEFAULT_BRIGHTNESS_SETTING 6
116 /* Which backlight fading type? */
117 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
119 /* define this if the unit uses a scrollwheel for navigation */
120 #define HAVE_SCROLLWHEEL
121 /* define to activate advanced wheel acceleration code */
122 #define HAVE_WHEEL_ACCELERATION
123 /* define from which rotation speed [degree/sec] on the acceleration starts */
124 #define WHEEL_ACCEL_START 540
125 /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
126 #define WHEEL_ACCELERATION 1
128 /* define this if you have a flash memory storage */
129 #define HAVE_FLASH_STORAGE
131 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
132 #define CONFIG_STORAGE STORAGE_SD
134 #define BATTERY_CAPACITY_DEFAULT 730 /* default battery capacity */
135 #define BATTERY_CAPACITY_MIN 730 /* min. capacity selectable */
136 #define BATTERY_CAPACITY_MAX 730 /* max. capacity selectable */
137 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
138 #define BATTERY_TYPES_COUNT 1 /* only one type */
140 /* Charging implemented in a target-specific algorithm */
141 #define CONFIG_CHARGING CHARGING_TARGET
143 /* define this if the unit can be powered or charged via USB */
144 #define HAVE_USB_POWER
146 /** Non-simulator section **/
147 #ifndef SIMULATOR
149 /* Define this if you have an AMS AS3525*/
150 #define CONFIG_CPU AS3525
152 /* Define this if you want to use the AS2525 i2c interface */
153 #define CONFIG_I2C I2C_AS3525
155 /* define this if the hardware can be powered off while charging */
156 /* Sansa can't be powered off while charging */
157 /* #define HAVE_POWEROFF_WHILE_CHARGING */
159 /* The start address index for ROM builds */
160 #define ROM_START 0x00000000
162 /* Define this to the CPU frequency */
163 #define CPU_FREQ 75000000
165 /* Type of LCD TODO: hopefully the same as the x5 but check this*/
166 #define CONFIG_LCD LCD_X5
168 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
169 only used when loading the old format rockbox.e200 file */
170 #define FIRMWARE_OFFSET_FILE_CRC 0x0
171 #define FIRMWARE_OFFSET_FILE_DATA 0x8
173 #ifndef BOOTLOADER
174 #define HAVE_MULTIVOLUME
175 #define HAVE_HOTSWAP
176 #endif
178 #define USB_HANDLED_BY_OF
180 /* USB On-the-go */
181 #define CONFIG_USBOTG USBOTG_AS3525
183 /* enable these for the experimental usb stack */
184 //#define HAVE_USBSTACK
185 #define USB_VENDOR_ID 0x0781
186 #define USB_PRODUCT_ID 0x7423
188 /* Virtual LED (icon) */
189 #define CONFIG_LED LED_VIRTUAL
191 /* Define this if you have adjustable CPU frequency */
192 #define HAVE_ADJUSTABLE_CPU_FREQ
194 #define BOOTFILE_EXT "sansa"
195 #define BOOTFILE "rockbox." BOOTFILE_EXT
196 #define BOOTDIR "/.rockbox"
198 #define ICODE_ATTR_TREMOR_NOT_MDCT
200 #define INCLUDE_TIMEOUT_API
202 #endif /* SIMULATOR */
204 /* Default recording levels */
205 #define DEFAULT_REC_MIC_GAIN 23
206 #define DEFAULT_REC_LEFT_GAIN 23
207 #define DEFAULT_REC_RIGHT_GAIN 23