diff options
author | Robert Kukla <roolku@rockbox.org> | 2007-02-28 13:20:36 +0000 |
---|---|---|
committer | Robert Kukla <roolku@rockbox.org> | 2007-02-28 13:20:36 +0000 |
commit | 50b5ee4781a44234b4ea5dccf3be6ae5ec9fd324 (patch) | |
tree | d5197ea90c5dcfa574b84743ecbbd7fa2a754e55 /firmware/export/sw_i2c.h | |
parent | 343c428f2cf97c82540aecf07d154e43ff40e79a (diff) | |
download | rockbox-50b5ee4781a44234b4ea5dccf3be6ae5ec9fd324.tar.gz rockbox-50b5ee4781a44234b4ea5dccf3be6ae5ec9fd324.zip |
FS#6419 - driver for H1x0 series RTC Mod with runtime detection
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12520 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/sw_i2c.h')
-rw-r--r-- | firmware/export/sw_i2c.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/firmware/export/sw_i2c.h b/firmware/export/sw_i2c.h new file mode 100644 index 0000000000..42dccad742 --- /dev/null +++ b/firmware/export/sw_i2c.h @@ -0,0 +1,30 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (C) 2006 by Robert Kukla + * + * 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. + * + ****************************************************************************/ + +#ifndef _SW_I2C_H +#define _SW_I2C_H + +#define SW_I2C_WRITE 0 +#define SW_I2C_READ 1 + +void sw_i2c_init(void); +int sw_i2c_write(unsigned char chip, unsigned char location, const unsigned char* buf, int count); +int sw_i2c_read (unsigned char chip, unsigned char location, unsigned char* buf, int count); + +#endif |