File tree Expand file tree Collapse file tree 2 files changed +95
-0
lines changed
variants/vccgnd_yd_rp2040 Expand file tree Collapse file tree 2 files changed +95
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "build" : {
3+ "arduino" : {
4+ "earlephilhower" : {
5+ "boot2_source" : " boot2_generic_03h_4_padded_checksum.S" ,
6+ "usb_vid" : " 0x2E8A" ,
7+ "usb_pid" : " 0x800A"
8+ }
9+ },
10+ "core" : " earlephilhower" ,
11+ "cpu" : " cortex-m0plus" ,
12+ "extra_flags" : " -D ARDUINO_YD_RP2040 -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=500" ,
13+ "f_cpu" : " 133000000L" ,
14+ "hwids" : [
15+ [
16+ " 0x2E8A" ,
17+ " 0x00C0"
18+ ],
19+ [
20+ " 0x2E8A" ,
21+ " 0x800A"
22+ ]
23+ ],
24+ "mcu" : " rp2040" ,
25+ "variant" : " vccgnd_yd_rp2040"
26+ },
27+ "debug" : {
28+ "jlink_device" : " RP2040_M0_0" ,
29+ "openocd_target" : " rp2040.cfg" ,
30+ "svd_path" : " rp2040.svd"
31+ },
32+ "frameworks" : [
33+ " arduino"
34+ ],
35+ "name" : " YD RP2040" ,
36+ "upload" : {
37+ "maximum_ram_size" : 270336 ,
38+ "maximum_size" : 16777216 ,
39+ "require_upload_port" : true ,
40+ "native_usb" : true ,
41+ "use_1200bps_touch" : true ,
42+ "wait_for_upload_port" : false ,
43+ "protocol" : " picotool" ,
44+ "protocols" : [
45+ " cmsis-dap" ,
46+ " jlink" ,
47+ " raspberrypi-swd" ,
48+ " picotool" ,
49+ " picoprobe"
50+ ]
51+ },
52+ "url" : " https://www.raspberrypi.org/products/raspberry-pi-pico/" ,
53+ "vendor" : " VCC-GND"
54+ }
Original file line number Diff line number Diff line change 1+ #pragma once
2+
3+ // Pin definitions taken from:
4+ // https://user-images.githubusercontent.com/57373245/211920388-d339f085-840d-433d-a575-590ace58219c.png
5+
6+
7+ // LEDs
8+ #define PIN_NEOPIXEL (23u)
9+ #define PIN_USRKEY (24u)
10+ #define PIN_LED (25u)
11+
12+ // Serial
13+ #define PIN_SERIAL1_TX (0u)
14+ #define PIN_SERIAL1_RX (1u)
15+
16+ #define PIN_SERIAL2_TX (8u)
17+ #define PIN_SERIAL2_RX (9u)
18+
19+ // SPI
20+ #define PIN_SPI0_MISO (16u)
21+ #define PIN_SPI0_MOSI (19u)
22+ #define PIN_SPI0_SCK (18u)
23+ #define PIN_SPI0_SS (17u)
24+
25+ #define PIN_SPI1_MISO (12u)
26+ #define PIN_SPI1_MOSI (15u)
27+ #define PIN_SPI1_SCK (14u)
28+ #define PIN_SPI1_SS (13u)
29+
30+ // Wire
31+ #define PIN_WIRE0_SDA (4u)
32+ #define PIN_WIRE0_SCL (5u)
33+
34+ #define PIN_WIRE1_SDA (26u)
35+ #define PIN_WIRE1_SCL (27u)
36+
37+ #define SERIAL_HOWMANY (3u)
38+ #define SPI_HOWMANY (2u)
39+ #define WIRE_HOWMANY (2u)
40+
41+ #include "../generic/common.h"
You can’t perform that action at this time.
0 commit comments