mirror of
https://github.com/apache/nuttx.git
synced 2025-01-12 20:58:44 +08:00
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:
parent
a1a09f271f
commit
510b6221ca
1 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue