summaryrefslogtreecommitdiff
path: root/firmware/export/config/sansaclipzip.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config/sansaclipzip.h')
-rw-r--r--firmware/export/config/sansaclipzip.h202
1 files changed, 202 insertions, 0 deletions
diff --git a/firmware/export/config/sansaclipzip.h b/firmware/export/config/sansaclipzip.h
new file mode 100644
index 0000000000..749439c668
--- /dev/null
+++ b/firmware/export/config/sansaclipzip.h
@@ -0,0 +1,202 @@
1/*
2 * This config file is for the Sandisk Sansa Clip Zip
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 79
8#define MODEL_NAME "Sandisk Sansa Zip"
9#define FIRMWARE_OFFSET_FILE_DATA 8
10#define FIRMWARE_OFFSET_FILE_CRC 0
11
12
13#ifndef BOOTLOADER
14#define HAVE_MULTIDRIVE
15#define NUM_DRIVES 2
16#define HAVE_HOTSWAP
17#endif
18
19#define HW_SAMPR_CAPS SAMPR_CAP_ALL
20
21/* define this if you have recording possibility */
22#define HAVE_RECORDING
23
24#define REC_SAMPR_CAPS SAMPR_CAP_ALL
25
26/* Define bitmask of input sources - recordable bitmask can be defined
27 explicitly if different */
28#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
29
30/* define this if you have a bitmap LCD display */
31#define HAVE_LCD_BITMAP
32/* define this if you have a colour LCD */
33#define HAVE_LCD_COLOR
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 96
46#define LCD_HEIGHT 96
47#define LCD_DEPTH 16 /* 65536 colours */
48#define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 swapped */
49
50/* define this if you have LCD enable function */
51//#define HAVE_LCD_ENABLE
52
53#ifndef BOOTLOADER
54/* Define this if your LCD can be put to sleep.
55 * HAVE_LCD_ENABLE should be defined as well. */
56//#define HAVE_LCD_SLEEP
57//#define HAVE_LCD_SLEEP_SETTING
58#endif
59
60/* define this if you can flip your LCD */
61#define HAVE_LCD_FLIP
62
63/* define this if you can invert the pixels */
64#define HAVE_LCD_INVERT
65
66/* Define this if your LCD can set contrast */
67#define HAVE_LCD_CONTRAST
68
69#define MIN_CONTRAST_SETTING 0
70#define MAX_CONTRAST_SETTING 50
71#define DEFAULT_CONTRAST_SETTING 30
72
73#define IRAM_LCDFRAMEBUFFER IDATA_ATTR /* put the lcd frame buffer in IRAM */
74
75#define CONFIG_KEYPAD SANSA_CLIP_PAD
76
77/* define this if the target has volume keys which can be used in the lists */
78#define HAVE_VOLUME_IN_LIST
79
80/* Define this if you do software codec */
81#define CONFIG_CODEC SWCODEC
82/* There is no hardware tone control */
83#define HAVE_SW_TONE_CONTROLS
84
85/* AS3514 or newer */
86#define HAVE_AS3514
87#define HAVE_AS3543
88
89#ifndef BOOTLOADER
90/* define this if you have a real-time clock */
91#define CONFIG_RTC RTC_AS3514
92
93/* Define if the device can wake from an RTC alarm */
94#define HAVE_RTC_ALARM
95#endif
96
97/* Define this if you have a software controlled poweroff */
98#define HAVE_SW_POWEROFF
99
100#define HAVE_FAT16SUPPORT
101
102/* The number of bytes reserved for loadable codecs */
103#define CODEC_SIZE (0x100000-0x8000)
104
105/* The number of bytes reserved for loadable plugins */
106#define PLUGIN_BUFFER_SIZE 0x80000
107
108#define AB_REPEAT_ENABLE
109
110/* FM Tuner */
111#define CONFIG_TUNER SI4700 /* in fact SI4702 */
112//#define HAVE_TUNER_PWR_CTRL
113
114/* Define this for LCD backlight available */
115#define HAVE_BACKLIGHT
116
117/* define this if you have a flash memory storage */
118#define HAVE_FLASH_STORAGE
119
120/* define this if the flash memory uses the SecureDigital Memory Card protocol */
121#define CONFIG_STORAGE STORAGE_SD
122
123#define BATTERY_CAPACITY_DEFAULT 290 /* default battery capacity */
124#define BATTERY_CAPACITY_MIN 290 /* min. capacity selectable */
125#define BATTERY_CAPACITY_MAX 290 /* max. capacity selectable */
126#define BATTERY_CAPACITY_INC 0 /* capacity increment */
127#define BATTERY_TYPES_COUNT 1 /* only one type */
128
129/* Charging implemented in a target-specific algorithm */
130#define CONFIG_CHARGING CHARGING_TARGET
131
132/* define this if the unit can be powered or charged via USB */
133#define HAVE_USB_POWER
134
135/** Non-simulator section **/
136#ifndef SIMULATOR
137
138/* Define this if you have a AMS AS3525v2 SoC */
139#define CONFIG_CPU AS3525v2
140
141/* Define this if you want to use the AS3525 i2c interface */
142#define CONFIG_I2C I2C_AS3525
143
144/* define this if the hardware can be powered off while charging */
145/* Sansa can't be powered off while charging */
146/* #define HAVE_POWEROFF_WHILE_CHARGING */
147
148/* define current usage levels (based on battery bench) */
149#define CURRENT_NORMAL 19 /* TODO copied from clipplus */
150#define CURRENT_BACKLIGHT 15 /* TODO copied from clipplus */
151#define CURRENT_RECORD CURRENT_NORMAL /* TODO */
152
153/* maximum charging current */
154#define CURRENT_MAX_CHG 150
155
156/* Define this to the CPU frequency */
157#define CPU_FREQ 240000000
158
159/* Type of LCD */
160#define CONFIG_LCD LCD_CLIPZIP
161
162/* USB On-the-go */
163#define CONFIG_USBOTG USBOTG_AS3525v2
164
165/* enable these for the experimental usb stack */
166#define HAVE_USBSTACK
167#define USB_HANDLED_BY_OF
168//#define USE_ROCKBOX_USB
169#define USB_VENDOR_ID 0x0781 /* TODO */
170#define USB_PRODUCT_ID 0x74d1 /* TODO */
171
172
173/* Virtual LED (icon) */
174#define CONFIG_LED LED_VIRTUAL
175
176/* Define this if you have adjustable CPU frequency */
177//#define HAVE_ADJUSTABLE_CPU_FREQ
178
179#define BOOTFILE_EXT "sansa"
180#define BOOTFILE "rockbox." BOOTFILE_EXT
181#define BOOTDIR "/.rockbox"
182
183#define ICODE_ATTR_TREMOR_NOT_MDCT
184
185#define INCLUDE_TIMEOUT_API
186
187#endif /* SIMULATOR */
188
189/** Port-specific settings **/
190
191/* Main LCD backlight brightness range and defaults */
192#define MIN_BRIGHTNESS_SETTING 1 /* TODO */
193#define MAX_BRIGHTNESS_SETTING 12 /* TODO */
194#define DEFAULT_BRIGHTNESS_SETTING 6 /* TODO */
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
200
201/* Define this if a programmable hotkey is mapped */
202//#define HAVE_HOTKEY