summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2008-12-25 01:46:16 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2008-12-25 01:46:16 +0000
commit70e9c7aed361787a404c4856211ddf53127fca9a (patch)
tree3072967cf3ed2779acf939e150694ef437cbad2d /firmware/export
parentf921f74873a1439cf4e25b87192b31c079863924 (diff)
downloadrockbox-70e9c7aed361787a404c4856211ddf53127fca9a.tar.gz
rockbox-70e9c7aed361787a404c4856211ddf53127fca9a.zip
Commit FS#8624 by Linus Nielsen, Ryan Press, Craig Elliott, and Kenderes Tamas. Adds preliminary support for numerous accessories that use the ipod serial port on the dock connector. See IpodAccessories for a list of tested devices.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19585 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config-ipod4g.h2
-rw-r--r--firmware/export/config-ipodcolor.h2
-rw-r--r--firmware/export/config-ipodnano.h2
-rw-r--r--firmware/export/config-ipodvideo.h2
-rw-r--r--firmware/export/iap.h31
-rw-r--r--firmware/export/kernel.h2
-rw-r--r--firmware/export/serial.h5
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
23extern int iap_getc(unsigned char x);
24extern void iap_write_pkt(unsigned char data, int len);
25extern void iap_setup(int ratenum);
26extern void iap_bitrate_set(int ratenum);
27extern void iap_periodic(void);
28extern void iap_handlepkt(void);
29extern 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
25extern void serial_setup (void); 25extern void serial_setup(void);
26extern void serial_bitrate(int rate);
26extern int remote_control_rx(void); 27extern int remote_control_rx(void);
27extern void serial_tx(const unsigned char *buf); 28extern void serial_tx(const unsigned char *buf);
29extern void tx_writec(unsigned char c);
30extern int tx_rdy(void);
28 31
29#endif 32#endif