Skip to content

Commit

Permalink
stm32/boards: Enable support for bluetooth on WB55 boards.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgeorge committed Nov 1, 2019
1 parent 6a64b28 commit 32eae53
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ports/stm32/boards/NUCLEO_WB55/mpconfigboard.h
Expand Up @@ -61,3 +61,7 @@
#define MICROPY_HW_USB_FS (1)
#define USBD_CDC_RX_DATA_SIZE (512)
#define USBD_CDC_TX_DATA_SIZE (512)

// Bluetooth config
#define MICROPY_HW_BLE_UART_ID (0)
#define MICROPY_HW_BLE_UART_BAUDRATE (115200)
4 changes: 4 additions & 0 deletions ports/stm32/boards/NUCLEO_WB55/mpconfigboard.mk
Expand Up @@ -3,3 +3,7 @@ CMSIS_MCU = STM32WB55xx
AF_FILE = boards/stm32wb55_af.csv
LD_FILES = boards/stm32wb55xg.ld boards/common_basic.ld
STARTUP_FILE = lib/stm32lib/CMSIS/STM32WBxx/Source/Templates/gcc/startup_stm32wb55xx_cm4.o

# MicroPython settings
MICROPY_PY_BLUETOOTH = 1
MICROPY_BLUETOOTH_NIMBLE = 1
4 changes: 4 additions & 0 deletions ports/stm32/boards/USBDONGLE_WB55/mpconfigboard.h
Expand Up @@ -40,3 +40,7 @@
#define MICROPY_HW_USB_FS (1)
#define USBD_CDC_RX_DATA_SIZE (512)
#define USBD_CDC_TX_DATA_SIZE (512)

// Bluetooth config
#define MICROPY_HW_BLE_UART_ID (0)
#define MICROPY_HW_BLE_UART_BAUDRATE (115200)
4 changes: 4 additions & 0 deletions ports/stm32/boards/USBDONGLE_WB55/mpconfigboard.mk
Expand Up @@ -3,3 +3,7 @@ CMSIS_MCU = STM32WB55xx
AF_FILE = boards/stm32wb55_af.csv
LD_FILES = boards/stm32wb55xg.ld boards/common_basic.ld
STARTUP_FILE = lib/stm32lib/CMSIS/STM32WBxx/Source/Templates/gcc/startup_stm32wb55xx_cm4.o

# MicroPython settings
MICROPY_PY_BLUETOOTH = 1
MICROPY_BLUETOOTH_NIMBLE = 1

0 comments on commit 32eae53

Please sign in to comment.