Add timer support for ATMega 1280 (contributed by Fabio Bizzi)
[bertos.git] / bertos / cpu / avr / drv / i2c_avr.h
index 2d496df7e228d3372c07b4f8991002495f13e225..6b1fac9836dd9175bf73205b688091b9175ae34e 100644 (file)
  * 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 <aleph@develer.com>
- * \author Bernie Innocenti <bernie@codewiz.org>
- *
- * \brief Driver for the AVR ATMega TWI (interface)
+ * \author Daniele Basile <asterix@develer.com>
  */
 
-#ifndef DRV_I2C_H
-#define DRV_I2C_H
+#ifndef I2C_AVR_H
+#define I2C_AVR_H
+
+#include <drv/i2c.h>
+
+/**
+ * \name I2C devices enum
+ */
+enum
+{
+       I2C0,
 
-#include <cfg/compiler.h>
+       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 */