Skip to content

Commit 32eae53

Browse files
committed
stm32/boards: Enable support for bluetooth on WB55 boards.
1 parent 6a64b28 commit 32eae53

4 files changed

Lines changed: 16 additions & 0 deletions

File tree

ports/stm32/boards/NUCLEO_WB55/mpconfigboard.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,7 @@
6161
#define MICROPY_HW_USB_FS (1)
6262
#define USBD_CDC_RX_DATA_SIZE (512)
6363
#define USBD_CDC_TX_DATA_SIZE (512)
64+
65+
// Bluetooth config
66+
#define MICROPY_HW_BLE_UART_ID (0)
67+
#define MICROPY_HW_BLE_UART_BAUDRATE (115200)

ports/stm32/boards/NUCLEO_WB55/mpconfigboard.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ CMSIS_MCU = STM32WB55xx
33
AF_FILE = boards/stm32wb55_af.csv
44
LD_FILES = boards/stm32wb55xg.ld boards/common_basic.ld
55
STARTUP_FILE = lib/stm32lib/CMSIS/STM32WBxx/Source/Templates/gcc/startup_stm32wb55xx_cm4.o
6+
7+
# MicroPython settings
8+
MICROPY_PY_BLUETOOTH = 1
9+
MICROPY_BLUETOOTH_NIMBLE = 1

ports/stm32/boards/USBDONGLE_WB55/mpconfigboard.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,7 @@
4040
#define MICROPY_HW_USB_FS (1)
4141
#define USBD_CDC_RX_DATA_SIZE (512)
4242
#define USBD_CDC_TX_DATA_SIZE (512)
43+
44+
// Bluetooth config
45+
#define MICROPY_HW_BLE_UART_ID (0)
46+
#define MICROPY_HW_BLE_UART_BAUDRATE (115200)

ports/stm32/boards/USBDONGLE_WB55/mpconfigboard.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ CMSIS_MCU = STM32WB55xx
33
AF_FILE = boards/stm32wb55_af.csv
44
LD_FILES = boards/stm32wb55xg.ld boards/common_basic.ld
55
STARTUP_FILE = lib/stm32lib/CMSIS/STM32WBxx/Source/Templates/gcc/startup_stm32wb55xx_cm4.o
6+
7+
# MicroPython settings
8+
MICROPY_PY_BLUETOOTH = 1
9+
MICROPY_BLUETOOTH_NIMBLE = 1

0 commit comments

Comments
 (0)