diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-21 14:45:43 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-22 14:06:10 -0400 |
commit | f34ba402c9a39acc43828918313a30d2fbc4e186 (patch) | |
tree | 69f8d2c12385a0e64ccffee69a96b7842590a088 /libmaple/include | |
parent | a3344f4ab3ab90b1aec05c97cb026cec9ec73e9e (diff) | |
download | librambutan-f34ba402c9a39acc43828918313a30d2fbc4e186.tar.gz librambutan-f34ba402c9a39acc43828918313a30d2fbc4e186.zip |
<libmaple/i2c.h>: Fix Doxygen.
Existing Doxygen was commenting I2C_IRQ_ERROR instead of
i2c_enable_irq(), as desired.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/include')
-rw-r--r-- | libmaple/include/libmaple/i2c.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmaple/include/libmaple/i2c.h b/libmaple/include/libmaple/i2c.h index 859edcd..9f65f13 100644 --- a/libmaple/include/libmaple/i2c.h +++ b/libmaple/include/libmaple/i2c.h @@ -243,6 +243,9 @@ static inline void i2c_stop_condition(i2c_dev *dev) { /* IRQ enable/disable */ +#define I2C_IRQ_ERROR I2C_CR2_ITERREN +#define I2C_IRQ_EVENT I2C_CR2_ITEVTEN +#define I2C_IRQ_BUFFER I2C_CR2_ITBUFEN /** * @brief Enable one or more I2C interrupts * @param dev I2C device @@ -251,9 +254,6 @@ static inline void i2c_stop_condition(i2c_dev *dev) { * I2C_IRQ_EVENT (event interrupt), and * I2C_IRQ_BUFFER (buffer interrupt). */ -#define I2C_IRQ_ERROR I2C_CR2_ITERREN -#define I2C_IRQ_EVENT I2C_CR2_ITEVTEN -#define I2C_IRQ_BUFFER I2C_CR2_ITBUFEN static inline void i2c_enable_irq(i2c_dev *dev, uint32 irqs) { dev->regs->CR2 |= irqs; } |