Fix STM32F7 I2C interrupt handler

This commit is contained in:
Jussi Kivilinna 2017-05-04 06:51:44 -06:00 committed by Gregory Nutt
parent afc46cb7ba
commit acf0d17e5a

View File

@ -2141,7 +2141,7 @@ static int stm32_i2c_isr(int irq, void *context, FAR void *arg)
struct stm32_i2c_priv_s *priv = (struct stm32_i2c_priv_s *)arg;
DEBUGASSERT(priv != NULL);
return stm32_i2c_isr_process(&stm32_i2c1_priv);
return stm32_i2c_isr_process(priv);
}
#endif
@ -2189,7 +2189,7 @@ static int stm32_i2c_init(FAR struct stm32_i2c_priv_s *priv)
* - Provide means to set peripheral clock source via RCC_CFGR3_I2CxSW
* - Set to HSI by default, make Kconfig option
*/
/* Force a frequency update */
priv->frequency = 0;