diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config-ipod4g.h | 2 | ||||
-rw-r--r-- | firmware/export/config-ipodcolor.h | 2 | ||||
-rw-r--r-- | firmware/export/config-ipodnano.h | 2 | ||||
-rw-r--r-- | firmware/export/config-ipodvideo.h | 2 | ||||
-rw-r--r-- | firmware/export/iap.h | 31 | ||||
-rw-r--r-- | firmware/export/kernel.h | 2 | ||||
-rw-r--r-- | firmware/export/serial.h | 5 |
7 files changed, 45 insertions, 1 deletions
diff --git a/firmware/export/config-ipod4g.h b/firmware/export/config-ipod4g.h index 89b14f9907..f6c71f39d8 100644 --- a/firmware/export/config-ipod4g.h +++ b/firmware/export/config-ipod4g.h | |||
@@ -186,4 +186,6 @@ | |||
186 | 186 | ||
187 | #define ICODE_ATTR_TREMOR_NOT_MDCT | 187 | #define ICODE_ATTR_TREMOR_NOT_MDCT |
188 | 188 | ||
189 | #define IPOD_ACCESSORY_PROTOCOL | ||
190 | |||
189 | #endif | 191 | #endif |
diff --git a/firmware/export/config-ipodcolor.h b/firmware/export/config-ipodcolor.h index 47b7a4eacf..58a888a969 100644 --- a/firmware/export/config-ipodcolor.h +++ b/firmware/export/config-ipodcolor.h | |||
@@ -166,4 +166,6 @@ | |||
166 | 166 | ||
167 | #define ICODE_ATTR_TREMOR_NOT_MDCT | 167 | #define ICODE_ATTR_TREMOR_NOT_MDCT |
168 | 168 | ||
169 | #define IPOD_ACCESSORY_PROTOCOL | ||
170 | |||
169 | #endif | 171 | #endif |
diff --git a/firmware/export/config-ipodnano.h b/firmware/export/config-ipodnano.h index 6017d0a2e8..8752181bb9 100644 --- a/firmware/export/config-ipodnano.h +++ b/firmware/export/config-ipodnano.h | |||
@@ -177,4 +177,6 @@ | |||
177 | 177 | ||
178 | #define ICODE_ATTR_TREMOR_NOT_MDCT | 178 | #define ICODE_ATTR_TREMOR_NOT_MDCT |
179 | 179 | ||
180 | #define IPOD_ACCESSORY_PROTOCOL | ||
181 | |||
180 | #endif | 182 | #endif |
diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h index d04e562086..ab974dc236 100644 --- a/firmware/export/config-ipodvideo.h +++ b/firmware/export/config-ipodvideo.h | |||
@@ -197,4 +197,6 @@ | |||
197 | 197 | ||
198 | #define ICODE_ATTR_TREMOR_NOT_MDCT | 198 | #define ICODE_ATTR_TREMOR_NOT_MDCT |
199 | 199 | ||
200 | #define IPOD_ACCESSORY_PROTOCOL | ||
201 | |||
200 | #endif | 202 | #endif |
diff --git a/firmware/export/iap.h b/firmware/export/iap.h new file mode 100644 index 0000000000..6c0b968ab0 --- /dev/null +++ b/firmware/export/iap.h | |||
@@ -0,0 +1,31 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id: iap.h 17400 2008-05-07 20:22:16Z xxxxxx $ | ||
9 | * | ||
10 | * Copyright (C) 2002 by Alan Korr | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | #ifndef __IAP_H__ | ||
21 | #define __IAP_H__ | ||
22 | |||
23 | extern int iap_getc(unsigned char x); | ||
24 | extern void iap_write_pkt(unsigned char data, int len); | ||
25 | extern void iap_setup(int ratenum); | ||
26 | extern void iap_bitrate_set(int ratenum); | ||
27 | extern void iap_periodic(void); | ||
28 | extern void iap_handlepkt(void); | ||
29 | extern void iap_track_changed(void); | ||
30 | |||
31 | #endif | ||
diff --git a/firmware/export/kernel.h b/firmware/export/kernel.h index ef65463e5d..29cf8f2eb9 100644 --- a/firmware/export/kernel.h +++ b/firmware/export/kernel.h | |||
@@ -78,6 +78,8 @@ | |||
78 | #define SYS_REMOTE_UNPLUGGED MAKE_SYS_EVENT(SYS_EVENT_CLS_PLUG, 5) | 78 | #define SYS_REMOTE_UNPLUGGED MAKE_SYS_EVENT(SYS_EVENT_CLS_PLUG, 5) |
79 | #define SYS_SCREENDUMP MAKE_SYS_EVENT(SYS_EVENT_CLS_MISC, 0) | 79 | #define SYS_SCREENDUMP MAKE_SYS_EVENT(SYS_EVENT_CLS_MISC, 0) |
80 | #define SYS_CAR_ADAPTER_RESUME MAKE_SYS_EVENT(SYS_EVENT_CLS_MISC, 1) | 80 | #define SYS_CAR_ADAPTER_RESUME MAKE_SYS_EVENT(SYS_EVENT_CLS_MISC, 1) |
81 | #define SYS_IAP_PERIODIC MAKE_SYS_EVENT(SYS_EVENT_CLS_MISC, 2) | ||
82 | #define SYS_IAP_HANDLEPKT MAKE_SYS_EVENT(SYS_EVENT_CLS_MISC, 3) | ||
81 | 83 | ||
82 | #define IS_SYSEVENT(ev) ((ev & SYS_EVENT) == SYS_EVENT) | 84 | #define IS_SYSEVENT(ev) ((ev & SYS_EVENT) == SYS_EVENT) |
83 | 85 | ||
diff --git a/firmware/export/serial.h b/firmware/export/serial.h index 425fc66fc6..8a4780c3f1 100644 --- a/firmware/export/serial.h +++ b/firmware/export/serial.h | |||
@@ -22,8 +22,11 @@ | |||
22 | #ifndef __SERIAL_H__ | 22 | #ifndef __SERIAL_H__ |
23 | #define __SERIAL_H__ | 23 | #define __SERIAL_H__ |
24 | 24 | ||
25 | extern void serial_setup (void); | 25 | extern void serial_setup(void); |
26 | extern void serial_bitrate(int rate); | ||
26 | extern int remote_control_rx(void); | 27 | extern int remote_control_rx(void); |
27 | extern void serial_tx(const unsigned char *buf); | 28 | extern void serial_tx(const unsigned char *buf); |
29 | extern void tx_writec(unsigned char c); | ||
30 | extern int tx_rdy(void); | ||
28 | 31 | ||
29 | #endif | 32 | #endif |