rp2/boards/PICO_W: Enable Bluetooth Low Energy support.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
ba83f6d50c
commit
856e08b193
|
@ -7,7 +7,8 @@
|
||||||
"Breadboard friendly",
|
"Breadboard friendly",
|
||||||
"Castellated Pads",
|
"Castellated Pads",
|
||||||
"Micro USB",
|
"Micro USB",
|
||||||
"WiFi"
|
"WiFi",
|
||||||
|
"Bluetooth"
|
||||||
],
|
],
|
||||||
"id": "rp2-pico-w",
|
"id": "rp2-pico-w",
|
||||||
"images": [
|
"images": [
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
include("$(PORT_DIR)/boards/manifest.py")
|
include("$(PORT_DIR)/boards/manifest.py")
|
||||||
|
|
||||||
require("bundle-networking")
|
require("bundle-networking")
|
||||||
|
|
||||||
|
# Bluetooth
|
||||||
|
require("aioble")
|
||||||
|
|
|
@ -1,6 +1,15 @@
|
||||||
# cmake file for Raspberry Pi Pico W
|
# cmake file for Raspberry Pi Pico W
|
||||||
|
|
||||||
|
# The C malloc is needed by cyw43-driver Bluetooth
|
||||||
|
set(MICROPY_C_HEAP_SIZE 4096)
|
||||||
|
|
||||||
set(MICROPY_PY_LWIP ON)
|
set(MICROPY_PY_LWIP ON)
|
||||||
set(MICROPY_PY_NETWORK_CYW43 ON)
|
set(MICROPY_PY_NETWORK_CYW43 ON)
|
||||||
|
|
||||||
|
# Bluetooth
|
||||||
|
set(MICROPY_PY_BLUETOOTH ON)
|
||||||
|
set(MICROPY_BLUETOOTH_BTSTACK ON)
|
||||||
|
set(MICROPY_PY_BLUETOOTH_CYW43 ON)
|
||||||
|
|
||||||
# Board specific version of the frozen manifest
|
# Board specific version of the frozen manifest
|
||||||
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)
|
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)
|
||||||
|
|
Loading…
Reference in New Issue