brian-doherty commented on code in PR #10092:
URL: https://github.com/apache/nuttx/pull/10092#discussion_r1285933680
##########
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:
I tried both polled and with interrupts with the same results. I will do as
you suggest and add an nrf52 specific option for now using up_udelay(). One
possibility is that I've done something wrong with the GPIO pins but I doubt it
since I'm matching the other boards. (You may have already noted that the I2C
pin config in the NRF52840 manual does NOT work at all, unfortunately.)
--
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]