summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriabdalkader <i.abdalkader@gmail.com>2025-02-28 09:52:19 +0100
committerDamien George <damien@micropython.org>2025-04-22 12:30:22 +1000
commitfa76d52edbbecf4b3dbc27238d4ec83fb88a55ff (patch)
tree9045446e3e62dab59b0de73a27510732779d267c
parent193460d18f018e7306812fb41283fc241342eb1a (diff)
drivers/ninaw10: Rename Bluetooth HCI backend driver.
Rename `bt_hci` to `bthci_uart` for consistency with the CYW43 driver and to distinguish it from HCI backends that use a different transport. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
-rw-r--r--drivers/ninaw10/nina_bthci_uart.c (renamed from drivers/ninaw10/nina_bt_hci.c)4
-rw-r--r--ports/rp2/CMakeLists.txt2
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ninaw10/nina_bt_hci.c b/drivers/ninaw10/nina_bthci_uart.c
index f0d1b9bc8..506317110 100644
--- a/drivers/ninaw10/nina_bt_hci.c
+++ b/drivers/ninaw10/nina_bthci_uart.c
@@ -50,8 +50,8 @@
#define OCF_SET_EVENT_MASK (0x0001)
#define OCF_RESET (0x0003)
-#define error_printf(...) // mp_printf(&mp_plat_print, "nina_bt_hci.c: " __VA_ARGS__)
-#define debug_printf(...) // mp_printf(&mp_plat_print, "nina_bt_hci.c: " __VA_ARGS__)
+#define error_printf(...) // mp_printf(&mp_plat_print, "nina_bthci_uart.c: " __VA_ARGS__)
+#define debug_printf(...) // mp_printf(&mp_plat_print, "nina_bthci_uart.c: " __VA_ARGS__)
// Provided by the port, and also possibly shared with the stack.
extern uint8_t mp_bluetooth_hci_cmd_buf[4 + 256];
diff --git a/ports/rp2/CMakeLists.txt b/ports/rp2/CMakeLists.txt
index fcc1a1e1b..53d00c7df 100644
--- a/ports/rp2/CMakeLists.txt
+++ b/ports/rp2/CMakeLists.txt
@@ -431,7 +431,7 @@ if (MICROPY_PY_NETWORK_NINAW10)
# Enable NINA-W10 WiFi and Bluetooth drivers.
list(APPEND MICROPY_SOURCE_DRIVERS
- ${MICROPY_DIR}/drivers/ninaw10/nina_bt_hci.c
+ ${MICROPY_DIR}/drivers/ninaw10/nina_bthci_uart.c
${MICROPY_DIR}/drivers/ninaw10/nina_wifi_drv.c
${MICROPY_DIR}/drivers/ninaw10/nina_wifi_bsp.c
${MICROPY_DIR}/drivers/ninaw10/machine_pin_nina.c