Skip to content

Commit 3791fa0

Browse files
committed
Add SPI swap
1 parent 65fd181 commit 3791fa0

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

tools/makeboards.py

+1
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,7 @@ def MakeBoardJSON(name, chip, vendor_name, product_name, vid, pid, pwr, boarddef
635635
MakeBoard("sparkfun_thingplusrp2040", "rp2040", "SparkFun", "Thing Plus RP2040", "0x1b4f", "0x0026", 250, "SPARKFUN_THINGPLUS_RP2040", 16, 0, "boot2_w25q080_2_padded_checksum")
636636
MakeBoard("sparkfun_thingplusrp2350", "rp2350", "SparkFun", "Thing Plus RP2350", "0x1b4f", "0x0038", 250, "SPARKFUN_THINGPLUS_RP2350", 16, 8, "none", ["PICO_CYW43_SUPPORTED=1", "CYW43_PIN_WL_DYNAMIC=1"])
637637
MakeBoard("sparkfun_iotnode_lorawanrp2350", "rp2350", "SparkFun", "IoT Node LoRaWAN", "0x1b4f", "0x0044", 250, "SPARKFUN_IOTNODE_LORAWAN_RP2350", 16, 8, "none")
638+
638639
# Upesy
639640
MakeBoard("upesy_rp2040_devkit", "rp2040", "uPesy", "RP2040 DevKit", "0x2e8a", "0x1007", 250, "UPESY_RP2040_DEVKIT", 2, 0, "boot2_w25q080_2_padded_checksum")
640641

variants/sparkfun_iotnode_lorawanrp2350/pins_arduino.h

+8
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
#define PIN_SPI1_SCK (31u)
2525
#define PIN_SPI1_SS (31u) // not pinned out
2626

27+
// The board uses SPI1 for uSD card, make that the default
28+
#ifndef __SPI0_DEVICE
29+
#define __SPI0_DEVICE spi1
30+
#endif
31+
#ifndef __SPI1_DEVICE
32+
#define __SPI1_DEVICE spi0
33+
#endif
34+
2735
// Wire
2836
#define PIN_WIRE0_SDA (20u)
2937
#define PIN_WIRE0_SCL (21u)

0 commit comments

Comments
 (0)