Update preset.
[bertos.git] / bertos / drv / i2c.h
index 7e43c63bd8ca00b0f8a727c7b5f18184cf648016..2c40efde75ea0906798bb572259b83ebcb069d70 100644 (file)
@@ -30,7 +30,9 @@
  *
  * -->
  *
- * \addtogroup i2c_api
+ * \defgroup i2c_driver I2C driver
+ * \ingroup drivers
+ * \{
  * \brief I2C generic driver functions.
  *
  * Some hardware requires you to declare the number of transferred
 
 #define I2C_READBIT BV(0)
 
-/** \defgroup i2c_driver I2C driver
- */
 
 /*
  * The following macros are needed to maintain compatibility with older i2c API.
@@ -452,11 +452,12 @@ INLINE int i2c_error(I2c *i2c)
 
 /**
  * \ingroup old_i2c_api
- * I2C Backends.
+ * \name I2C Backends.
  * Sometimes your cpu does not have a builtin
  * i2c driver or you don't want, for some reason, to
  * use that.
  * With this you can choose, at compile time, which backend to use.
+ * Set the CONFIG_I2C_BACKEND configuration variable in cfg_i2c.h
  * @{
  */
 #define I2C_BACKEND_BUILTIN 0 ///< Uses cpu builtin i2c driver
@@ -538,6 +539,6 @@ INLINE void i2c_init_0(void)
 }
 #endif /* !CONFIG_I2C_DISABLE_OLD_API */
 
-
+/** \} */ //defgroup i2c_driver
 
 #endif