stm32/boards: Enable support for bluetooth on WB55 boards.

This commit is contained in:
Damien George 2019-11-01 14:56:48 +11:00
parent 6a64b280d0
commit 32eae53fbc
4 changed files with 16 additions and 0 deletions

View File

@ -61,3 +61,7 @@
#define MICROPY_HW_USB_FS (1) #define MICROPY_HW_USB_FS (1)
#define USBD_CDC_RX_DATA_SIZE (512) #define USBD_CDC_RX_DATA_SIZE (512)
#define USBD_CDC_TX_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)

View File

@ -3,3 +3,7 @@ CMSIS_MCU = STM32WB55xx
AF_FILE = boards/stm32wb55_af.csv AF_FILE = boards/stm32wb55_af.csv
LD_FILES = boards/stm32wb55xg.ld boards/common_basic.ld LD_FILES = boards/stm32wb55xg.ld boards/common_basic.ld
STARTUP_FILE = lib/stm32lib/CMSIS/STM32WBxx/Source/Templates/gcc/startup_stm32wb55xx_cm4.o STARTUP_FILE = lib/stm32lib/CMSIS/STM32WBxx/Source/Templates/gcc/startup_stm32wb55xx_cm4.o
# MicroPython settings
MICROPY_PY_BLUETOOTH = 1
MICROPY_BLUETOOTH_NIMBLE = 1

View File

@ -40,3 +40,7 @@
#define MICROPY_HW_USB_FS (1) #define MICROPY_HW_USB_FS (1)
#define USBD_CDC_RX_DATA_SIZE (512) #define USBD_CDC_RX_DATA_SIZE (512)
#define USBD_CDC_TX_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)

View File

@ -3,3 +3,7 @@ CMSIS_MCU = STM32WB55xx
AF_FILE = boards/stm32wb55_af.csv AF_FILE = boards/stm32wb55_af.csv
LD_FILES = boards/stm32wb55xg.ld boards/common_basic.ld LD_FILES = boards/stm32wb55xg.ld boards/common_basic.ld
STARTUP_FILE = lib/stm32lib/CMSIS/STM32WBxx/Source/Templates/gcc/startup_stm32wb55xx_cm4.o STARTUP_FILE = lib/stm32lib/CMSIS/STM32WBxx/Source/Templates/gcc/startup_stm32wb55xx_cm4.o
# MicroPython settings
MICROPY_PY_BLUETOOTH = 1
MICROPY_BLUETOOTH_NIMBLE = 1