Auto-detect binary in TTS / encoder setting dialog by searching $PATH. Only linux...
[Rockbox.git] / firmware / export / config-tpj1022.h
blob067bb4f6f29fc1209eaf59f3b6a3b89babe5a3e1
1 /*
2 * This config file is for the Tatung Elio TPJ-1022
3 */
5 #define TARGET_TREE /* this target is using the target tree system */
7 /* For Rolo and boot loader */
8 #define MODEL_NUMBER 15
10 /* define this if you have recording possibility */
11 /*#define HAVE_RECORDING*/ /* TODO: add support for this */
13 /* define this if you have a bitmap LCD display */
14 #define HAVE_LCD_BITMAP
16 /* define this if you have a colour LCD */
17 #define HAVE_LCD_COLOR
19 /* define this if you have access to the quickscreen */
20 #define HAVE_QUICKSCREEN
22 /* define this if you have access to the pitchscreen */
23 #define HAVE_PITCHSCREEN
25 /* LCD dimensions */
26 #define LCD_WIDTH 220
27 #define LCD_HEIGHT 176
28 #define LCD_DEPTH 16 /* 65536 colours */
29 #define LCD_PIXELFORMAT RGB565
31 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
33 #define CONFIG_KEYPAD ELIO_TPJ1022_PAD
35 /* Define this if you do software codec */
36 #define CONFIG_CODEC SWCODEC
38 /* define this if you have a real-time clock */
39 #ifndef BOOTLOADER
40 //#define CONFIG_RTC RTC_E8564
41 #endif
43 /* Define this if you have a software controlled poweroff */
44 #define HAVE_SW_POWEROFF
46 /* The number of bytes reserved for loadable codecs */
47 #define CODEC_SIZE 0x80000
49 /* The number of bytes reserved for loadable plugins */
50 #define PLUGIN_BUFFER_SIZE 0x80000
52 /* Define this if you have the WM8731 audio codec */
53 #define HAVE_WM8731
55 #define AB_REPEAT_ENABLE 1
57 /* Define this for LCD backlight available */
58 #define HAVE_BACKLIGHT
60 #define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity
61 TODO: check this, probably different
62 for different models too */
63 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
64 #define BATTERY_CAPACITY_MAX 1600 /* max. capacity selectable */
65 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
66 #define BATTERY_TYPES_COUNT 1 /* only one type */
68 /* Hardware controlled charging? FIXME */
69 //#define CONFIG_CHARGING CHARGING_SIMPLE
71 /* define this if the unit can be powered or charged via USB */
72 /*#define HAVE_USB_POWER*/
74 #ifndef SIMULATOR
76 /* Define this if you have a PortalPlayer PP5020 */
77 #define CONFIG_CPU PP5020
79 /* Define this if you want to use the PP5020 i2c interface */
80 #define CONFIG_I2C I2C_PP5020
82 /* define this if the hardware can be powered off while charging */
83 /* TODO: should this be set for the H10? */
84 //#define HAVE_POWEROFF_WHILE_CHARGING
86 /* The start address index for ROM builds */
87 #define ROM_START 0x00000000
89 /* Define this to the CPU frequency */
90 /* TODO: this is probably wrong */
91 #define CPU_FREQ 11289600
93 /* Type of LCD */
94 #define CONFIG_LCD LCD_TPJ1022
96 #define DEFAULT_CONTRAST_SETTING 19
98 /* Offset ( in the firmware file's header ) to the file length */
99 #define FIRMWARE_OFFSET_FILE_LENGTH 0
101 /* Offset ( in the firmware file's header ) to the file CRC */
102 #define FIRMWARE_OFFSET_FILE_CRC 0
104 /* Offset ( in the firmware file's header ) to the real data */
105 #define FIRMWARE_OFFSET_FILE_DATA 8
107 /* #define USB_IPODSTYLE */
109 /* USB On-the-go */
110 #define CONFIG_USBOTG USBOTG_ARC
112 /* Virtual LED (icon) */
113 #define CONFIG_LED LED_VIRTUAL
115 /* Define this if you have adjustable CPU frequency */
116 #define HAVE_ADJUSTABLE_CPU_FREQ
118 #define BOOTFILE_EXT "elio"
119 #define BOOTFILE "rockbox." BOOTFILE_EXT
120 #define BOOTDIR "/.rockbox"
122 #endif