micropython/ports/nrf/drivers
Stuart Langridge 30c7f1790b nrf/drivers/bluetooth: Handle PHY_UPDATE messages, used in Bluetooth 5.
Some devices, such as the LightBlue BTLE app on iOS, try to use Bluetooth 5
when connecting to a device.  This means that they will send a
BLE_GAP_EVT_PHY_UPDATE_REQUEST message to shift to a new physical layer.
If this event isn't handled, LightBlue (and likely other Bluetooth 5.0
central devices) will try to connect and then fail, staying in
"Connecting..." state forever.  This message should be replied to with
sd_ble_gap_phy_update, as documented in
drivers/bluetooth/s140_nrf52_6.1.1/s140_nrf52_6.1.1_API/include/ble_gap.h.

This commit handles the event.  LightBlue can now successfully connect to a
BTLE device on a P10059 nRF52840 dongle running MicroPython.  Two other
related events have logging added in case they are needed in the future.
2022-07-16 23:46:30 +10:00
..
bluetooth nrf/drivers/bluetooth: Handle PHY_UPDATE messages, used in Bluetooth 5. 2022-07-16 23:46:30 +10:00
secureboot nrf: Add nrf9160 base support. 2019-10-10 21:35:27 +02:00
usb nrf/drivers/usb: Fix MP_STREAM_POLL_RD support on USB CDC. 2022-03-30 15:34:25 +11:00
flash.c nrf/drivers: Add support for using flash block device with SoftDevice. 2021-08-08 23:09:26 +10:00
flash.h nrf: Add nrf9160 base support. 2019-10-10 21:35:27 +02:00
rng.c nrf: Update to work with nrfx v2.0.0, to match TinyUSB. 2020-05-15 15:06:02 +10:00
rng.h nrf: Remove custom "random" module and use extmod version instead. 2020-02-18 12:43:16 +11:00
softpwm.c nrf: Replace custom-HAL with nrfx-HAL 2018-07-18 17:12:26 +10:00
softpwm.h nrf/drivers: Add license text to ticker.h and softpwm.h. 2018-07-18 17:12:26 +10:00
ticker.c nrf/ticker: Remove duplicate NRFX_IRQ_PRIORITY_SET. 2019-01-31 17:50:10 +11:00
ticker.h nrf: Clean up source by removing tabs, trailing spaces, non-ASCII chars. 2019-08-28 13:34:45 +10:00