Enable recording on clipv1/m200v4/c200v2
[kugel-rb.git] / firmware / export / config / sansam200v4.h
blobfa91631b33b6c4f17cf4a3d0a4619801794fbbd5
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 #define HW_SAMPR_CAPS SAMPR_CAP_ALL
16 /* define this if you have recording possibility */
17 #define HAVE_RECORDING
19 #define REC_SAMPR_CAPS SAMPR_CAP_ALL
21 /* Define bitmask of input sources - recordable bitmask can be defined
22 explicitly if different */
23 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
25 /* define this if you have a bitmap LCD display */
26 #define HAVE_LCD_BITMAP
28 /* define this if you can flip your LCD */
29 #define HAVE_LCD_FLIP
31 /* define this if you can invert the colours on your LCD */
32 #define HAVE_LCD_INVERT
34 /* define this if you have access to the quickscreen */
35 //#define HAVE_QUICKSCREEN
36 /* define this if you have access to the pitchscreen */
37 #define HAVE_PITCHSCREEN
39 /* define this if you would like tagcache to build on this target */
40 //#define HAVE_TAGCACHE
42 /* define this if you have a flash memory storage */
43 #define HAVE_FLASH_STORAGE
45 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
46 #define CONFIG_STORAGE STORAGE_SD
48 /* LCD dimensions */
49 #define LCD_WIDTH 128
50 #define LCD_HEIGHT 64
51 #define LCD_DEPTH 1
53 #define LCD_PIXELFORMAT VERTICAL_PACKING
55 /* Display colours, for screenshots and sim (0xRRGGBB) */
56 #define LCD_DARKCOLOR 0x000000
57 #define LCD_BRIGHTCOLOR 0x5e6854
58 #define LCD_BL_DARKCOLOR 0x000000
59 #define LCD_BL_BRIGHTCOLOR 0x3ca0e6
61 /* define this to indicate your device's keypad */
62 #define CONFIG_KEYPAD SANSA_M200_PAD
64 /* Define this to enable morse code input */
65 #define HAVE_MORSE_INPUT
67 /* define this if you have a real-time clock */
68 #ifndef BOOTLOADER
69 #define CONFIG_RTC RTC_AS3514
70 #endif
72 /* define this if you have RTC RAM available for settings */
73 //#define HAVE_RTC_RAM
75 /* Define this if you have a software controlled poweroff */
76 #define HAVE_SW_POWEROFF
78 /* The number of bytes reserved for loadable codecs */
79 #define CODEC_SIZE 0x48000 /* in IRAM */
81 /* The number of bytes reserved for loadable plugins */
82 #define PLUGIN_BUFFER_SIZE 0x45000
84 #define AB_REPEAT_ENABLE 1
86 #define CONFIG_TUNER TEA5767
87 #define CONFIG_TUNER_XTAL 32768
89 /* Define this if you do software codec */
90 #define CONFIG_CODEC SWCODEC
92 /* Define this if you have the TLV320 audio codec */
93 /*#define HAVE_TLV320*/
95 /* TLV320 has no tone controls, so we use the software ones */
96 #define HAVE_SW_TONE_CONTROLS
98 /* We're working on the assumption that the AS3525 has something
99 similar to the AS3514 for audio codec etc */
100 #define HAVE_AS3514
102 /* Define this for LCD backlight available */
103 #define HAVE_BACKLIGHT
105 /* Define how much SD sectors are reserved for OF */
106 #define AMS_OF_SIZE 0x5000
108 #define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */
109 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
110 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
111 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
112 #define BATTERY_TYPES_COUNT 1 /* only one type */
114 /* define this if the unit should not shut down on low battery. */
115 #define NO_LOW_BATTERY_SHUTDOWN
117 /* Define this if you have an AMS AS3525 */
118 #define CONFIG_CPU AS3525
120 /* Define this if you want to use the AS3525 i2c interface */
121 #define CONFIG_I2C I2C_AS3525
123 /* Define this to the CPU frequency */
124 #define CPU_FREQ 248000000
126 /* Define this if you have adjustable CPU frequency */
127 #define HAVE_ADJUSTABLE_CPU_FREQ
129 /* Offset ( in the firmware file's header ) to the file CRC */
130 #define FIRMWARE_OFFSET_FILE_CRC 0
132 /* Offset ( in the firmware file's header ) to the real data */
133 #define FIRMWARE_OFFSET_FILE_DATA 8
135 #ifndef BOOTLOADER
137 #define USB_HANDLED_BY_OF
139 #define CONFIG_USBOTG USBOTG_AS3525
141 /* enable these for the experimental usb stack */
142 #define HAVE_USBSTACK
143 #define USB_VENDOR_ID 0x0781
144 #define USB_PRODUCT_ID 0x7431
146 #endif /* BOOTLOADER */
148 #define CONFIG_LCD LCD_SSD1815
150 #define BOOTFILE_EXT "sansa"
151 #define BOOTFILE "rockbox." BOOTFILE_EXT
152 #define BOOTDIR "/.rockbox"
154 #define IBSS_ATTR_VOICE_STACK
155 #define ICODE_ATTR_TREMOR_NOT_MDCT
156 #define ICODE_ATTR_TREMOR_MDCT
157 #define ICODE_ATTR_FLAC
158 #define IBSS_ATTR_FLAC_DECODED0
159 #define ICONST_ATTR_MPA_HUFFMAN
160 #define IBSS_ATTR_MPC_SAMPLE_BUF
161 #define ICODE_ATTR_ALAC
162 #define IBSS_ATTR_SHORTEN_DECODED0
164 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
166 /* Define this if a programmable hotkey is mapped */
167 #define HAVE_HOTKEY