Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0a9cc90

Browse files
sfe-SparkFrodpgeorge
authored andcommitted
rp2/boards/SPARKFUN_THINGPLUS_RP2350: Add SparkFun Thing Plus RP2350.
Signed-off-by: Dryw Wade <[email protected]>
1 parent e73cf71 commit 0a9cc90

File tree

5 files changed

+129
-0
lines changed

5 files changed

+129
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"deploy": [
3+
"../deploy.md"
4+
],
5+
"docs": "",
6+
"features": [
7+
"BLE",
8+
"Battery Charging",
9+
"Dual-core",
10+
"External Flash",
11+
"External RAM",
12+
"Feather",
13+
"JST-SH",
14+
"RGB LED",
15+
"USB-C",
16+
"WiFi",
17+
"microSD"
18+
],
19+
"images": [
20+
"25134-Thing-Plus-RP2350-Feature.jpg"
21+
],
22+
"mcu": "rp2350",
23+
"product": "Thing Plus RP2350",
24+
"thumbnail": "",
25+
"url": "https://www.sparkfun.com/products/25134",
26+
"vendor": "Sparkfun"
27+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include("$(PORT_DIR)/boards/manifest.py")
2+
3+
require("bundle-networking")
4+
5+
# Bluetooth
6+
require("aioble")
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# cmake file for SparkFun Thing Plus RP2350
2+
3+
set(PICO_BOARD "sparkfun_thingplus_rp2350")
4+
set(PICO_PLATFORM "rp2350")
5+
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)
13+
14+
# Board specific version of the frozen manifest
15+
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// Board and hardware specific configuration
2+
#define MICROPY_HW_BOARD_NAME "SparkFun Thing Plus RP2350"
3+
#define MICROPY_HW_FLASH_STORAGE_BYTES (14 * 1024 * 1024)
4+
5+
// Enable networking.
6+
#define MICROPY_PY_NETWORK 1
7+
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "ThingPlusRP2350"
8+
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+
20+
#define MICROPY_HW_USB_VID (0x1B4F)
21+
#define MICROPY_HW_USB_PID (0x0038)
22+
23+
#define MICROPY_HW_I2C0_SDA (20)
24+
#define MICROPY_HW_I2C0_SCL (21)
25+
26+
#define MICROPY_HW_I2C1_SDA (6)
27+
#define MICROPY_HW_I2C1_SCL (7)
28+
29+
#define MICROPY_HW_SPI0_SCK (2)
30+
#define MICROPY_HW_SPI0_MOSI (3)
31+
#define MICROPY_HW_SPI0_MISO (4)
32+
33+
#define MICROPY_HW_SPI1_SCK (26)
34+
#define MICROPY_HW_SPI1_MOSI (27)
35+
#define MICROPY_HW_SPI1_MISO (28)
36+
37+
#define MICROPY_HW_UART0_TX (0)
38+
#define MICROPY_HW_UART0_RX (1)
39+
#define MICROPY_HW_UART0_CTS (18)
40+
#define MICROPY_HW_UART0_RTS (19)
41+
42+
#define MICROPY_HW_UART1_TX (4)
43+
#define MICROPY_HW_UART1_RX (5)
44+
#define MICROPY_HW_UART1_CTS (6)
45+
#define MICROPY_HW_UART1_RTS (7)
46+
47+
#define MICROPY_HW_PSRAM_CS_PIN (8)
48+
#define MICROPY_HW_ENABLE_PSRAM (1)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
GP0,GPIO0
2+
GP1,GPIO1
3+
GP2,GPIO2
4+
GP3,GPIO3
5+
GP4,GPIO4
6+
GP5,GPIO5
7+
GP6,GPIO6
8+
GP7,GPIO7
9+
GP8,GPIO8
10+
GP9,GPIO9
11+
GP10,GPIO10
12+
GP11,GPIO11
13+
GP12,GPIO12
14+
GP13,GPIO13
15+
GP14,GPIO14
16+
GP15,GPIO15
17+
GP16,GPIO16
18+
GP17,GPIO17
19+
GP18,GPIO18
20+
GP19,GPIO19
21+
GP20,GPIO20
22+
GP21,GPIO21
23+
GP22,GPIO22
24+
GP26,GPIO26
25+
GP27,GPIO27
26+
GP28,GPIO28
27+
WL_GPIO0,EXT_GPIO0
28+
WL_GPIO1,EXT_GPIO1
29+
WL_GPIO2,EXT_GPIO2
30+
LED,EXT_GPIO0
31+
LED_RGB,GPIO14
32+
RGB_LED,GPIO14
33+
NEOPIXEL,GPIO14

0 commit comments

Comments
 (0)