zephyr/drivers/bluetooth
Jordan Yates b3f12b430f drivers: bluetooth: hci: spi: add small read delay
Add a small delay between reading the transport header and reading the
HCI data. Failing to do so on a nRF9160<->nRF52832 link was reliably
resulting in the nRF9160 trying to read data before the nRF52832 had
set up the SPI transaction, resulting in the host reading a buffer full
of 0x00 and having to run the entire read result again.

Transceiving a 10 byte packet takes at least 31uS, while 100 byte
packets are around 150uS (duration of `spi_transceive` call). Waiting
1 tick to eliminate the need for most retransmissions is a valid
tradeoff.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2023-07-05 14:15:18 +02:00
..
hci drivers: bluetooth: hci: spi: add small read delay 2023-07-05 14:15:18 +02:00
CMakeLists.txt Bluetooth: Move crypto toolbox functions from smp.c to their own files 2022-11-10 09:28:28 +01:00
Kconfig drivers: kconfig: unify menuconfig title strings 2023-03-28 15:06:06 +02:00
util.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00