diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-19 15:33:30 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-22 14:06:09 -0400 |
commit | 68f35527c43001ceff27b9ec6f35e3be339742ca (patch) | |
tree | 578a22e80ad60d0606666cb22e8546344f65c72c | |
parent | 411c66ef48cafab8458d158ae8da4192044e46e7 (diff) | |
download | librambutan-68f35527c43001ceff27b9ec6f35e3be339742ca.tar.gz librambutan-68f35527c43001ceff27b9ec6f35e3be339742ca.zip |
Fix I2C_CR2_FREQ bit definition.
The existing value clobbers the entire register.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
-rw-r--r-- | libmaple/include/libmaple/i2c.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmaple/include/libmaple/i2c.h b/libmaple/include/libmaple/i2c.h index 4603837..8c5ab06 100644 --- a/libmaple/include/libmaple/i2c.h +++ b/libmaple/include/libmaple/i2c.h @@ -133,7 +133,7 @@ extern i2c_dev* const I2C2; #define I2C_CR2_ITBUFEN (1U << 10) // Buffer interrupt enable #define I2C_CR2_ITEVTEN (1U << 9) // Event interupt enable #define I2C_CR2_ITERREN (1U << 8) // Error interupt enable -#define I2C_CR2_FREQ 0xFFF // Peripheral input frequency +#define I2C_CR2_FREQ 0x3F // Peripheral input frequency /* Clock control register */ |