Skip to content

Commit 260bf77

Browse files
committed
ports/stm32/boards/PYBD: Enable BLE for Pyboard D
1 parent fb7b4db commit 260bf77

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

ports/stm32/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,12 @@ SRC_USBDEV = $(addprefix $(USBDEV_DIR)/,\
377377
class/src/usbd_msc_scsi.c \
378378
)
379379

380+
ifeq ($(MICROPY_PY_BLUETOOTH),1)
381+
CFLAGS_MOD += -DMICROPY_PY_BLUETOOTH=1
382+
CFLAGS_MOD += -DMICROPY_PY_BLUETOOTH_ENABLE_CENTRAL_MODE=1
383+
CFLAGS_MOD += -DMICROPY_PY_BLUETOOTH_CALLBACK_ALLOC=0
384+
endif
385+
380386
ifeq ($(MICROPY_PY_NETWORK_CYW43),1)
381387
CFLAGS_MOD += -DMICROPY_PY_NETWORK_CYW43=1
382388
SRC_C += sdio.c cywbt.c

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