8000 ports/rp2: Update Thing Plus RP2350 radio definitions · sparkfun/micropython@6f032be · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f032be

Browse files
committed
ports/rp2: Update Thing Plus RP2350 radio definitions
No longer depends on micropython#16057
1 parent d3b6a7c commit 6f032be

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

ports/rp2/boards/SPARKFUN_THINGPLUS_RP2350/mpconfigboard.cmake

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
set(PICO_BOARD "sparkfun_thingplus_rp2350")
44
set(PICO_PLATFORM "rp2350")
55

6-
include(enable_cyw43.cmake)
6+
set(MICROPY_PY_LWIP ON)
7+
set(MICROPY_PY_NETWORK_CYW43 ON)
8+
9+
# Bluetooth
10+
set(MICROPY_PY_BLUETOOTH ON)
11+
set(MICROPY_BLUETOOTH_BTSTACK ON)
12+
set(MICROPY_PY_BLUETOOTH_CYW43 ON)
713

814
# Board specific version of the frozen manifest
9-
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)
15+
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)

ports/rp2/boards/SPARKFUN_THINGPLUS_RP2350/mpconfigboard.h

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@
22
#define MICROPY_HW_BOARD_NAME "SparkFun Thing Plus RP2350"
33
#define MICROPY_HW_FLASH_STORAGE_BYTES (14 * 1024 * 1024)
44

5+
// Enable networking.
6+
#define MICROPY_PY_NETWORK 1
57
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "ThingPlusRP2350"
68

9+
// CYW43 driver configuration.
10+
#define CYW43_USE_SPI (1)
11+
#define CYW43_LWIP (1)
12+
#define CYW43_GPIO (1)
13+
#define CYW43_SPI_PIO (1)
14+
15+
#define MICROPY_HW_PIN_EXT_COUNT CYW43_WL_GPIO_COUNT
16+
17+
int mp_hal_is_pin_reserved(int n);
18+
#define MICROPY_HW_PIN_RESERVED(i) mp_hal_is_pin_reserved(i)
19+
720
#define MICROPY_HW_USB_VID (0x1B4F)
821
#define MICROPY_HW_USB_PID (0x0038)
922

@@ -33,5 +46,3 @@
< 52C3 /td>
3346

3447
#define MICROPY_HW_PSRAM_CS_PIN (8)
3548
#define MICROPY_HW_ENABLE_PSRAM (1)
36-
37-
#include "enable_cyw43.h"

0 commit comments

Comments
 (0)
0