You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correct the transmit protocol for Nordic TWI. (#417)
* Correct the transmit protocol for Nordic TWI.
The register address and the data must be sent in one operation, as
specified in the nRF51 Series Reference Manual version 3.0.
* arch/ARM/Nordic/drivers/nrf_common/nrf-twi.adb:
(Master_Transmit): Clear any previous Suspend/Stop settings before
the transfer.
Only do a Stop_Sequence if requested.
(Mem_Write): Call Master_Transmit to send the data as well as the
register address in one transaction. This requires moving the
Do_Stop_Sequence setting to before this single transaction.
* Revert Nordic TWI Mem_Write to original.
Avoids creating a potentially large data buffer on the stack.
* arch/ARM/Nordic/drivers/nrf_common/nrf-twi.adb (Mem_Write): reverted to
sending the register address without a stop sequence, followed by the
data, followed by a stop sequence.
0 commit comments