Add backdrop functions to the multiscreen api and add a enum backdrop_type parameter...
[kugel-rb.git] / firmware / export / config-clip.h
blob57dd6bf37426cedcd6b8a99679538eb82a8c80ee
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 40
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 a light associated with the buttons */
33 #define HAVE_BUTTON_LIGHT
35 /* define this if you have access to the quickscreen */
36 #define HAVE_QUICKSCREEN
38 /* define this if you have access to the pitchscreen */
39 #define HAVE_PITCHSCREEN
41 /* define this if you would like tagcache to build on this target */
42 #define HAVE_TAGCACHE
44 /* LCD dimensions */
45 #define LCD_WIDTH 128
46 #define LCD_HEIGHT 64
47 #define LCD_DEPTH 1
49 #define LCD_PIXELFORMAT VERTICAL_PACKING
50 #define HAVE_NEGATIVE_LCD /* bright on dark */
51 #define HAVE_LCD_SPLIT /* split display */
53 /* Display colours, for screenshots and sim (0xRRGGBB) */
54 #define LCD_DARKCOLOR 0x000000
55 #define LCD_BRIGHTCOLOR 0x000000
56 #define LCD_BL_DARKCOLOR 0x000000
57 #define LCD_BL_BRIGHTCOLOR 0x0de2e5
59 #define LCD_DARKCOLOR_2 0x000000
60 #define LCD_BRIGHTCOLOR_2 0x000000
61 #define LCD_BL_DARKCOLOR_2 0x000000
62 #define LCD_BL_BRIGHTCOLOR_2 0xffe60f
64 #define LCD_SPLIT_POS 16
65 #define LCD_SPLIT_LINES 2
67 /* define this if you have LCD enable function */
68 #define HAVE_LCD_ENABLE
70 #ifndef BOOTLOADER
71 /* Define this if your LCD can be put to sleep.
72 * HAVE_LCD_ENABLE should be defined as well. */
73 //#define HAVE_LCD_SLEEP
74 //#define HAVE_LCD_SLEEP_SETTING
75 #endif
77 /* define this if you can flip your LCD */
78 #define HAVE_LCD_FLIP
80 /* define this if you can invert the pixels */
81 #define HAVE_LCD_INVERT
83 /* Define this if your LCD can set contrast */
84 #define HAVE_LCD_CONTRAST
86 #define MIN_CONTRAST_SETTING 0
87 #define MAX_CONTRAST_SETTING 50
88 #define DEFAULT_CONTRAST_SETTING 30
90 #define IRAM_LCDFRAMEBUFFER IDATA_ATTR /* put the lcd frame buffer in IRAM */
92 #define CONFIG_KEYPAD SANSA_CLIP_PAD
94 /* define this if the target has volume keys which can be used in the lists */
95 #define HAVE_VOLUME_IN_LIST
97 /* Define this if you do software codec */
98 #define CONFIG_CODEC SWCODEC
99 /* There is no hardware tone control */
100 #define HAVE_SW_TONE_CONTROLS
102 /* We're working on the assumption that the AS3525 has something
103 similar to the AS3514 for audio codec etc */
104 #define HAVE_AS3514
106 /* define this if you have a real-time clock */
107 #ifndef BOOTLOADER
108 #define CONFIG_RTC RTC_AS3514
109 #endif
111 /* Define this if you have a software controlled poweroff */
112 #define HAVE_SW_POWEROFF
114 #define HAVE_FAT16SUPPORT
116 /* The number of bytes reserved for loadable codecs */
117 #define CODEC_SIZE 0x48000 /* in IRAM */
119 /* The number of bytes reserved for loadable plugins */
120 #define PLUGIN_BUFFER_SIZE 0x60000
122 #define AB_REPEAT_ENABLE 1
124 /* FM Tuner */
125 #define CONFIG_TUNER SI4700 /* in fact SI4702 but let's hope it's compatible */
126 //#define HAVE_TUNER_PWR_CTRL
128 /* Define this for LCD backlight available */
129 #define HAVE_BACKLIGHT
131 /* define this if you have a flash memory storage */
132 #define HAVE_FLASH_STORAGE
134 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
135 #define CONFIG_STORAGE STORAGE_SD
137 #define BATTERY_CAPACITY_DEFAULT 350 /* default battery capacity */
138 #define BATTERY_CAPACITY_MIN 350 /* min. capacity selectable */
139 #define BATTERY_CAPACITY_MAX 350 /* max. capacity selectable */
140 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
141 #define BATTERY_TYPES_COUNT 1 /* only one type */
143 /* Charging implemented in a target-specific algorithm */
144 #define CONFIG_CHARGING CHARGING_TARGET
146 /* define this if the unit can be powered or charged via USB */
147 #define HAVE_USB_POWER
149 /** Non-simulator section **/
150 #ifndef SIMULATOR
152 /* Define this if you have a AMS AS3525 SoC */
153 #define CONFIG_CPU AS3525
155 /* Define how much SD sectors are reserved for OF */
156 #define AMS_OF_SIZE 0x5000
158 /* Define this if you want to use the AS3525 i2c interface */
159 #define CONFIG_I2C I2C_AS3525
161 /* define this if the hardware can be powered off while charging */
162 /* Sansa can't be powered off while charging */
163 /* #define HAVE_POWEROFF_WHILE_CHARGING */
165 /* The start address index for ROM builds */
166 #define ROM_START 0x00000000
168 /* Define this to the CPU frequency */
169 #define CPU_FREQ 250000000
171 /* Type of LCD */
172 #define CONFIG_LCD LCD_SSD1303
174 #ifndef BOOTLOADER
176 #define USB_HANDLED_BY_OF
178 #define CONFIG_USBOTG USBOTG_AS3525
180 /* enable these for the experimental usb stack */
181 #define HAVE_USBSTACK
182 #define USB_VENDOR_ID 0x0781
183 #define USB_PRODUCT_ID 0x7433
185 #endif /* BOOTLOADER */
187 /* Virtual LED (icon) */
188 #define CONFIG_LED LED_VIRTUAL
190 /* Define this if you have adjustable CPU frequency */
191 #define HAVE_ADJUSTABLE_CPU_FREQ
193 #define BOOTFILE_EXT "sansa"
194 #define BOOTFILE "rockbox." BOOTFILE_EXT
195 #define BOOTDIR "/.rockbox"
197 #define ICODE_ATTR_TREMOR_NOT_MDCT
199 #define INCLUDE_TIMEOUT_API
201 #endif /* SIMULATOR */
203 /** Port-specific settings **/
205 /* Main LCD backlight brightness range and defaults */
206 #define MIN_BRIGHTNESS_SETTING 1
207 #define MAX_BRIGHTNESS_SETTING 12
208 #define DEFAULT_BRIGHTNESS_SETTING 6
210 /* Default recording levels */
211 #define DEFAULT_REC_MIC_GAIN 23
212 #define DEFAULT_REC_LEFT_GAIN 23
213 #define DEFAULT_REC_RIGHT_GAIN 23