* invalidate any other reasons why the executable file might be covered by
* the GNU General Public License.
*
* invalidate any other reasons why the executable file might be covered by
* the GNU General Public License.
*
- * Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
+ * Copyright 2003, 2004, 2005, 2010 Develer S.r.l. (http://www.develer.com/)
+#include "cfg/cfg_i2c.h"
+
#include <cfg/macros.h> // MIN()
#include <cfg/debug.h>
#include <cfg/module.h> // MOD_CHECK()
#include <cfg/macros.h> // MIN()
#include <cfg/debug.h>
#include <cfg/module.h> // MOD_CHECK()
STATIC_ASSERT(countof(mem_info) == EEPROM_CNT);
STATIC_ASSERT(countof(mem_info) == EEPROM_CNT);
+#if !CONFIG_I2C_DISABLE_OLD_API
/**
* Copy \a size bytes from buffer \a buf to
/**
* Copy \a size bytes from buffer \a buf to
fd->fd.seek = kfile_genericSeek;
}
fd->fd.seek = kfile_genericSeek;
}
+
+#endif /* !CONFIG_I2C_DISABLE_OLD_API */
#if !CONFIG_I2C_DISABLE_OLD_API
#if !CONFIG_I2C_DISABLE_OLD_API
/**
* I2C Backends.
* Sometimes your cpu does not have a builtin
/**
* I2C Backends.
* Sometimes your cpu does not have a builtin
bool i2c_send(const void *_buf, size_t count);
bool i2c_recv(void *_buf, size_t count);
bool i2c_send(const void *_buf, size_t count);
bool i2c_recv(void *_buf, size_t count);
+#endif /* !CONFIG_I2C_DISABLE_OLD_API */
+
i2c->hw = (struct I2cHardware *)(dev - I2C_BITBANG0);
i2c->vt = &i2c_bitbang_vt;
i2c->hw = (struct I2cHardware *)(dev - I2C_BITBANG0);
i2c->vt = &i2c_bitbang_vt;
- i2c_bitbang_init(I2C_DEV(i2c));
+ i2c_bitbangInit(I2C_DEV(i2c));
i2c_sdaHi(I2C_DEV(i2c));
i2c_sclHi(I2C_DEV(i2c));
}
i2c_sdaHi(I2C_DEV(i2c));
i2c_sclHi(I2C_DEV(i2c));
}
/**
* This macro should set SDA and SCL lines as input.
*/
/**
* This macro should set SDA and SCL lines as input.
*/
-INLINE void i2c_bitbang_init(int dev)
+INLINE void i2c_bitbangInit(int dev)
{
(void)(dev);
/* Implement me! */
{
(void)(dev);
/* Implement me! */