diff options
author | Björn Stenberg <bjorn@haxx.se> | 2009-12-07 09:17:48 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2009-12-07 09:17:48 +0000 |
commit | 36a81eb9b98ac7b1dff0d6658dba0255dd579f5f (patch) | |
tree | 81b81008c4cb69c276329ecd50200887c4da4838 /firmware/export/config-clip.h | |
parent | 66fa5b578904f7df61293d6ce5c08966b5db13db (diff) | |
download | rockbox-36a81eb9b98ac7b1dff0d6658dba0255dd579f5f.tar.gz rockbox-36a81eb9b98ac7b1dff0d6658dba0255dd579f5f.zip |
Reverted r23881 mistakenly committed to branch.v3.4
git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_4@23882 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config-clip.h')
-rw-r--r-- | firmware/export/config-clip.h | 210 |
1 files changed, 210 insertions, 0 deletions
diff --git a/firmware/export/config-clip.h b/firmware/export/config-clip.h new file mode 100644 index 0000000000..3b82a25159 --- /dev/null +++ b/firmware/export/config-clip.h | |||
@@ -0,0 +1,210 @@ | |||
1 | /* | ||
2 | * This config file is for the Sandisk Sansa Clip | ||
3 | */ | ||
4 | #define TARGET_TREE /* this target is using the target tree system */ | ||
5 | |||
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 | ||
11 | |||
12 | #if 0 /* disabled since there is no driver (yet) */ | ||
13 | |||
14 | #define HW_SAMPR_CAPS (SAMPR_CAP_44) | ||
15 | |||
16 | /* define this if you have recording possibility */ | ||
17 | #define HAVE_RECORDING | ||
18 | |||
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 | ||
22 | |||
23 | #endif | ||
24 | |||
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) | ||
28 | |||
29 | /* define this if you have a bitmap LCD display */ | ||
30 | #define HAVE_LCD_BITMAP | ||
31 | |||
32 | /* define this if you have a light associated with the buttons */ | ||
33 | #define HAVE_BUTTON_LIGHT | ||
34 | |||
35 | /* define this if you have access to the quickscreen */ | ||
36 | #define HAVE_QUICKSCREEN | ||
37 | |||
38 | /* define this if you have access to the pitchscreen */ | ||
39 | #define HAVE_PITCHSCREEN | ||
40 | |||
41 | /* define this if you would like tagcache to build on this target */ | ||
42 | #define HAVE_TAGCACHE | ||
43 | |||
44 | /* LCD dimensions */ | ||
45 | #define LCD_WIDTH 128 | ||
46 | #define LCD_HEIGHT 64 | ||
47 | #define LCD_DEPTH 1 | ||
48 | |||
49 | #define LCD_PIXELFORMAT VERTICAL_PACKING | ||
50 | #define HAVE_NEGATIVE_LCD /* bright on dark */ | ||
51 | #define HAVE_LCD_SPLIT /* split display */ | ||
52 | |||
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 | ||
58 | |||
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 | ||
63 | |||
64 | #define LCD_SPLIT_POS 16 | ||
65 | #define LCD_SPLIT_LINES 2 | ||
66 | |||
67 | /* define this if you have LCD enable function */ | ||
68 | #define HAVE_LCD_ENABLE | ||
69 | |||
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 | ||
76 | |||
77 | /* define this if you can flip your LCD */ | ||
78 | #define HAVE_LCD_FLIP | ||
79 | |||
80 | /* define this if you can invert the pixels */ | ||
81 | #define HAVE_LCD_INVERT | ||
82 | |||
83 | /* Define this if your LCD can set contrast */ | ||
84 | #define HAVE_LCD_CONTRAST | ||
85 | |||
86 | #define MIN_CONTRAST_SETTING 0 | ||
87 | #define MAX_CONTRAST_SETTING 50 | ||
88 | #define DEFAULT_CONTRAST_SETTING 30 | ||
89 | |||
90 | #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */ | ||
91 | |||
92 | #define CONFIG_KEYPAD SANSA_CLIP_PAD | ||
93 | |||
94 | /* define this if the target has volume keys which can be used in the lists */ | ||
95 | #define HAVE_VOLUME_IN_LIST | ||
96 | |||
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 | ||
101 | |||
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 | ||
105 | |||
106 | /* define this if you have a real-time clock */ | ||
107 | #ifndef BOOTLOADER | ||
108 | #define CONFIG_RTC RTC_AS3514 | ||
109 | #endif | ||
110 | |||
111 | /* Define this if you have a software controlled poweroff */ | ||
112 | #define HAVE_SW_POWEROFF | ||
113 | |||
114 | #define HAVE_FAT16SUPPORT | ||
115 | |||
116 | /* The number of bytes reserved for loadable codecs */ | ||
117 | #define CODEC_SIZE 0x48000 /* in IRAM */ | ||
118 | |||
119 | /* The number of bytes reserved for loadable plugins */ | ||
120 | #define PLUGIN_BUFFER_SIZE 0x60000 | ||
121 | |||
122 | #define AB_REPEAT_ENABLE 1 | ||
123 | |||
124 | /* FM Tuner */ | ||
125 | #define CONFIG_TUNER SI4700 /* in fact SI4702 but let's hope it's compatible */ | ||
126 | //#define HAVE_TUNER_PWR_CTRL | ||
127 | |||
128 | /* Define this for LCD backlight available */ | ||
129 | #define HAVE_BACKLIGHT | ||
130 | |||
131 | /* define this if you have a flash memory storage */ | ||
132 | #define HAVE_FLASH_STORAGE | ||
133 | |||
134 | /* define this if the flash memory uses the SecureDigital Memory Card protocol */ | ||
135 | #define CONFIG_STORAGE STORAGE_SD | ||
136 | |||
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 */ | ||
142 | |||
143 | /* Charging implemented in a target-specific algorithm */ | ||
144 | #define CONFIG_CHARGING CHARGING_TARGET | ||
145 | |||
146 | /* define this if the unit can be powered or charged via USB */ | ||
147 | #define HAVE_USB_POWER | ||
148 | |||
149 | /** Non-simulator section **/ | ||
150 | #ifndef SIMULATOR | ||
151 | |||
152 | /* Define this if you have a AMS AS3525 SoC */ | ||
153 | #define CONFIG_CPU AS3525 | ||
154 | |||
155 | /* Define how much SD sectors are reserved for OF */ | ||
156 | #define AMS_OF_SIZE 0x5000 | ||
157 | |||
158 | /* Define this if you want to use the AS3525 i2c interface */ | ||
159 | #define CONFIG_I2C I2C_AS3525 | ||
160 | |||
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 */ | ||
164 | |||
165 | /* The start address index for ROM builds */ | ||
166 | #define ROM_START 0x00000000 | ||
167 | |||
168 | /* Define this to the CPU frequency */ | ||
169 | #define CPU_FREQ 250000000 | ||
170 | |||
171 | /* Type of LCD */ | ||
172 | #define CONFIG_LCD LCD_SSD1303 | ||
173 | |||
174 | #ifndef BOOTLOADER | ||
175 | |||
176 | #define USB_HANDLED_BY_OF | ||
177 | |||
178 | #define CONFIG_USBOTG USBOTG_AS3525 | ||
179 | |||
180 | /* enable these for the experimental usb stack */ | ||
181 | #define HAVE_USBSTACK | ||
182 | #define USB_VENDOR_ID 0x0781 | ||
183 | #define USB_PRODUCT_ID 0x7433 | ||
184 | |||
185 | #endif /* BOOTLOADER */ | ||
186 | |||
187 | /* Define this if you have adjustable CPU frequency */ | ||
188 | #define HAVE_ADJUSTABLE_CPU_FREQ | ||
189 | |||
190 | #define BOOTFILE_EXT "sansa" | ||
191 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
192 | #define BOOTDIR "/.rockbox" | ||
193 | |||
194 | #define ICODE_ATTR_TREMOR_NOT_MDCT | ||
195 | |||
196 | #define INCLUDE_TIMEOUT_API | ||
197 | |||
198 | #endif /* SIMULATOR */ | ||
199 | |||
200 | /** Port-specific settings **/ | ||
201 | |||
202 | /* Main LCD backlight brightness range and defaults */ | ||
203 | #define MIN_BRIGHTNESS_SETTING 1 | ||
204 | #define MAX_BRIGHTNESS_SETTING 12 | ||
205 | #define DEFAULT_BRIGHTNESS_SETTING 6 | ||
206 | |||
207 | /* Default recording levels */ | ||
208 | #define DEFAULT_REC_MIC_GAIN 23 | ||
209 | #define DEFAULT_REC_LEFT_GAIN 23 | ||
210 | #define DEFAULT_REC_RIGHT_GAIN 23 | ||