* 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 "eeprom.h"
+#include "cfg/cfg_i2c.h"
+
#include <cfg/macros.h> // MIN()
#include <cfg/debug.h>
#include <cfg/module.h> // MOD_CHECK()
STATIC_ASSERT(countof(mem_info) == EEPROM_CNT);
+#if !CONFIG_I2C_DISABLE_OLD_API
/**
* Copy \a size bytes from buffer \a buf to
fd->fd.seek = kfile_genericSeek;
}
+
+#endif /* !CONFIG_I2C_DISABLE_OLD_API */
#if !CONFIG_I2C_DISABLE_OLD_API
+
/**
* 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);
-#endif
+#endif /* !CONFIG_I2C_DISABLE_OLD_API */
+
/*
* I2c new api
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));
}