Introduce new config header 'config-sim.h' that takes care of undefining things that...
[kugel-rb.git] / firmware / export / config-clip.h
blob4fa5f94598033b89e8b4fbb71fe65aa59ddb75fd
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 #define HW_SAMPR_CAPS SAMPR_CAP_ALL
14 /* define this if you have recording possibility */
15 //#define HAVE_RECORDING
17 #define REC_SAMPR_CAPS SAMPR_CAP_ALL
19 /* Define bitmask of input sources - recordable bitmask can be defined
20 explicitly if different */
21 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
23 /* define this if you have a bitmap LCD display */
24 #define HAVE_LCD_BITMAP
26 /* define this if you have a light associated with the buttons */
27 #define HAVE_BUTTON_LIGHT
29 /* define this if you have access to the quickscreen */
30 #define HAVE_QUICKSCREEN
32 /* define this if you have access to the pitchscreen */
33 #define HAVE_PITCHSCREEN
35 /* define this if you would like tagcache to build on this target */
36 #define HAVE_TAGCACHE
38 /* LCD dimensions */
39 #define LCD_WIDTH 128
40 #define LCD_HEIGHT 64
41 #define LCD_DEPTH 1
43 #define LCD_PIXELFORMAT VERTICAL_PACKING
44 #define HAVE_NEGATIVE_LCD /* bright on dark */
45 #define HAVE_LCD_SPLIT /* split display */
47 /* Display colours, for screenshots and sim (0xRRGGBB) */
48 #define LCD_DARKCOLOR 0x000000
49 #define LCD_BRIGHTCOLOR 0x000000
50 #define LCD_BL_DARKCOLOR 0x000000
51 #define LCD_BL_BRIGHTCOLOR 0x0de2e5
53 #define LCD_DARKCOLOR_2 0x000000
54 #define LCD_BRIGHTCOLOR_2 0x000000
55 #define LCD_BL_DARKCOLOR_2 0x000000
56 #define LCD_BL_BRIGHTCOLOR_2 0xffe60f
58 #define LCD_SPLIT_POS 16
59 #define LCD_SPLIT_LINES 2
61 /* define this if you have LCD enable function */
62 #define HAVE_LCD_ENABLE
64 #ifndef BOOTLOADER
65 /* Define this if your LCD can be put to sleep.
66 * HAVE_LCD_ENABLE should be defined as well. */
67 //#define HAVE_LCD_SLEEP
68 //#define HAVE_LCD_SLEEP_SETTING
69 #endif
71 /* define this if you can flip your LCD */
72 #define HAVE_LCD_FLIP
74 /* define this if you can invert the pixels */
75 #define HAVE_LCD_INVERT
77 /* Define this if your LCD can set contrast */
78 #define HAVE_LCD_CONTRAST
80 #define MIN_CONTRAST_SETTING 0
81 #define MAX_CONTRAST_SETTING 50
82 #define DEFAULT_CONTRAST_SETTING 30
84 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
86 #define CONFIG_KEYPAD SANSA_CLIP_PAD
88 /* define this if the target has volume keys which can be used in the lists */
89 #define HAVE_VOLUME_IN_LIST
91 /* Define this if you do software codec */
92 #define CONFIG_CODEC SWCODEC
93 /* There is no hardware tone control */
94 #define HAVE_SW_TONE_CONTROLS
96 /* We're working on the assumption that the AS3525 has something
97 similar to the AS3514 for audio codec etc */
98 #define HAVE_AS3514
100 /* define this if you have a real-time clock */
101 #ifndef BOOTLOADER
102 #define CONFIG_RTC RTC_AS3514
103 #endif
105 /* Define this if you have a software controlled poweroff */
106 #define HAVE_SW_POWEROFF
108 #define HAVE_FAT16SUPPORT
110 /* The number of bytes reserved for loadable codecs */
111 #define CODEC_SIZE 0x48000 /* in IRAM */
113 /* The number of bytes reserved for loadable plugins */
114 #define PLUGIN_BUFFER_SIZE 0x60000
116 #define AB_REPEAT_ENABLE 1
118 /* FM Tuner */
119 #define CONFIG_TUNER SI4700 /* in fact SI4702 but let's hope it's compatible */
120 //#define HAVE_TUNER_PWR_CTRL
122 /* Define this for LCD backlight available */
123 #define HAVE_BACKLIGHT
125 /* define this if you have a flash memory storage */
126 #define HAVE_FLASH_STORAGE
128 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
129 #define CONFIG_STORAGE STORAGE_SD
131 #define BATTERY_CAPACITY_DEFAULT 350 /* default battery capacity */
132 #define BATTERY_CAPACITY_MIN 350 /* min. capacity selectable */
133 #define BATTERY_CAPACITY_MAX 350 /* max. capacity selectable */
134 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
135 #define BATTERY_TYPES_COUNT 1 /* only one type */
137 /* Charging implemented in a target-specific algorithm */
138 #define CONFIG_CHARGING CHARGING_TARGET
140 /* define this if the unit can be powered or charged via USB */
141 #define HAVE_USB_POWER
143 /* Define this if you have a AMS AS3525 SoC */
144 #define CONFIG_CPU AS3525
146 /* Define how much SD sectors are reserved for OF */
147 #define AMS_OF_SIZE 0x5000
149 /* Define this if you want to use the AS3525 i2c interface */
150 #define CONFIG_I2C I2C_AS3525
152 /* define this if the hardware can be powered off while charging */
153 /* Sansa can't be powered off while charging */
154 /* #define HAVE_POWEROFF_WHILE_CHARGING */
156 /* The start address index for ROM builds */
157 #define ROM_START 0x00000000
159 /* Define this to the CPU frequency */
160 #define CPU_FREQ 250000000
162 /* Type of LCD */
163 #define CONFIG_LCD LCD_SSD1303
165 #ifndef BOOTLOADER
167 #define USB_HANDLED_BY_OF
169 #define CONFIG_USBOTG USBOTG_AS3525
171 /* enable these for the experimental usb stack */
172 #define HAVE_USBSTACK
173 #define USB_VENDOR_ID 0x0781
174 #define USB_PRODUCT_ID 0x7433
176 #endif /* BOOTLOADER */
178 /* Define this if you have adjustable CPU frequency */
179 #define HAVE_ADJUSTABLE_CPU_FREQ
181 #define BOOTFILE_EXT "sansa"
182 #define BOOTFILE "rockbox." BOOTFILE_EXT
183 #define BOOTDIR "/.rockbox"
185 #define ICODE_ATTR_TREMOR_NOT_MDCT
187 #define INCLUDE_TIMEOUT_API
189 /** Port-specific settings **/
191 /* Main LCD backlight brightness range and defaults */
192 #define MIN_BRIGHTNESS_SETTING 1
193 #define MAX_BRIGHTNESS_SETTING 12
194 #define DEFAULT_BRIGHTNESS_SETTING 6
196 /* Default recording levels */
197 #define DEFAULT_REC_MIC_GAIN 23
198 #define DEFAULT_REC_LEFT_GAIN 23
199 #define DEFAULT_REC_RIGHT_GAIN 23