FS#11081 - Hotkey patch. Many targets supported, but some keymaps need work before...
[kugel-rb.git] / firmware / export / config / sansaview.h
blob0752b6c61d78d09f71cc7904ba9b8276d85a8a0a
1 /*
2 * This config file is for the Sandisk Sansa View
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 63
8 #define MODEL_NAME "Sandisk View"
10 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
12 /* define this if you have recording possibility */
13 /* #define HAVE_RECORDING */
15 #define REC_SAMPR_CAPS (SAMPR_CAP_22)
16 #define REC_FREQ_DEFAULT REC_FREQ_22 /* Default is not 44.1kHz */
17 #define REC_SAMPR_DEFAULT SAMPR_22
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 colour LCD */
27 #define HAVE_LCD_COLOR
29 /* define this if you want album art for this target */
30 #define HAVE_ALBUMART
32 /* define this to enable bitmap scaling */
33 #define HAVE_BMP_SCALING
35 /* define this to enable JPEG decoding */
36 #define HAVE_JPEG
38 /* define this if you have a light associated with the buttons */
39 #define HAVE_BUTTON_LIGHT
41 /* define this if you have access to the quickscreen */
42 #define HAVE_QUICKSCREEN
44 /* define this if you have access to the pitchscreen */
45 #define HAVE_PITCHSCREEN
47 /* define this if you would like tagcache to build on this target */
48 #define HAVE_TAGCACHE
50 /* LCD dimensions */
51 #define LCD_WIDTH 240
52 #define LCD_HEIGHT 320
53 #define LCD_DEPTH 16 /* 65536 colours */
54 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
56 #ifndef BOOTLOADER
57 /* define this if you have LCD enable function */
58 /* #define HAVE_LCD_ENABLE */
60 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
61 should be defined as well. */
62 /* #define HAVE_LCD_SLEEP */
63 /* #define HAVE_LCD_SLEEP_SETTING */
64 #endif
66 /* define this if you can flip your LCD */
67 #define HAVE_LCD_FLIP
69 /* define this if you can invert the colours on your LCD */
70 #define HAVE_LCD_INVERT
72 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
74 /* The only difference is that the power/hold is on the left instead of right on Fuze */
75 #define CONFIG_KEYPAD SANSA_FUZE_PAD
77 /* Define this to enable morse code input */
78 #define HAVE_MORSE_INPUT
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
85 /* define this if you have a real-time clock */
86 #ifndef BOOTLOADER
87 /* #define CONFIG_RTC RTC_ */
88 #endif
90 /* Define this if you have a software controlled poweroff */
91 #define HAVE_SW_POWEROFF
93 /* Required for MicroSD cards */
94 #define HAVE_FAT16SUPPORT
96 /* The number of bytes reserved for loadable codecs */
97 #define CODEC_SIZE 0x100000
99 /* The number of bytes reserved for loadable plugins */
100 #define PLUGIN_BUFFER_SIZE 0x80000
102 #define AB_REPEAT_ENABLE 1
104 /* Define this for LCD backlight available */
105 #define HAVE_BACKLIGHT
106 /* #define HAVE_BACKLIGHT_BRIGHTNESS */
108 /* define this if the unit uses a scrollwheel for navigation */
109 #define HAVE_SCROLLWHEEL
110 /* define to activate advanced wheel acceleration code */
111 #define HAVE_WHEEL_ACCELERATION
112 /* define from which rotation speed [degree/sec] on the acceleration starts */
113 #define WHEEL_ACCEL_START 540
114 /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
115 #define WHEEL_ACCELERATION 1
117 /* define this if you have a flash memory storage */
118 #define HAVE_FLASH_STORAGE
120 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
121 #define CONFIG_STORAGE STORAGE_SD
123 #define BATTERY_CAPACITY_DEFAULT 750 /* default battery capacity */
124 #define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */
125 #define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */
126 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
127 #define BATTERY_TYPES_COUNT 1 /* only one type */
129 /* Charging implemented in a target-specific algorithm */
130 #define CONFIG_CHARGING CHARGING_SIMPLE
131 #define HAVE_POWEROFF_WHILE_CHARGING
133 /* define current usage levels */
134 #define CURRENT_NORMAL 30 /* Toni's measurements in Nov 2008 */
135 #define CURRENT_BACKLIGHT 40 /* Screen is about 20, blue LEDs are another 20, so 40 if both */
136 #define CURRENT_RECORD 30 /* flash player, so this is just unboosted current*/
138 /* define this if the unit can be powered or charged via USB */
139 #define HAVE_USB_POWER
141 /* Define this if you have a PortalPlayer PP5024 */
142 #define CONFIG_CPU PP6100
144 /* Define this if you want to use the PP5024 i2c interface */
145 #define CONFIG_I2C I2C_PP5024
147 /* define this if the hardware can be powered off while charging */
148 /* Sansa can't be powered off while charging */
149 /* #define HAVE_POWEROFF_WHILE_CHARGING */
151 /* The start address index for ROM builds */
152 #define ROM_START 0x00000000
154 /* Define this to the CPU frequency */
155 #define CPU_FREQ 250000000
157 /* Type of LCD TODO: hopefully the same as the x5 but check this*/
158 #define CONFIG_LCD LCD_VIEW
160 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
161 only used when loading the old format rockbox.e200 file
162 Required for bootloader/common.c to compile */
163 #define FIRMWARE_OFFSET_FILE_CRC 0x0
164 #define FIRMWARE_OFFSET_FILE_DATA 0x8
166 #ifndef BOOTLOADER
167 #define HAVE_MULTIDRIVE
168 #define NUM_DRIVES 2
169 #define HAVE_HOTSWAP
170 #endif
172 /* USB On-the-go */
173 /* #define CONFIG_USBOTG USBOTG_ARC */
175 /* enable these for the experimental usb stack */
176 #define HAVE_USBSTACK
177 #define USE_ROCKBOX_USB
178 #define USB_VENDOR_ID 0x0781
179 #define USB_PRODUCT_ID 0x74b1
181 /* Define this if you have adjustable CPU frequency */
182 /* #define HAVE_ADJUSTABLE_CPU_FREQ */
184 #define MI4_FORMAT
185 #define BOOTFILE_EXT "mi4"
186 #define BOOTFILE "rockbox." BOOTFILE_EXT
187 #define BOOTDIR "/.rockbox"
189 #define ICODE_ATTR_TREMOR_NOT_MDCT
191 #define INCLUDE_TIMEOUT_API
193 /** Port-specific settings **/
195 /* Main LCD backlight brightness range and defaults */
196 #define MIN_BRIGHTNESS_SETTING 1
197 #define MAX_BRIGHTNESS_SETTING 12
198 #define DEFAULT_BRIGHTNESS_SETTING 6
200 /* Default recording levels */
201 #define DEFAULT_REC_MIC_GAIN 23
202 #define DEFAULT_REC_LEFT_GAIN 23
203 #define DEFAULT_REC_RIGHT_GAIN 23
205 /* Define this if a programmable hotkey is mapped */
206 #define HAVE_HOTKEY