diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-20 13:49:41 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-22 14:06:09 -0400 |
commit | 3029415c3ecf62a2c9f7270d0ddc83247d831168 (patch) | |
tree | 14032300bdbe4445b15cba29012ab2b610cd758b | |
parent | bcd28f11c2e7adfd488a10e59ed9dfad7877746d (diff) | |
download | librambutan-3029415c3ecf62a2c9f7270d0ddc83247d831168.tar.gz librambutan-3029415c3ecf62a2c9f7270d0ddc83247d831168.zip |
libmaple/i2c.h: Cosmetics.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
-rw-r--r-- | libmaple/include/libmaple/i2c.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libmaple/include/libmaple/i2c.h b/libmaple/include/libmaple/i2c.h index 2b36404..db5e6c8 100644 --- a/libmaple/include/libmaple/i2c.h +++ b/libmaple/include/libmaple/i2c.h @@ -259,7 +259,6 @@ static inline void i2c_set_clk_control(i2c_dev *dev, uint32 val) { dev->regs->CCR = ccr; } - /** * @brief Set SCL rise time * @param dev I2C device @@ -270,6 +269,7 @@ static inline void i2c_set_trise(i2c_dev *dev, uint32 trise) { dev->regs->TRISE = trise; } +/* Start/stop conditions */ /** * @brief Generate a start condition on the bus. @@ -305,6 +305,8 @@ static inline void i2c_stop_condition(i2c_dev *dev) { } +/* IRQ enable/disable */ + /** * @brief Enable one or more I2C interrupts * @param dev I2C device @@ -332,6 +334,7 @@ static inline void i2c_disable_irq(i2c_dev *dev, uint32 irqs) { dev->regs->CR2 &= ~irqs; } +/* ACK/NACK */ /** * @brief Enable I2C acknowledgment |