Skip to content

Commit fafa9d3

Browse files
committed
stm32/boards/PYBD: Enable BLE for Pyboard D.
1 parent 6f35f21 commit fafa9d3

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

ports/stm32/boards/PYBD_SF2/mpconfigboard.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ extern struct _spi_bdev_t spi_bdev2;
177177
#define MICROPY_HW_USB_HS_IN_FS (1)
178178
#define MICROPY_HW_USB_MAIN_DEV (USB_PHY_HS_ID)
179179

180+
// Bluetooth config
181+
#define MICROPY_HW_BLE_UART_ID (PYB_UART_6)
182+
#define MICROPY_HW_BLE_UART_BAUDRATE (115200)
183+
180184
/******************************************************************************/
181185
// Bootloader configuration
182186

ports/stm32/boards/PYBD_SF2/mpconfigboard.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ TEXT0_SECTIONS = .isr_vector .text .data
1010
TEXT1_SECTIONS = .text_ext
1111

1212
# MicroPython settings
13+
MICROPY_PY_BLUETOOTH = 1
14+
MICROPY_BLUETOOTH_NIMBLE = 1
1315
MICROPY_PY_LWIP = 1
1416
MICROPY_PY_NETWORK_CYW43 = 1
1517
MICROPY_PY_USSL = 1

ports/stm32/boards/PYBD_SF3/mpconfigboard.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ TEXT0_SECTIONS = .isr_vector .text .data
1010
TEXT1_SECTIONS = .text_ext
1111

1212
# MicroPython settings
13+
MICROPY_PY_BLUETOOTH = 1
14+
MICROPY_BLUETOOTH_NIMBLE = 1
1315
MICROPY_PY_LWIP = 1
1416
MICROPY_PY_NETWORK_CYW43 = 1
1517
MICROPY_PY_USSL = 1

ports/stm32/boards/PYBD_SF6/mpconfigboard.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ LD_FILES = boards/PYBD_SF6/f767.ld
77
TEXT0_ADDR = 0x08008000
88

99
# MicroPython settings
10+
MICROPY_PY_BLUETOOTH = 1
11+
MICROPY_BLUETOOTH_NIMBLE = 1
1012
MICROPY_PY_LWIP = 1
1113
MICROPY_PY_NETWORK_CYW43 = 1
1214
MICROPY_PY_USSL = 1

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy