mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
stm32_i2c_alt:Duplicate non CS dev of regval
This commit is contained in:
@@ -1867,7 +1867,6 @@ static int stm32_i2c_isr(struct stm32_i2c_priv_s *priv)
|
||||
#else
|
||||
/* Clear all interrupts */
|
||||
|
||||
uint32_t regval;
|
||||
regval = stm32_i2c_getreg(priv, STM32_I2C_CR2_OFFSET);
|
||||
regval &= ~I2C_CR2_ALLINTS;
|
||||
stm32_i2c_putreg(priv, STM32_I2C_CR2_OFFSET, regval);
|
||||
|
||||
Reference in New Issue
Block a user