Skip to content

Commit 404f188

Browse files
Don't construct P.IO JSON from string, use JSON (#2368)
I shall not generate a JSON file using string replacement!
1 parent 84828f0 commit 404f188

File tree

98 files changed

+5198
-5214
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+5198
-5214
lines changed

tools/json/0xcb_helios.json

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
11
{
2-
"build": {
3-
"arduino": {
4-
"earlephilhower": {
5-
"boot2_source": "boot2_w25q128jvxq_4_padded_checksum.S",
6-
"usb_vid": "0x1209",
7-
"usb_pid": "0xCB74"
8-
}
2+
"build": {
3+
"arduino": {
4+
"earlephilhower": {
5+
"boot2_source": "boot2_w25q128jvxq_4_padded_checksum.S",
6+
"usb_vid": "0x1209",
7+
"usb_pid": "0xCB74"
8+
}
9+
},
10+
"core": "earlephilhower",
11+
"cpu": "cortex-m0plus",
12+
"extra_flags": "-DARDUINO_0XCB_HELIOS -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=500 ",
13+
"f_cpu": "133000000L",
14+
"hwids": [
15+
[
16+
"0x2E8A",
17+
"0x00C0"
18+
],
19+
[
20+
"0x1209",
21+
"0xCB74"
22+
]
23+
],
24+
"mcu": "rp2040",
25+
"variant": "0xcb_helios"
926
},
10-
"core": "earlephilhower",
11-
"cpu": "cortex-m0plus",
12-
"extra_flags": "-D ARDUINO_0XCB_HELIOS -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=500",
13-
"f_cpu": "133000000L",
14-
"hwids": [
15-
[
16-
"0x2E8A",
17-
"0x00C0"
18-
],
19-
[
20-
"0x1209",
21-
"0xCB74"
22-
]
27+
"debug": {
28+
"jlink_device": "RP2040_M0_0",
29+
"openocd_target": "rp2040.cfg",
30+
"svd_path": "rp2040.svd"
31+
},
32+
"frameworks": [
33+
"arduino"
2334
],
24-
"mcu": "rp2040",
25-
"variant": "0xcb_helios"
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": "Helios",
36-
"upload": {
37-
"maximum_ram_size": 262144,
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-
"blackmagic",
46-
"cmsis-dap",
47-
"jlink",
48-
"raspberrypi-swd",
49-
"picotool",
50-
"picoprobe",
51-
"pico-debug"
52-
]
53-
},
54-
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/",
55-
"vendor": "0xCB"
56-
}
35+
"name": "Helios",
36+
"upload": {
37+
"maximum_ram_size": 262144,
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+
"blackmagic",
46+
"cmsis-dap",
47+
"jlink",
48+
"raspberrypi-swd",
49+
"picotool",
50+
"picoprobe",
51+
"pico-debug"
52+
]
53+
},
54+
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/",
55+
"vendor": "0xCB"
56+
}

