From 2352d5d1fb1c05adebc60f1aea9a56a2d0ae5b8c Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Thu, 7 Jun 2018 12:01:11 +0000 Subject: [PATCH] stm32: i2c-v2: Fix typo in CR1_ADDRIE Reported in: https://github.com/libopencm3/libopencm3/issues/925 --- include/libopencm3/stm32/common/i2c_common_v2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libopencm3/stm32/common/i2c_common_v2.h b/include/libopencm3/stm32/common/i2c_common_v2.h index 5a6e1950..c5f5bafe 100644 --- a/include/libopencm3/stm32/common/i2c_common_v2.h +++ b/include/libopencm3/stm32/common/i2c_common_v2.h @@ -154,7 +154,7 @@ specific memorymap.h header before including this header file.*/ #define I2C_CR1_NACKIE (1 << 4) /* ADDRIE: Address match Interrupt enable (slave only) */ -#define I2C_CR1_DDRIE (1 << 3) +#define I2C_CR1_ADDRIE (1 << 3) /* RXIE: RX Interrupt enable */ #define I2C_CR1_RXIE (1 << 2)