-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SparkFun Thing Plus RP2350 (#2605)
* Add SparkFun Thing Plus RP2350 * Add Thing Plus RP2350 PSRAM definition * Remove radio from Thing Plus RP2350 Will need to add back once full radio support is added, see #2605
- Loading branch information
1 parent
083d86d
commit 17aab7e
Showing
6 changed files
with
446 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"build": { | ||
"arduino": { | ||
"earlephilhower": { | ||
"boot2_source": "none.S", | ||
"usb_vid": "0x1B4F", | ||
"usb_pid": "0x0038" | ||
} | ||
}, | ||
"core": "earlephilhower", | ||
"cpu": "cortex-m33", | ||
"extra_flags": "-DARDUINO_SPARKFUN_THINGPLUS_RP2350 -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250 ", | ||
"f_cpu": "150000000L", | ||
"hwids": [ | ||
[ | ||
"0x2E8A", | ||
"0x00C0" | ||
], | ||
[ | ||
"0x1B4F", | ||
"0x0038" | ||
] | ||
], | ||
"mcu": "rp2350", | ||
"variant": "sparkfun_thingplusrp2350" | ||
}, | ||
"debug": { | ||
"jlink_device": "RP2350_0", | ||
"openocd_target": "rp2350.cfg", | ||
"svd_path": "rp2350.svd" | ||
}, | ||
"frameworks": [ | ||
"arduino" | ||
], | ||
"name": "Thing Plus RP2350", | ||
"upload": { | ||
"maximum_ram_size": 524288, | ||
"maximum_size": 16777216, | ||
"require_upload_port": true, | ||
"native_usb": true, | ||
"use_1200bps_touch": true, | ||
"wait_for_upload_port": false, | ||
"protocol": "picotool", | ||
"protocols": [ | ||
"blackmagic", | ||
"cmsis-dap", | ||
"jlink", | ||
"raspberrypi-swd", | ||
"picotool", | ||
"picoprobe" | ||
], | ||
"psram_length": 8388608 | ||
}, | ||
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/", | ||
"vendor": "SparkFun" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#pragma once | ||
|
||
// LEDs | ||
#define PIN_LED (32u) | ||
|
||
#define PIN_NEOPIXEL (14) | ||
#define NUM_NEOPIXEL (1) | ||
|
||
// Serial | ||
#define PIN_SERIAL1_TX (0u) | ||
#define PIN_SERIAL1_RX (1u) | ||
|
||
#define PIN_SERIAL2_TX (31u) | ||
#define PIN_SERIAL2_RX (31u) | ||
|
||
// SPI | ||
#define PIN_SPI0_MISO (4u) | ||
#define PIN_SPI0_MOSI (3u) | ||
#define PIN_SPI0_SCK (2u) | ||
#define PIN_SPI0_SS (9u) // CS pin for SD card | ||
|
||
#define PIN_SPI1_MISO (31u) | ||
#define PIN_SPI1_MOSI (31u) | ||
#define PIN_SPI1_SCK (31u) | ||
#define PIN_SPI1_SS (31u) | ||
|
||
// Wire | ||
#define PIN_WIRE0_SDA (6u) | ||
#define PIN_WIRE0_SCL (7u) | ||
|
||
#define PIN_WIRE1_SDA (31u) | ||
#define PIN_WIRE1_SCL (31u) | ||
|
||
// Thing Plus uses I2C for Qwiic connector, make that the default | ||
#ifndef __WIRE0_DEVICE | ||
#define __WIRE0_DEVICE i2c1 | ||
#endif | ||
#ifndef __WIRE1_DEVICE | ||
#define __WIRE1_DEVICE i2c0 | ||
#endif | ||
|
||
#define SERIAL_HOWMANY (3u) | ||
#define SPI_HOWMANY (1u) | ||
#define WIRE_HOWMANY (1u) | ||
|
||
// PSRAM | ||
#define RP2350_PSRAM_CS (8u) | ||
#define RP2350_PSRAM_MAX_SCK_HZ (109*1000*1000) | ||
|
||
#include "../generic/common.h" |