summaryrefslogtreecommitdiff
path: root/py/modmicropython.c
diff options
context:
space:
mode:
authoriabdalkader <i.abdalkader@gmail.com>2023-05-10 15:59:15 +0200
committerDamien George <damien@micropython.org>2023-09-01 00:02:00 +1000
commita453b4f31d3b5928eeb48f50ce1d6314612538c1 (patch)
treeb3f066c55567923653b3ee1b20beb8a2b4c440e8 /py/modmicropython.c
parentfc495240a6c63a9839c8112f8c2bcbb6a0f168d0 (diff)
drivers/cyw43: Make the CYW43 Bluetooth HCI driver more portable.
This commit allows other ports to reuse the CYW43 HCI driver, by replacing all Bluetooth UART and control named pins with defines in config files and using `mpbthci` abstract functions (i.e. `mp_bluetooth_hci_*`) instead of the STM32 specific UART functions. Note: the function `cywbt_wait_cts_low` does not need to switch the CTS pin from alternate function to GPIO to read it. At least on stm32, mimxrt it's possible to just read the pin input. For example, see the STM32F7 RM0410 section 6.3.11, and the `SION` for IMXRT. So this function can also be available for other ports if the pin mode switching is removed. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
Diffstat (limited to 'py/modmicropython.c')
0 files changed, 0 insertions, 0 deletions