2007-09-21 09:06:02 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
2007-09-22 15:43:38 +00:00
|
|
|
* $Id$
|
2007-09-21 09:06:02 +00:00
|
|
|
*
|
2007-09-30 16:29:21 +00:00
|
|
|
* Copyright (C) 2007 by Karl Kurbjun
|
2007-09-21 09:06:02 +00:00
|
|
|
*
|
|
|
|
* All files in this archive are subject to the GNU General Public License.
|
|
|
|
* See the file COPYING in the source tree root for full license agreement.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
2007-09-30 16:29:21 +00:00
|
|
|
#include "system.h"
|
|
|
|
#include "i2c-dm320.h"
|
2007-09-21 09:06:02 +00:00
|
|
|
|
2007-10-13 14:53:34 +00:00
|
|
|
#if 0
|
2007-09-30 16:29:21 +00:00
|
|
|
static int i2c_getack(void)
|
|
|
|
{
|
2007-10-13 14:53:34 +00:00
|
|
|
return 0;
|
2007-09-30 16:29:21 +00:00
|
|
|
}
|
2007-09-21 09:06:02 +00:00
|
|
|
|
2007-09-30 16:29:21 +00:00
|
|
|
static int i2c_start(void)
|
|
|
|
{
|
2007-10-13 14:53:34 +00:00
|
|
|
return 0;
|
2007-09-30 16:29:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void i2c_stop(void)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
static int i2c_outb(unsigned char byte)
|
|
|
|
{
|
2007-10-13 14:53:34 +00:00
|
|
|
(void) byte;
|
|
|
|
return 0;
|
2007-09-30 16:29:21 +00:00
|
|
|
}
|
2007-10-13 14:53:34 +00:00
|
|
|
#endif
|
2007-09-30 16:29:21 +00:00
|
|
|
|
|
|
|
void i2c_write(int addr, const unsigned char *buf, int count)
|
|
|
|
{
|
2007-10-13 14:53:34 +00:00
|
|
|
(void) addr;
|
|
|
|
(void) buf;
|
|
|
|
(void) count;
|
2007-09-30 16:29:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void i2c_init(void)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|