Auto-detect binary in TTS / encoder setting dialog by searching $PATH. Only linux...
[Rockbox.git] / firmware / export / config-h300.h
blob483582080e888db39010399af24c58f752e641e0
1 #define TARGET_TREE /* this target is using the target tree system */
2 /*
3 * This config file is for iriver H320, H340
4 */
5 #define IRIVER_H300_SERIES 1
7 /* For Rolo and boot loader */
8 #define MODEL_NUMBER 2
10 /* define this if you have a bitmap LCD display */
11 #define HAVE_LCD_BITMAP
13 /* define this if you have a colour LCD */
14 #define HAVE_LCD_COLOR
16 /* define this if you can flip your LCD */
17 #define HAVE_LCD_FLIP
19 /* define this if you have access to the quickscreen */
20 #define HAVE_QUICKSCREEN
21 /* define this if you have access to the pitchscreen */
22 #define HAVE_PITCHSCREEN
24 /* define this if you would like tagcache to build on this target */
25 #define HAVE_TAGCACHE
27 /* LCD dimensions */
28 #define LCD_WIDTH 220
29 #define LCD_HEIGHT 176
30 #define LCD_DEPTH 16 /* 65k colours */
31 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
33 /* remote LCD */
34 #define LCD_REMOTE_WIDTH 128
35 #define LCD_REMOTE_HEIGHT 64
36 #define LCD_REMOTE_DEPTH 1
38 #define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
40 #define CONFIG_KEYPAD IRIVER_H300_PAD
42 #define CONFIG_REMOTE_KEYPAD H300_REMOTE
44 /* Define this if you do software codec */
45 #define CONFIG_CODEC SWCODEC
47 /* define this if you have a real-time clock */
48 #define CONFIG_RTC RTC_PCF50606
50 /* Define this if you have an remote lcd */
51 #define HAVE_REMOTE_LCD
53 /* Define if we have a hardware defect that causes ticking on the audio line */
54 #define HAVE_REMOTE_LCD_TICKING
56 /* Define this for LCD backlight available */
57 #define HAVE_BACKLIGHT
58 #define HAVE_BACKLIGHT_BRIGHTNESS
60 /* Define this if you have a software controlled poweroff */
61 #define HAVE_SW_POWEROFF
63 /* The number of bytes reserved for loadable codecs */
64 #define CODEC_SIZE 0x80000
66 /* The number of bytes reserved for loadable plugins */
67 #define PLUGIN_BUFFER_SIZE 0x80000
69 #define AB_REPEAT_ENABLE 1
71 #define CONFIG_TUNER TEA5767
72 #define CONFIG_TUNER_XTAL 32768
74 #define HAVE_UDA1380
76 /* define this if you have recording possibility */
77 #define HAVE_RECORDING
79 /* Define bitmask of input sources - recordable bitmask can be defined
80 explicitly if different */
81 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
83 /* define hardware samples rate caps mask */
84 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
86 /* define the bitmask of recording sample rates */
87 #define REC_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
89 #define HAVE_AGC
91 #define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */
92 #define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */
93 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
94 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
95 #define BATTERY_TYPES_COUNT 1 /* only one type */
97 /* Hardware controlled charging with monitoring */
98 #define CONFIG_CHARGING CHARGING_MONITOR
100 /* define this if the unit can be powered or charged via USB */
101 #define HAVE_USB_POWER
103 #ifndef SIMULATOR
105 /* Define this if your LCD can be enabled/disabled */
106 #define HAVE_LCD_ENABLE
108 /* Define this if you have a Motorola SCF5249 */
109 #define CONFIG_CPU MCF5249
111 /* Define this if you want to use coldfire's i2c interface */
112 #define CONFIG_I2C I2C_COLDFIRE
114 /* The size of the flash ROM */
115 #define FLASH_SIZE 0x400000
117 /* Define this to the CPU frequency */
118 #define CPU_FREQ 11289600
120 /* Define this if you have ATA power-off control */
121 #define HAVE_ATA_POWER_OFF
123 /* Virtual LED (icon) */
124 #define CONFIG_LED LED_VIRTUAL
126 #define CONFIG_LCD LCD_H300
128 /* Offset ( in the firmware file's header ) to the file CRC */
129 #define FIRMWARE_OFFSET_FILE_CRC 0
131 /* Offset ( in the firmware file's header ) to the real data */
132 #define FIRMWARE_OFFSET_FILE_DATA 8
134 /* USB On-the-go */
135 #define CONFIG_USBOTG USBOTG_ISP1362
137 /* Define this if you have adjustable CPU frequency */
138 #define HAVE_ADJUSTABLE_CPU_FREQ
140 #define BOOTFILE_EXT "iriver"
141 #define BOOTFILE "rockbox." BOOTFILE_EXT
142 #define BOOTDIR "/.rockbox"
144 #define BOOTLOADER_ENTRYPOINT 0x001F0000
145 #define FLASH_ENTRYPOINT 0x00001000
146 #define FLASH_MAGIC 0xfbfbfbf1
148 /* Define this if there is an EEPROM chip */
149 #define HAVE_EEPROM
151 #endif /* SIMULATOR */
153 /* Define this for FM radio input available */
154 #define HAVE_FMRADIO_IN
156 /** Port-specific settings **/
158 /* Main LCD contrast range and defaults */
159 #define MIN_CONTRAST_SETTING 5
160 #define MAX_CONTRAST_SETTING 63
161 #define DEFAULT_CONTRAST_SETTING 40
163 /* Main LCD backlight brightness range and defaults */
164 /* accepts 0..15 but note that 0 and 1 give a black display on H300! */
165 #define MIN_BRIGHTNESS_SETTING 2 /* 2/16 (12.50%) */
166 #define MAX_BRIGHTNESS_SETTING 15 /* 15/16 (93.75%) */
167 #define DEFAULT_BRIGHTNESS_SETTING 9 /* 9/16 (56.25%) */
169 /* Remote LCD contrast range and defaults */
170 #define MIN_REMOTE_CONTRAST_SETTING 5
171 #define MAX_REMOTE_CONTRAST_SETTING 63
172 #define DEFAULT_REMOTE_CONTRAST_SETTING 42