Accept FS#7228 by Dagni McPhee enable pitchscreen on sansa
[Rockbox.git] / firmware / export / config-e200.h
blob73ff2e69baf247bec1901e8edd1ea5c67eca094a
1 /*
2 * This config file is for the Sandisk Sansa e200
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 16
8 #define MODEL_NAME "Sandisk Sansa e200"
10 /* define this if you have recording possibility */
11 /*#define HAVE_RECORDING*/ /* TODO: add support for this */
12 /* Define bitmask of input sources - recordable bitmask can be defined
13 explicitly if different */
14 /* #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) */
16 /* define this if you have a bitmap LCD display */
17 #define HAVE_LCD_BITMAP
19 /* define this if you have a colour LCD */
20 #define HAVE_LCD_COLOR
22 /* define this if you have LCD enable function */
23 #define HAVE_LCD_ENABLE
25 #define HAVE_BACKLIGHT_BRIGHTNESS
26 /* Main LCD backlight brightness range and defaults */
27 #define MIN_BRIGHTNESS_SETTING 1
28 #define MAX_BRIGHTNESS_SETTING 12
29 #define DEFAULT_BRIGHTNESS_SETTING 6
31 /* define this if you have a light associated with the buttons */
32 #define HAVE_BUTTON_LIGHT
34 /* define this if you have access to the quickscreen */
35 #define HAVE_QUICKSCREEN
37 /* define this if you have access to the pitchscreen */
38 #define HAVE_PITCHSCREEN
40 /* define this if you would like tagcache to build on this target */
41 #define HAVE_TAGCACHE
43 /* LCD dimensions */
44 #define LCD_WIDTH 176
45 #define LCD_HEIGHT 220
46 #define LCD_DEPTH 16 /* 65536 colours */
47 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
49 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
51 #define CONFIG_KEYPAD SANSA_E200_PAD
53 /* Define this if you do software codec */
54 #define CONFIG_CODEC SWCODEC
55 /* There is no hardware tone control */
56 #define HAVE_SW_TONE_CONTROLS
57 /* The PP5024 has a built-in AustriaMicrosystems AS3514 */
58 #define HAVE_AS3514
60 /* define this if you have a real-time clock */
61 #ifndef BOOTLOADER
62 #define CONFIG_RTC RTC_AS3514
63 #endif
65 /* Define this if you have a software controlled poweroff */
66 #define HAVE_SW_POWEROFF
68 /* Some Sansa E200s seem to be FAT16 formatted */
69 #define HAVE_FAT16SUPPORT
71 /* The number of bytes reserved for loadable codecs */
72 #define CODEC_SIZE 0x80000
74 /* The number of bytes reserved for loadable plugins */
75 #define PLUGIN_BUFFER_SIZE 0x80000
77 #define AB_REPEAT_ENABLE 1
79 /* FM Tuner */
80 /*#define CONFIG_TUNER TEA5767
81 #define CONFIG_TUNER_XTAL 32768 *//* TODO: what is this? */
83 /* Define this for LCD backlight available */
84 #define HAVE_BACKLIGHT
86 #define BATTERY_CAPACITY_DEFAULT 750 /* default battery capacity */
88 #ifndef SIMULATOR
90 /* Define this if you have a PortalPlayer PP5024 */
91 #define CONFIG_CPU PP5024
93 /* Define this if you want to use the PP5024 i2c interface */
94 #define CONFIG_I2C I2C_PP5024
96 /* Type of mobile power */
97 #define CONFIG_BATTERY BATT_LIION750
98 #define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */
99 #define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */
100 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
101 #define BATTERY_TYPES_COUNT 1 /* only one type */
102 #define BATTERY_SCALE_FACTOR 5005 /* ADC should read 0x3ff=5.12V */
104 /* Hardware controlled charging? FIXME */
105 #define CONFIG_CHARGING CHARGING_SIMPLE
107 /* define this if the hardware can be powered off while charging */
108 /* Sansa can't be powered off while charging */
109 /* #define HAVE_POWEROFF_WHILE_CHARGING */
111 /* The start address index for ROM builds */
112 #define ROM_START 0x00000000
114 /* Define this to the CPU frequency */
115 #define CPU_FREQ 75000000
117 /* Type of LCD TODO: hopefully the same as the x5 but check this*/
118 #define CONFIG_LCD LCD_X5
120 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
121 only used when loading the old format rockbox.e200 file */
122 #define FIRMWARE_OFFSET_FILE_CRC 0x0
123 #define FIRMWARE_OFFSET_FILE_DATA 0x8
125 /* #define USB_IPODSTYLE */
127 /* USB On-the-go */
128 #define CONFIG_USBOTG USBOTG_ARC
130 /* define this if the unit can be powered or charged via USB */
131 #define HAVE_USB_POWER
133 /* Virtual LED (icon) */
134 #define CONFIG_LED LED_VIRTUAL
136 /* Define this if you have adjustable CPU frequency */
137 /*#define HAVE_ADJUSTABLE_CPU_FREQ*/
139 #define BOOTFILE_EXT "mi4"
140 #define BOOTFILE "rockbox." BOOTFILE_EXT
141 #define OLD_BOOTFILE "rockbox.e200"
142 #define BOOTDIR "/.rockbox"
144 #define ICODE_ATTR_TREMOR_NOT_MDCT
146 #endif