fix red :)
[kugel-rb.git] / firmware / export / config-m200v4.h
blob119bca8fe8aafeea6079d4e309d58242fd5381c6
1 /*
2 * This config file is for the Sansa M200 V4 series
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 42
9 #define MODEL_NAME "Sandisk Sansa m200 v4 series"
11 /* Enable FAT16 support */
12 #define HAVE_FAT16SUPPORT
14 #if 0 /* disabled since there is no driver (yet) */
16 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
18 /* define this if you have recording possibility */
19 #define HAVE_RECORDING
21 #define REC_SAMPR_CAPS (SAMPR_CAP_22)
22 #define REC_FREQ_DEFAULT REC_FREQ_22 /* Default is not 44.1kHz */
23 #define REC_SAMPR_DEFAULT SAMPR_22
25 #endif
27 /* Define bitmask of input sources - recordable bitmask can be defined
28 explicitly if different */
29 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
31 /* define this if you have a bitmap LCD display */
32 #define HAVE_LCD_BITMAP
34 /* define this if you can flip your LCD */
35 #define HAVE_LCD_FLIP
37 /* define this if you can invert the colours on your LCD */
38 #define HAVE_LCD_INVERT
40 /* define this if you have access to the quickscreen */
41 //#define HAVE_QUICKSCREEN
42 /* define this if you have access to the pitchscreen */
43 #define HAVE_PITCHSCREEN
45 /* define this if you would like tagcache to build on this target */
46 //#define HAVE_TAGCACHE
48 /* define this if you have a flash memory storage */
49 #define HAVE_FLASH_STORAGE
51 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
52 #define CONFIG_STORAGE STORAGE_SD
54 /* LCD dimensions */
55 #define LCD_WIDTH 128
56 #define LCD_HEIGHT 64
57 #define LCD_DEPTH 1
59 #define LCD_PIXELFORMAT VERTICAL_PACKING
61 /* Display colours, for screenshots and sim (0xRRGGBB) */
62 #define LCD_DARKCOLOR 0x000000
63 #define LCD_BRIGHTCOLOR 0x5e6854
64 #define LCD_BL_DARKCOLOR 0x000000
65 #define LCD_BL_BRIGHTCOLOR 0x3ca0e6
67 /* define this to indicate your device's keypad */
68 #define CONFIG_KEYPAD SANSA_M200_PAD
70 /* define this if you have a real-time clock */
71 #ifndef BOOTLOADER
72 #define CONFIG_RTC RTC_AS3514
73 #endif
75 /* define this if you have RTC RAM available for settings */
76 //#define HAVE_RTC_RAM
78 /* Define this if you have a software controlled poweroff */
79 #define HAVE_SW_POWEROFF
81 /* The number of bytes reserved for loadable codecs */
82 #define CODEC_SIZE 0x48000 /* in IRAM */
84 /* The number of bytes reserved for loadable plugins */
85 #define PLUGIN_BUFFER_SIZE 0x60000
87 #define AB_REPEAT_ENABLE 1
89 #define CONFIG_TUNER TEA5767
90 #define CONFIG_TUNER_XTAL 32768
92 /* Define this if you do software codec */
93 #define CONFIG_CODEC SWCODEC
95 /* Define this if you have the TLV320 audio codec */
96 /*#define HAVE_TLV320*/
98 /* TLV320 has no tone controls, so we use the software ones */
99 #define HAVE_SW_TONE_CONTROLS
101 /* We're working on the assumption that the AS3525 has something
102 similar to the AS3514 for audio codec etc */
103 #define HAVE_AS3514
105 /* Define this for LCD backlight available */
106 #define HAVE_BACKLIGHT
108 /* Define how much SD sectors are reserved for OF */
109 #define AMS_OF_SIZE 0x5000
111 #define CONFIG_I2C I2C_AS3525
113 #define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */
114 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
115 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
116 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
117 #define BATTERY_TYPES_COUNT 1 /* only one type */
119 /* define this if the unit should not shut down on low battery. */
120 #define NO_LOW_BATTERY_SHUTDOWN
122 #ifndef SIMULATOR
124 /* Define this if you have an AMS AS3525 */
125 #define CONFIG_CPU AS3525
127 /* Define this if you want to use the AS3525 i2c interface */
128 #define CONFIG_I2C I2C_AS3525
130 /* Define this to the CPU frequency */
131 #define CPU_FREQ 250000000
133 /* Define this if you have adjustable CPU frequency */
134 #define HAVE_ADJUSTABLE_CPU_FREQ
136 /* Offset ( in the firmware file's header ) to the file CRC */
137 #define FIRMWARE_OFFSET_FILE_CRC 0
139 /* Offset ( in the firmware file's header ) to the real data */
140 #define FIRMWARE_OFFSET_FILE_DATA 8
142 #ifndef BOOTLOADER
144 #define USB_HANDLED_BY_OF
146 #define CONFIG_USBOTG USBOTG_AS3525
148 /* enable these for the experimental usb stack */
149 #define HAVE_USBSTACK
150 #define USB_VENDOR_ID 0x0781
151 #define USB_PRODUCT_ID 0x7431
153 #endif /* BOOTLOADER */
155 /* Software controlled LED */
156 #define CONFIG_LED LED_VIRTUAL
158 #define CONFIG_LCD LCD_SSD1815
160 #define BOOTFILE_EXT "sansa"
161 #define BOOTFILE "rockbox." BOOTFILE_EXT
162 #define BOOTDIR "/.rockbox"
164 #define IBSS_ATTR_VOICE_STACK
165 #define ICODE_ATTR_TREMOR_NOT_MDCT
166 #define ICODE_ATTR_TREMOR_MDCT
167 #define ICODE_ATTR_FLAC
168 #define IBSS_ATTR_FLAC_DECODED0
169 #define ICONST_ATTR_MPA_HUFFMAN
170 #define IBSS_ATTR_MPC_SAMPLE_BUF
171 #define ICODE_ATTR_ALAC
172 #define IBSS_ATTR_SHORTEN_DECODED0
174 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
176 #endif /* SIMULATOR */