Use different read and write buffer sizes. Due to interaction between common transfer...
[kugel-rb.git] / firmware / export / config-m200v4.h
blob9ce5605a62755934ce97ff084fe4ec025af3627f
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 CONFIG_I2C I2C_AS3525
110 #define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */
111 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
112 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
113 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
114 #define BATTERY_TYPES_COUNT 1 /* only one type */
116 /* define this if the unit should not shut down on low battery. */
117 #define NO_LOW_BATTERY_SHUTDOWN
119 #ifndef SIMULATOR
121 /* Define this if you have an AMS AS3525 */
122 #define CONFIG_CPU AS3525
124 /* Define this if you want to use the AS3525 i2c interface */
125 #define CONFIG_I2C I2C_AS3525
127 /* Define this to the CPU frequency */
128 #define CPU_FREQ 250000000
130 /* Define this if you have adjustable CPU frequency */
131 #define HAVE_ADJUSTABLE_CPU_FREQ
133 /* Offset ( in the firmware file's header ) to the file CRC */
134 #define FIRMWARE_OFFSET_FILE_CRC 0
136 /* Offset ( in the firmware file's header ) to the real data */
137 #define FIRMWARE_OFFSET_FILE_DATA 8
139 /* Software controlled LED */
140 #define CONFIG_LED LED_VIRTUAL
142 #define CONFIG_LCD LCD_SSD1815
144 #define BOOTFILE_EXT "sansa"
145 #define BOOTFILE "rockbox." BOOTFILE_EXT
146 #define BOOTDIR "/.rockbox"
148 #define IBSS_ATTR_VOICE_STACK
149 #define ICODE_ATTR_TREMOR_NOT_MDCT
150 #define ICODE_ATTR_TREMOR_MDCT
151 #define ICODE_ATTR_FLAC
152 #define IBSS_ATTR_FLAC_DECODED0
153 #define ICONST_ATTR_MPA_HUFFMAN
154 #define IBSS_ATTR_MPC_SAMPLE_BUF
155 #define ICODE_ATTR_ALAC
156 #define IBSS_ATTR_SHORTEN_DECODED0
158 #endif /* SIMULATOR */