1
0
Fork 0
forked from nuttx/nuttx-update

stm32h7/stm32_i2c: fix sending large data over i2c

To trigger TC interrupt NBYTES needs to be set before RELOAD is disabled
This commit is contained in:
Igor Mišić 2024-02-26 20:50:24 +01:00 committed by Alan Carvalho de Assis
parent a1a09f271f
commit 510b6221ca

View file

@ -1990,9 +1990,9 @@ static int stm32_i2c_isr_process(struct stm32_i2c_priv_s *priv)
i2cinfo("TCR: DISABLE RELOAD: NBYTES = dcnt = %i msgc = %i\n",
priv->dcnt, priv->msgc);
stm32_i2c_disable_reload(priv);
stm32_i2c_set_bytes_to_transfer(priv, priv->dcnt);
stm32_i2c_disable_reload(priv);
}
i2cinfo("TCR: EXIT dcnt = %i msgc = %i status 0x%08" PRIx32 "\n",