Browse Source

stm32/boards/PYBD: Enable BLE for Pyboard D.

pull/5051/head
Jim Mussared 5 years ago
parent
commit
fafa9d35dd
  1. 4
      ports/stm32/boards/PYBD_SF2/mpconfigboard.h
  2. 2
      ports/stm32/boards/PYBD_SF2/mpconfigboard.mk
  3. 2
      ports/stm32/boards/PYBD_SF3/mpconfigboard.mk
  4. 2
      ports/stm32/boards/PYBD_SF6/mpconfigboard.mk

4
ports/stm32/boards/PYBD_SF2/mpconfigboard.h

@ -177,6 +177,10 @@ extern struct _spi_bdev_t spi_bdev2;
#define MICROPY_HW_USB_HS_IN_FS (1)
#define MICROPY_HW_USB_MAIN_DEV (USB_PHY_HS_ID)
// Bluetooth config
#define MICROPY_HW_BLE_UART_ID (PYB_UART_6)
#define MICROPY_HW_BLE_UART_BAUDRATE (115200)
/******************************************************************************/
// Bootloader configuration

2
ports/stm32/boards/PYBD_SF2/mpconfigboard.mk

@ -10,6 +10,8 @@ TEXT0_SECTIONS = .isr_vector .text .data
TEXT1_SECTIONS = .text_ext
# MicroPython settings
MICROPY_PY_BLUETOOTH = 1
MICROPY_BLUETOOTH_NIMBLE = 1
MICROPY_PY_LWIP = 1
MICROPY_PY_NETWORK_CYW43 = 1
MICROPY_PY_USSL = 1

2
ports/stm32/boards/PYBD_SF3/mpconfigboard.mk

@ -10,6 +10,8 @@ TEXT0_SECTIONS = .isr_vector .text .data
TEXT1_SECTIONS = .text_ext
# MicroPython settings
MICROPY_PY_BLUETOOTH = 1
MICROPY_BLUETOOTH_NIMBLE = 1
MICROPY_PY_LWIP = 1
MICROPY_PY_NETWORK_CYW43 = 1
MICROPY_PY_USSL = 1

2
ports/stm32/boards/PYBD_SF6/mpconfigboard.mk

@ -7,6 +7,8 @@ LD_FILES = boards/PYBD_SF6/f767.ld
TEXT0_ADDR = 0x08008000
# MicroPython settings
MICROPY_PY_BLUETOOTH = 1
MICROPY_BLUETOOTH_NIMBLE = 1
MICROPY_PY_LWIP = 1
MICROPY_PY_NETWORK_CYW43 = 1
MICROPY_PY_USSL = 1

Loading…
Cancel
Save