summaryrefslogtreecommitdiff
path: root/firmware/target/coldfire/iaudio/m3/fmradio_i2c-m3.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-03-14 08:54:54 +0000
committerJens Arnold <amiconn@rockbox.org>2008-03-14 08:54:54 +0000
commit8a6291dd63063bea12805a41fd43f13c17aa2be5 (patch)
treeda36f06943a24c9eb02e533fac3a825bd0f8e7d1 /firmware/target/coldfire/iaudio/m3/fmradio_i2c-m3.c
parent422454c87dda5d2766788d3a5a9c1a0544da9e84 (diff)
downloadrockbox-8a6291dd63063bea12805a41fd43f13c17aa2be5.tar.gz
rockbox-8a6291dd63063bea12805a41fd43f13c17aa2be5.zip
More iAudio M3 work. Target build compiles, but same problem regarding plugins as the simulator. Boots to the menu, but it can't be used yet because only main & remote Play button work. USB works.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16660 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/coldfire/iaudio/m3/fmradio_i2c-m3.c')
-rw-r--r--firmware/target/coldfire/iaudio/m3/fmradio_i2c-m3.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/firmware/target/coldfire/iaudio/m3/fmradio_i2c-m3.c b/firmware/target/coldfire/iaudio/m3/fmradio_i2c-m3.c
new file mode 100644
index 0000000000..dcd945d813
--- /dev/null
+++ b/firmware/target/coldfire/iaudio/m3/fmradio_i2c-m3.c
@@ -0,0 +1,37 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 * Physical interface of the Philips TEA5767 in iAudio M3
10 *
11 * Copyright (C) 2002 by Linus Nielsen Feltzing
12 *
13 * All files in this archive are subject to the GNU General Public License.
14 * See the file COPYING in the source tree root for full license agreement.
15 *
16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17 * KIND, either express or implied.
18 *
19 ****************************************************************************/
20#include "config.h"
21
22#if (CONFIG_TUNER & TEA5767)
23
24#include "i2c-coldfire.h"
25
26int fmradio_i2c_write(unsigned char address, const unsigned char* buf,
27 int count)
28{
29 return i2c_write(I2C_IFACE_0, address, buf, count);
30}
31
32int fmradio_i2c_read(unsigned char address, unsigned char* buf, int count)
33{
34 return i2c_read(I2C_IFACE_0, address, buf, count);
35}
36
37#endif