Auto-detect binary in TTS / encoder setting dialog by searching $PATH. Only linux...
[Rockbox.git] / firmware / export / config-ipodnano.h
blobfcba445bcee218328847a1ee770a4e8628318d73
1 /*
2 * This config file is for the Apple iPod Nano
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 #define IPOD_ARCH 1
8 /* For Rolo and boot loader */
9 #define MODEL_NUMBER 4
11 /* define this if you have recording possibility */
12 #define HAVE_RECORDING
14 /* Define bitmask of input sources - recordable bitmask can be defined
15 explicitly if different */
16 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN)
18 /* define the bitmask of hardware sample rates */
19 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
21 /* define the bitmask of recording sample rates */
22 #define REC_SAMPR_CAPS (SAMPR_CAP_44)
24 /* define this if you have a bitmap LCD display */
25 #define HAVE_LCD_BITMAP
27 /* define this if you have a colour LCD */
28 #define HAVE_LCD_COLOR
30 /* define this if you have access to the quickscreen */
31 #define HAVE_QUICKSCREEN
32 /* define this if you have access to the pitchscreen */
33 #define HAVE_PITCHSCREEN
35 /* define this if you would like tagcache to build on this target */
36 #define HAVE_TAGCACHE
38 /* LCD dimensions */
39 #define LCD_WIDTH 176
40 #define LCD_HEIGHT 132
41 #define LCD_DEPTH 16 /* 65536 colours */
42 #define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 byte-swapped */
44 #define CONFIG_KEYPAD IPOD_4G_PAD
46 /* Define this if you do software codec */
47 #define CONFIG_CODEC SWCODEC
49 /* define this if you have a real-time clock */
50 #define CONFIG_RTC RTC_PCF50605
52 /* Define if the device can wake from an RTC alarm */
53 #define HAVE_RTC_ALARM
55 /* Define this if you have a software controlled poweroff */
56 #define HAVE_SW_POWEROFF
58 /* The number of bytes reserved for loadable codecs */
59 #define CODEC_SIZE 0x80000
61 /* The number of bytes reserved for loadable plugins */
62 #define PLUGIN_BUFFER_SIZE 0x80000
64 /* Define this if you have the WM8975 audio codec */
65 #define HAVE_WM8975
67 #define AB_REPEAT_ENABLE 1
68 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
70 /* Define this for LCD backlight available */
71 #define HAVE_BACKLIGHT
73 /* We can fade the backlight by using PWM */
74 #define HAVE_BACKLIGHT_PWM_FADING
76 /* Define this if you can detect headphones */
77 #define HAVE_HEADPHONE_DETECTION
79 /* define this if you have a flash memory storage */
80 #define HAVE_FLASH_STORAGE
82 #define BATTERY_CAPACITY_DEFAULT 300 /* default battery capacity */
83 #define BATTERY_CAPACITY_MIN 200 /* min. capacity selectable */
84 #define BATTERY_CAPACITY_MAX 600 /* max. capacity selectable */
85 #define BATTERY_CAPACITY_INC 20 /* capacity increment */
86 #define BATTERY_TYPES_COUNT 1 /* only one type */
88 /* Hardware controlled charging? FIXME */
89 //#define CONFIG_CHARGING CHARGING_SIMPLE
91 /* define this if the unit can be powered or charged via USB */
92 #define HAVE_USB_POWER
94 #ifndef SIMULATOR
96 /* Define this if you have a PortalPlayer PP5022 */
97 #define CONFIG_CPU PP5022
99 /* Define this if you want to use the PP5020 i2c interface */
100 #define CONFIG_I2C I2C_PP5020
102 /* define this if the hardware can be powered off while charging */
103 //#define HAVE_POWEROFF_WHILE_CHARGING
105 /* The start address index for ROM builds */
106 #define ROM_START 0x00000000
108 /* The size of the flash ROM */
109 #define FLASH_SIZE 0x100000
111 /* Define this to the CPU frequency */
112 #define CPU_FREQ 24000000
114 #define CONFIG_LCD LCD_IPODNANO
116 /* Offset ( in the firmware file's header ) to the file length */
117 #define FIRMWARE_OFFSET_FILE_LENGTH 0
119 /* Offset ( in the firmware file's header ) to the file CRC */
120 #define FIRMWARE_OFFSET_FILE_CRC 0
122 /* Offset ( in the firmware file's header ) to the real data */
123 #define FIRMWARE_OFFSET_FILE_DATA 8
125 #define USB_IPODSTYLE
127 /* USB On-the-go */
128 #define CONFIG_USBOTG USBOTG_ARC
130 /* enable these for the experimental usb stack
131 #define HAVE_USBSTACK
132 #define USBSTACK_CAPS CONTROLLER_DEVICE
135 /* Virtual LED (icon) */
136 #define CONFIG_LED LED_VIRTUAL
138 /* Define this if you have adjustable CPU frequency */
139 #define HAVE_ADJUSTABLE_CPU_FREQ
141 /* Define this if you can read an absolute wheel position */
142 #define HAVE_WHEEL_POSITION
144 #define BOOTFILE_EXT "ipod"
145 #define BOOTFILE "rockbox." BOOTFILE_EXT
146 #define BOOTDIR "/.rockbox"
148 #define ICODE_ATTR_TREMOR_NOT_MDCT
150 #endif