raiden00pl commented on code in PR #10092:
URL: https://github.com/apache/nuttx/pull/10092#discussion_r1285920831
##########
arch/arm/src/nrf52/nrf52_i2c.c:
##########
@@ -373,7 +374,9 @@ static int nrf52_i2c_transfer(struct i2c_master_s *dev,
/* Write number of bytes in TXD buffer */
regval = priv->dcnt;
- nrf52_i2c_putreg(priv, NRF52_TWIM_TXMAXCNT_OFFSET, regval);
+ nrf52_i2c_putreg(priv, NRF52_TWIM_TXDMAXCNT_OFFSET, regval);
+
+ nxsig_usleep(1);
Review Comment:
If the problem is related to the board then we have to introduce a delay
(but implemented with `up_udelay()`) configurable with Kconfig (in
`arch/nrf52/Kconfig`), but disabled by default. We cannot make the architecture
code dependent on the board implementation. Then every board that needs a fix
will have to set the delay in board defconfigs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]