summaryrefslogtreecommitdiff
path: root/firmware/export/config/sansaclip.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config/sansaclip.h')
-rw-r--r--firmware/export/config/sansaclip.h199
1 files changed, 199 insertions, 0 deletions
diff --git a/firmware/export/config/sansaclip.h b/firmware/export/config/sansaclip.h
new file mode 100644
index 0000000000..4fa5f94598
--- /dev/null
+++ b/firmware/export/config/sansaclip.h
@@ -0,0 +1,199 @@
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#define HW_SAMPR_CAPS SAMPR_CAP_ALL
13
14/* define this if you have recording possibility */
15//#define HAVE_RECORDING
16
17#define REC_SAMPR_CAPS SAMPR_CAP_ALL
18
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)
22
23/* define this if you have a bitmap LCD display */
24#define HAVE_LCD_BITMAP
25
26/* define this if you have a light associated with the buttons */
27#define HAVE_BUTTON_LIGHT
28
29/* define this if you have access to the quickscreen */
30#define HAVE_QUICKSCREEN
31
32/* define this if you have access to the pitchscreen */
33#define HAVE_PITCHSCREEN
34
35/* define this if you would like tagcache to build on this target */
36#define HAVE_TAGCACHE
37
38/* LCD dimensions */
39#define LCD_WIDTH 128
40#define LCD_HEIGHT 64
41#define LCD_DEPTH 1
42
43#define LCD_PIXELFORMAT VERTICAL_PACKING
44#define HAVE_NEGATIVE_LCD /* bright on dark */
45#define HAVE_LCD_SPLIT /* split display */
46
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
52
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
57
58#define LCD_SPLIT_POS 16
59#define LCD_SPLIT_LINES 2
60
61/* define this if you have LCD enable function */
62#define HAVE_LCD_ENABLE
63
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
70
71/* define this if you can flip your LCD */
72#define HAVE_LCD_FLIP
73
74/* define this if you can invert the pixels */
75#define HAVE_LCD_INVERT
76
77/* Define this if your LCD can set contrast */
78#define HAVE_LCD_CONTRAST
79
80#define MIN_CONTRAST_SETTING 0
81#define MAX_CONTRAST_SETTING 50
82#define DEFAULT_CONTRAST_SETTING 30
83
84#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
85
86#define CONFIG_KEYPAD SANSA_CLIP_PAD
87
88/* define this if the target has volume keys which can be used in the lists */
89#define HAVE_VOLUME_IN_LIST
90
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
95
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
99
100/* define this if you have a real-time clock */
101#ifndef BOOTLOADER
102#define CONFIG_RTC RTC_AS3514
103#endif
104
105/* Define this if you have a software controlled poweroff */
106#define HAVE_SW_POWEROFF
107
108#define HAVE_FAT16SUPPORT
109
110/* The number of bytes reserved for loadable codecs */
111#define CODEC_SIZE 0x48000 /* in IRAM */
112
113/* The number of bytes reserved for loadable plugins */
114#define PLUGIN_BUFFER_SIZE 0x60000
115
116#define AB_REPEAT_ENABLE 1
117
118/* FM Tuner */
119#define CONFIG_TUNER SI4700 /* in fact SI4702 but let's hope it's compatible */
120//#define HAVE_TUNER_PWR_CTRL
121
122/* Define this for LCD backlight available */
123#define HAVE_BACKLIGHT
124
125/* define this if you have a flash memory storage */
126#define HAVE_FLASH_STORAGE
127
128/* define this if the flash memory uses the SecureDigital Memory Card protocol */
129#define CONFIG_STORAGE STORAGE_SD
130
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 */
136
137/* Charging implemented in a target-specific algorithm */
138#define CONFIG_CHARGING CHARGING_TARGET
139
140/* define this if the unit can be powered or charged via USB */
141#define HAVE_USB_POWER
142
143/* Define this if you have a AMS AS3525 SoC */
144#define CONFIG_CPU AS3525
145
146/* Define how much SD sectors are reserved for OF */
147#define AMS_OF_SIZE 0x5000
148
149/* Define this if you want to use the AS3525 i2c interface */
150#define CONFIG_I2C I2C_AS3525
151
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 */
155
156/* The start address index for ROM builds */
157#define ROM_START 0x00000000
158
159/* Define this to the CPU frequency */
160#define CPU_FREQ 250000000
161
162/* Type of LCD */
163#define CONFIG_LCD LCD_SSD1303
164
165#ifndef BOOTLOADER
166
167#define USB_HANDLED_BY_OF
168
169#define CONFIG_USBOTG USBOTG_AS3525
170
171/* enable these for the experimental usb stack */
172#define HAVE_USBSTACK
173#define USB_VENDOR_ID 0x0781
174#define USB_PRODUCT_ID 0x7433
175
176#endif /* BOOTLOADER */
177
178/* Define this if you have adjustable CPU frequency */
179#define HAVE_ADJUSTABLE_CPU_FREQ
180
181#define BOOTFILE_EXT "sansa"
182#define BOOTFILE "rockbox." BOOTFILE_EXT
183#define BOOTDIR "/.rockbox"
184
185#define ICODE_ATTR_TREMOR_NOT_MDCT
186
187#define INCLUDE_TIMEOUT_API
188
189/** Port-specific settings **/
190
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
195
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