mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00: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
a163599d95
commit
0964c831e8
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…
Add table
Add a link
Reference in a new issue