add global proxy / cache settings to httpget class. This removes the need of passing...
[Rockbox.git] / firmware / export / config-h300.h
blobde478aa163d3859c6774d7a8740bfaf3513b70a4
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 want album art for this target */
17 #define HAVE_ALBUMART
19 /* define this if you can flip your LCD */
20 #define HAVE_LCD_FLIP
22 /* define this if you have access to the quickscreen */
23 #define HAVE_QUICKSCREEN
24 /* define this if you have access to the pitchscreen */
25 #define HAVE_PITCHSCREEN
27 /* define this if you would like tagcache to build on this target */
28 #define HAVE_TAGCACHE
30 /* LCD dimensions */
31 #define LCD_WIDTH 220
32 #define LCD_HEIGHT 176
33 #define LCD_DEPTH 16 /* 65k colours */
34 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
36 /* remote LCD */
37 #define LCD_REMOTE_WIDTH 128
38 #define LCD_REMOTE_HEIGHT 64
39 #define LCD_REMOTE_DEPTH 1
41 #define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
43 #define CONFIG_KEYPAD IRIVER_H300_PAD
45 #define CONFIG_REMOTE_KEYPAD H300_REMOTE
47 /* Define this if you do software codec */
48 #define CONFIG_CODEC SWCODEC
50 /* define this if you have a real-time clock */
51 #define CONFIG_RTC RTC_PCF50606
53 /* Define this if you have an remote lcd */
54 #define HAVE_REMOTE_LCD
56 /* Define if we have a hardware defect that causes ticking on the audio line */
57 #define HAVE_REMOTE_LCD_TICKING
59 /* Define this for LCD backlight available */
60 #define HAVE_BACKLIGHT
61 #define HAVE_BACKLIGHT_BRIGHTNESS
63 /* Define this if you have a software controlled poweroff */
64 #define HAVE_SW_POWEROFF
66 /* The number of bytes reserved for loadable codecs */
67 #define CODEC_SIZE 0x80000
69 /* The number of bytes reserved for loadable plugins */
70 #define PLUGIN_BUFFER_SIZE 0x80000
72 #define AB_REPEAT_ENABLE 1
74 #define CONFIG_TUNER TEA5767
75 #define CONFIG_TUNER_XTAL 32768
77 #define HAVE_UDA1380
79 /* define this if you have recording possibility */
80 #define HAVE_RECORDING
82 /* Define bitmask of input sources - recordable bitmask can be defined
83 explicitly if different */
84 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
86 /* define hardware samples rate caps mask */
87 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
89 /* define the bitmask of recording sample rates */
90 #define REC_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
92 #define HAVE_AGC
94 #define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */
95 #define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */
96 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
97 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
98 #define BATTERY_TYPES_COUNT 1 /* only one type */
100 /* Hardware controlled charging with monitoring */
101 #define CONFIG_CHARGING CHARGING_MONITOR
103 /* define this if the unit can be powered or charged via USB */
104 #define HAVE_USB_POWER
106 #ifndef SIMULATOR
108 /* Define this if your LCD can be enabled/disabled */
109 #define HAVE_LCD_ENABLE
111 /* Define this if you have a Motorola SCF5249 */
112 #define CONFIG_CPU MCF5249
114 /* Define this if you want to use coldfire's i2c interface */
115 #define CONFIG_I2C I2C_COLDFIRE
117 /* The size of the flash ROM */
118 #define FLASH_SIZE 0x400000
120 /* Define this to the CPU frequency */
121 #define CPU_FREQ 11289600
123 /* Define this if you have ATA power-off control */
124 #define HAVE_ATA_POWER_OFF
126 /* Virtual LED (icon) */
127 #define CONFIG_LED LED_VIRTUAL
129 #define CONFIG_LCD LCD_H300
131 /* Offset ( in the firmware file's header ) to the file CRC */
132 #define FIRMWARE_OFFSET_FILE_CRC 0
134 /* Offset ( in the firmware file's header ) to the real data */
135 #define FIRMWARE_OFFSET_FILE_DATA 8
137 /* USB On-the-go */
138 #define CONFIG_USBOTG USBOTG_ISP1362
140 /* Define this if you have adjustable CPU frequency */
141 #define HAVE_ADJUSTABLE_CPU_FREQ
143 #define BOOTFILE_EXT "iriver"
144 #define BOOTFILE "rockbox." BOOTFILE_EXT
145 #define BOOTDIR "/.rockbox"
147 #define BOOTLOADER_ENTRYPOINT 0x001F0000
148 #define FLASH_ENTRYPOINT 0x00001000
149 #define FLASH_MAGIC 0xfbfbfbf1
151 /* Define this if there is an EEPROM chip */
152 #define HAVE_EEPROM
154 #endif /* SIMULATOR */
156 /* Define this for FM radio input available */
157 #define HAVE_FMRADIO_IN
159 /** Port-specific settings **/
161 /* Main LCD contrast range and defaults */
162 #define MIN_CONTRAST_SETTING 5
163 #define MAX_CONTRAST_SETTING 63
164 #define DEFAULT_CONTRAST_SETTING 40
166 /* Main LCD backlight brightness range and defaults */
167 /* accepts 0..15 but note that 0 and 1 give a black display on H300! */
168 #define MIN_BRIGHTNESS_SETTING 2 /* 2/16 (12.50%) */
169 #define MAX_BRIGHTNESS_SETTING 15 /* 15/16 (93.75%) */
170 #define DEFAULT_BRIGHTNESS_SETTING 9 /* 9/16 (56.25%) */
172 /* Remote LCD contrast range and defaults */
173 #define MIN_REMOTE_CONTRAST_SETTING 5
174 #define MAX_REMOTE_CONTRAST_SETTING 63
175 #define DEFAULT_REMOTE_CONTRAST_SETTING 42