micropython/ports
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
..
bare-arm bare-arm/mpconfigport.h: Disable remaining optional features. 2021-11-01 14:23:06 +11:00
cc3200 extmod/extmod.mk: Separate out extmod file list from py.mk to extmod.mk. 2022-06-21 00:14:34 +10:00
esp32 esp32/modmachine: Fix machine.freq to allow maximum 160MHz on ESP32-C3. 2022-07-08 22:46:51 +10:00
esp8266 esp8266/boards: Enable reverse-special-methods on GENERIC board. 2022-07-08 23:06:16 +10:00
javascript extmod/extmod.mk: Separate out extmod file list from py.mk to extmod.mk. 2022-06-21 00:14:34 +10:00
mimxrt mimxrt/boards: Remove conditional assignment of flash type/size. 2022-06-24 17:58:27 +10:00
minimal ports: Use default VFS config for import_stat and builtin_open. 2022-05-25 13:04:45 +10:00
nrf nrf/drivers/bluetooth: Handle PHY_UPDATE messages, used in Bluetooth 5. 2022-07-16 23:46:30 +10:00
pic16bit extmod/extmod.mk: Separate out extmod file list from py.mk to extmod.mk. 2022-06-21 00:14:34 +10:00
powerpc extmod/extmod.mk: Separate out extmod file list from py.mk to extmod.mk. 2022-06-21 00:14:34 +10:00
qemu-arm extmod/extmod.mk: Separate out extmod file list from py.mk to extmod.mk. 2022-06-21 00:14:34 +10:00
renesas-ra extmod/extmod.mk: Separate out extmod file list from py.mk to extmod.mk. 2022-06-21 00:14:34 +10:00
rp2 rp2/CMakeLists: Use armv6m mpy-cross arch for rp2. 2022-07-12 23:50:19 +10:00
samd extmod/extmod.mk: Separate out extmod file list from py.mk to extmod.mk. 2022-06-21 00:14:34 +10:00
stm32 stm32/sdram: Include boardctrl.h for fatal-error handler. 2022-07-11 14:47:46 +10:00
teensy extmod/extmod.mk: Separate out extmod file list from py.mk to extmod.mk. 2022-06-21 00:14:34 +10:00
unix unix/main: Restore tty settings on nlr_jump_fail(). 2022-07-12 17:20:37 +10:00
windows extmod/extmod.mk: Separate out extmod file list from py.mk to extmod.mk. 2022-06-21 00:14:34 +10:00
zephyr zephyr: Upgrade to Zephyr v3.1.0. 2022-06-17 16:51:34 +10:00