diff options
| author | Peter Harper <peter.harper@raspberrypi.com> | 2023-03-13 10:40:22 +0000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-06-14 22:20:20 +1000 |
| commit | 856e08b1931b88271816a2f60648f6ff332235b2 (patch) | |
| tree | 351e7e3c259d179359df87964aba3bfde97bb8c9 | |
| parent | ba83f6d50c0da30e159d266232457d8c1d281179 (diff) | |
rp2/boards/PICO_W: Enable Bluetooth Low Energy support.
Signed-off-by: Damien George <damien@micropython.org>
| -rw-r--r-- | ports/rp2/boards/PICO_W/board.json | 3 | ||||
| -rw-r--r-- | ports/rp2/boards/PICO_W/manifest.py | 3 | ||||
| -rw-r--r-- | ports/rp2/boards/PICO_W/mpconfigboard.cmake | 9 |
3 files changed, 14 insertions, 1 deletions
diff --git a/ports/rp2/boards/PICO_W/board.json b/ports/rp2/boards/PICO_W/board.json index 755ba1037..a85d7e044 100644 --- a/ports/rp2/boards/PICO_W/board.json +++ b/ports/rp2/boards/PICO_W/board.json @@ -7,7 +7,8 @@ "Breadboard friendly", "Castellated Pads", "Micro USB", - "WiFi" + "WiFi", + "Bluetooth" ], "id": "rp2-pico-w", "images": [ diff --git a/ports/rp2/boards/PICO_W/manifest.py b/ports/rp2/boards/PICO_W/manifest.py index 02d1874b5..4e38f09cd 100644 --- a/ports/rp2/boards/PICO_W/manifest.py +++ b/ports/rp2/boards/PICO_W/manifest.py @@ -1,3 +1,6 @@ include("$(PORT_DIR)/boards/manifest.py") require("bundle-networking") + +# Bluetooth +require("aioble") diff --git a/ports/rp2/boards/PICO_W/mpconfigboard.cmake b/ports/rp2/boards/PICO_W/mpconfigboard.cmake index df9d70c01..e6db8dda6 100644 --- a/ports/rp2/boards/PICO_W/mpconfigboard.cmake +++ b/ports/rp2/boards/PICO_W/mpconfigboard.cmake @@ -1,6 +1,15 @@ # 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_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 set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py) |