tools/json/DudesCab.json

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
11
{
2-
"build": {
3-
"arduino": {
4-
"earlephilhower": {
5-
"boot2_source": "boot2_w25q080_2_padded_checksum.S",
6-
"usb_vid": "0x2E8A",
7-
"usb_pid": "0x106F"
8-
}
2+
"build": {
3+
"arduino": {
4+
"earlephilhower": {
5+
"boot2_source": "boot2_w25q080_2_padded_checksum.S",
6+
"usb_vid": "0x2E8A",
7+
"usb_pid": "0x106F"
8+
}
9+
},
10+
"core": "earlephilhower",
11+
"cpu": "cortex-m0plus",
12+
"extra_flags": "-DARDUINO_RASPBERRY_PI_PICO -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250 ",
13+
"f_cpu": "133000000L",
14+
"hwids": [
15+
[
16+
"0x2E8A",
17+
"0x00C0"
18+
],
19+
[
20+
"0x2E8A",
21+
"0x106F"
22+
]
23+
],
24+
"mcu": "rp2040",
25+
"variant": "DudesCab"
926
},
10-
"core": "earlephilhower",
11-
"cpu": "cortex-m0plus",
12-
"extra_flags": "-D ARDUINO_RASPBERRY_PI_PICO -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250",
13-
"f_cpu": "133000000L",
14-
"hwids": [
15-
[
16-
"0x2E8A",
17-
"0x00C0"
18-
],
19-
[
20-
"0x2E8A",
21-
"0x106F"
22-
]
27+
"debug": {
28+
"jlink_device": "RP2040_M0_0",
29+
"openocd_target": "rp2040.cfg",
30+
"svd_path": "rp2040.svd"
31+
},
32+
"frameworks": [
33+
"arduino"
2334
],
24-
"mcu": "rp2040",
25-
"variant": "DudesCab"
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": "DudesCab",
36-
"upload": {
37-
"maximum_ram_size": 262144,
38-
"maximum_size": 4194304,
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-
"blackmagic",
46-
"cmsis-dap",
47-
"jlink",
48-
"raspberrypi-swd",
49-
"picotool",
50-
"picoprobe",
51-
"pico-debug"
52-
]
53-
},
54-
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/",
55-
"vendor": "L'atelier d'Arnoz"
56-
}
35+
"name": "DudesCab",
36+
"upload": {
37+
"maximum_ram_size": 262144,
38+
"maximum_size": 4194304,
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+
"blackmagic",
46+
"cmsis-dap",
47+
"jlink",
48+
"raspberrypi-swd",
49+
"picotool",
50+
"picoprobe",
51+
"pico-debug"
52+
]
53+
},
54+
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/",
55+
"vendor": "L'atelier d'Arnoz"
56+
}

tools/json/adafruit_feather.json

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
11
{
2-
"build": {
3-
"arduino": {
4-
"earlephilhower": {
5-
"boot2_source": "boot2_w25x10cl_4_padded_checksum.S",
6-
"usb_vid": "0x239A",
7-
"usb_pid": "0x80F1"
8-
}
2+
"build": {
3+
"arduino": {
4+
"earlephilhower": {
5+
"boot2_source": "boot2_w25x10cl_4_padded_checksum.S",
6+
"usb_vid": "0x239A",
7+
"usb_pid": "0x80F1"
8+
}
9+
},
10+
"core": "earlephilhower",
11+
"cpu": "cortex-m0plus",
12+
"extra_flags": "-DARDUINO_ADAFRUIT_FEATHER_RP2040 -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250 ",
13+
"f_cpu": "133000000L",
14+
"hwids": [
15+
[
16+
"0x2E8A",
17+
"0x00C0"
18+
],
19+
[
20+
"0x239A",
21+
"0x80F1"
22+
]
23+
],
24+
"mcu": "rp2040",
25+
"variant": "adafruit_feather"
926
},
10-
"core": "earlephilhower",
11-
"cpu": "cortex-m0plus",
12-
"extra_flags": "-D ARDUINO_ADAFRUIT_FEATHER_RP2040 -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250",
13-
"f_cpu": "133000000L",
14-
"hwids": [
15-
[
16-
"0x2E8A",
17-
"0x00C0"
18-
],
19-
[
20-
"0x239A",
21-
"0x80F1"
22-
]
27+
"debug": {
28+
"jlink_device": "RP2040_M0_0",
29+
"openocd_target": "rp2040.cfg",
30+
"svd_path": "rp2040.svd"
31+
},
32+
"frameworks": [
33+
"arduino"
2334
],
24-
"mcu": "rp2040",
25-
"variant": "adafruit_feather"
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": "Feather RP2040",
36-
"upload": {
37-
"maximum_ram_size": 262144,
38-
"maximum_size": 8388608,
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-
"blackmagic",
46-
"cmsis-dap",
47-
"jlink",
48-
"raspberrypi-swd",
49-
"picotool",
50-
"picoprobe",
51-
"pico-debug"
52-
]
53-
},
54-
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/",
55-
"vendor": "Adafruit"
56-
}
35+
"name": "Feather RP2040",
36+
"upload": {
37+
"maximum_ram_size": 262144,
38+
"maximum_size": 8388608,
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+
"blackmagic",
46+
"cmsis-dap",
47+
"jlink",
48+
"raspberrypi-swd",
49+
"picotool",
50+
"picoprobe",
51+
"pico-debug"
52+
]
53+
},
54+
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/",
55+
"vendor": "Adafruit"
56+
}

0 commit comments

Comments
 (0)