X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Favr%2Fdrv%2Fi2c_avr.h;h=6b1fac9836dd9175bf73205b688091b9175ae34e;hb=e2df0605d2326bf576d61ae926045ed0b18772b9;hp=2d496df7e228d3372c07b4f8991002495f13e225;hpb=1d0283ddb3ec3cf273e03207e7c6066897771e5c;p=bertos.git diff --git a/bertos/cpu/avr/drv/i2c_avr.h b/bertos/cpu/avr/drv/i2c_avr.h index 2d496df7..6b1fac98 100644 --- a/bertos/cpu/avr/drv/i2c_avr.h +++ b/bertos/cpu/avr/drv/i2c_avr.h @@ -26,30 +26,29 @@ * 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 2010 Develer S.r.l. (http://www.develer.com/) * * --> * - * \version $Id$ + * \brief Driver for the AVR ATMega TWI (implementation) * - * \author Stefano Fedrigo - * \author Bernie Innocenti - * - * \brief Driver for the AVR ATMega TWI (interface) + * \author Daniele Basile */ -#ifndef DRV_I2C_H -#define DRV_I2C_H +#ifndef I2C_AVR_H +#define I2C_AVR_H + +#include + +/** + * \name I2C devices enum + */ +enum +{ + I2C0, -#include + I2C_CNT /**< Number of serial ports */ +}; -bool i2c_start_w(uint8_t id); -bool i2c_start_r(uint8_t id); -void i2c_stop(void); -bool i2c_put(const uint8_t data); -bool i2c_send(const void *_buf, size_t count); -int i2c_get(bool ack); -bool i2c_recv(void *_buf, size_t count); -void i2c_init(void); +#endif /* I2C_LM3S_H */ -#endif /* DRV_I2C_H */