Sansa Clip+ has no button light
[kugel-rb.git] / firmware / export / config / sansaclipplus.h
blobba70fdd2036f824e552ad05de3c08ec851bd2d72
1 /*
2 * This config file is for the Sandisk Sansa Clip+
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 Clip+"
9 #define FIRMWARE_OFFSET_FILE_DATA 8
10 #define FIRMWARE_OFFSET_FILE_CRC 0
12 #if 0 /* disabled since there is no driver (yet) */
14 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
16 /* define this if you have recording possibility */
17 #define HAVE_RECORDING
19 #define REC_SAMPR_CAPS (SAMPR_CAP_22)
20 #define REC_FREQ_DEFAULT REC_FREQ_22 /* Default is not 44.1kHz */
21 #define REC_SAMPR_DEFAULT SAMPR_22
23 #endif
25 /* Define bitmask of input sources - recordable bitmask can be defined
26 explicitly if different */
27 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
29 /* define this if you have a bitmap LCD display */
30 #define HAVE_LCD_BITMAP
32 /* define this if you have access to the quickscreen */
33 #define HAVE_QUICKSCREEN
35 /* define this if you have access to the pitchscreen */
36 #define HAVE_PITCHSCREEN
38 /* define this if you would like tagcache to build on this target */
39 #define HAVE_TAGCACHE
41 /* LCD dimensions */
42 #define LCD_WIDTH 128
43 #define LCD_HEIGHT 64
44 #define LCD_DEPTH 1
46 #define LCD_PIXELFORMAT VERTICAL_PACKING
47 #define HAVE_NEGATIVE_LCD /* bright on dark */
48 #define HAVE_LCD_SPLIT /* split display */
50 /* Display colours, for screenshots and sim (0xRRGGBB) */
51 #define LCD_DARKCOLOR 0x000000
52 #define LCD_BRIGHTCOLOR 0x000000
53 #define LCD_BL_DARKCOLOR 0x000000
54 #define LCD_BL_BRIGHTCOLOR 0x0de2e5
56 #define LCD_DARKCOLOR_2 0x000000
57 #define LCD_BRIGHTCOLOR_2 0x000000
58 #define LCD_BL_DARKCOLOR_2 0x000000
59 #define LCD_BL_BRIGHTCOLOR_2 0xffe60f
61 #define LCD_SPLIT_POS 16
62 #define LCD_SPLIT_LINES 2
64 /* define this if you have LCD enable function */
65 #define HAVE_LCD_ENABLE
67 #ifndef BOOTLOADER
68 /* Define this if your LCD can be put to sleep.
69 * HAVE_LCD_ENABLE should be defined as well. */
70 //#define HAVE_LCD_SLEEP
71 //#define HAVE_LCD_SLEEP_SETTING
72 #endif
74 /* define this if you can flip your LCD */
75 #define HAVE_LCD_FLIP
77 /* define this if you can invert the pixels */
78 #define HAVE_LCD_INVERT
80 /* Define this if your LCD can set contrast */
81 #define HAVE_LCD_CONTRAST
83 #define MIN_CONTRAST_SETTING 0
84 #define MAX_CONTRAST_SETTING 50
85 #define DEFAULT_CONTRAST_SETTING 30
87 #define IRAM_LCDFRAMEBUFFER IDATA_ATTR /* put the lcd frame buffer in IRAM */
89 #define CONFIG_KEYPAD SANSA_CLIP_PAD
91 /* define this if the target has volume keys which can be used in the lists */
92 #define HAVE_VOLUME_IN_LIST
94 /* Define this if you do software codec */
95 #define CONFIG_CODEC SWCODEC
96 /* There is no hardware tone control */
97 #define HAVE_SW_TONE_CONTROLS
99 /* We're working on the assumption that the AS3525 has something
100 similar to the AS3514 for audio codec etc */
101 #define HAVE_AS3514
103 /* define this if you have a real-time clock */
104 #ifndef BOOTLOADER
105 #define CONFIG_RTC RTC_AS3514
106 #endif
108 /* Define this if you have a software controlled poweroff */
109 #define HAVE_SW_POWEROFF
111 #define HAVE_FAT16SUPPORT
113 /* The number of bytes reserved for loadable codecs */
114 #define CODEC_SIZE 0x100000
116 /* The number of bytes reserved for loadable plugins */
117 #define PLUGIN_BUFFER_SIZE 0x80000
119 #define AB_REPEAT_ENABLE 1
121 /* FM Tuner */
122 #define CONFIG_TUNER SI4700 /* in fact SI4702 */
123 //#define HAVE_TUNER_PWR_CTRL
125 /* Define this for LCD backlight available */
126 #define HAVE_BACKLIGHT
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 380 /* default battery capacity */
135 #define BATTERY_CAPACITY_MIN 380 /* min. capacity selectable */
136 #define BATTERY_CAPACITY_MAX 380 /* 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 a AMS AS3525v2 SoC */
150 #define CONFIG_CPU AS3525v2
152 /* Define this if you want to use the AS3525 i2c interface */
153 #define CONFIG_I2C I2C_AS3525 /* FIXME : looks similar to AS353x interface */
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 250000000
165 /* Type of LCD */
166 #define CONFIG_LCD LCD_SSD1303
168 #ifndef BOOTLOADER
170 #define USB_HANDLED_BY_OF
172 #if 0 /* disabled since there is no USB driver */
174 /* USB On-the-go */
175 #define CONFIG_USBOTG USBOTG_ARC
177 /* enable these for the experimental usb stack */
178 #define HAVE_USBSTACK
179 #define USB_VENDOR_ID 0x0781
180 #define USB_PRODUCT_ID 0x7433
181 #endif /* BOOTLOADER */
183 #endif
186 /* Virtual LED (icon) */
187 #define CONFIG_LED LED_VIRTUAL
189 /* Define this if you have adjustable CPU frequency */
190 #define HAVE_ADJUSTABLE_CPU_FREQ
192 #define BOOTFILE_EXT "sansa"
193 #define BOOTFILE "rockbox." BOOTFILE_EXT
194 #define BOOTDIR "/.rockbox"
196 #define ICODE_ATTR_TREMOR_NOT_MDCT
198 #define INCLUDE_TIMEOUT_API
200 #endif /* SIMULATOR */
202 /** Port-specific settings **/
204 /* Main LCD backlight brightness range and defaults */
205 #define MIN_BRIGHTNESS_SETTING 1
206 #define MAX_BRIGHTNESS_SETTING 12
207 #define DEFAULT_BRIGHTNESS_SETTING 6
209 /* Default recording levels */
210 #define DEFAULT_REC_MIC_GAIN 23
211 #define DEFAULT_REC_LEFT_GAIN 23
212 #define DEFAULT_REC_RIGHT_GAIN 23