Skip to content

Commit e88ece1

Browse files
committed
fix(i2c): no I2C2_ER_IRQn for new STM32C071x
Signed-off-by: Frederic Pillon <[email protected]>
1 parent e581c5c commit e88ece1

File tree

1 file changed

+2
-2
lines changed
  • libraries/Wire/src/utility

1 file changed

+2
-2
lines changed

libraries/Wire/src/utility/twi.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -763,8 +763,8 @@ void i2c_init(i2c_t *obj, uint32_t timing, uint32_t ownAddress)
763763
__HAL_RCC_I2C2_FORCE_RESET();
764764
__HAL_RCC_I2C2_RELEASE_RESET();
765765
obj->irq = I2C2_EV_IRQn;
766-
#if !defined(STM32F0xx) && !defined(STM32G0xx) && !defined(STM32L0xx) && \
767-
!defined(STM32U0xx)
766+
#if !defined(STM32C0xx) && !defined(STM32F0xx) && !defined(STM32G0xx) && \
767+
!defined(STM32L0xx) && !defined(STM32U0xx)
768768
obj->irqER = I2C2_ER_IRQn;
769769
#endif /* !STM32F0xx && !STM32G0xx && !STM32L0xx && !STM32U0xx */
770770
i2c_handles[I2C2_INDEX] = handle;

0 commit comments

Comments
 (0)