X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fi2c.h;h=2c40efde75ea0906798bb572259b83ebcb069d70;hb=2053cc3e6aa26c20a8511ad7148dd704b8e0891e;hp=7e43c63bd8ca00b0f8a727c7b5f18184cf648016;hpb=31347827ab36869b5a1242009b3f6f74527c92ea;p=bertos.git diff --git a/bertos/drv/i2c.h b/bertos/drv/i2c.h index 7e43c63b..2c40efde 100644 --- a/bertos/drv/i2c.h +++ b/bertos/drv/i2c.h @@ -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 @@ -103,8 +105,6 @@ #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