Unverified Commit 042c6af8 authored by Earle F. Philhower, III's avatar Earle F. Philhower, III Committed by GitHub

Add USB VID/PID to Platform.IO HWIDs (#698)

parent 0e18f098
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25x10cl_4_padded_checksum.S", "boot2_source": "boot2_w25x10cl_4_padded_checksum.S",
"usb_vid": "0x239a", "usb_vid": "0x239A",
"usb_pid": "0x80f1" "usb_pid": "0x80F1"
} }
}, },
"core": "earlephilhower", "core": "earlephilhower",
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x239A",
"0x80F1"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x239a", "usb_vid": "0x239A",
"usb_pid": "0x80fd" "usb_pid": "0x80FD"
} }
}, },
"core": "earlephilhower", "core": "earlephilhower",
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x239A",
"0x80FD"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x239a", "usb_vid": "0x239A",
"usb_pid": "0x8105" "usb_pid": "0x8105"
} }
}, },
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x239A",
"0x8105"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x239a", "usb_vid": "0x239A",
"usb_pid": "0x8107" "usb_pid": "0x8107"
} }
}, },
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x239A",
"0x8107"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x239a", "usb_vid": "0x239A",
"usb_pid": "0x80f7" "usb_pid": "0x80F7"
} }
}, },
"core": "earlephilhower", "core": "earlephilhower",
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x239A",
"0x80F7"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x239a", "usb_vid": "0x239A",
"usb_pid": "0x80e3" "usb_pid": "0x80E3"
} }
}, },
"core": "earlephilhower", "core": "earlephilhower",
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x239A",
"0x80E3"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x239a", "usb_vid": "0x239A",
"usb_pid": "0x8109" "usb_pid": "0x8109"
} }
}, },
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x239A",
"0x8109"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x2341",
"0x0058"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x2e8a", "usb_vid": "0x2E8A",
"usb_pid": "0x1023" "usb_pid": "0x1023"
} }
}, },
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x2E8A",
"0x1023"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x2e8a", "usb_vid": "0x2E8A",
"usb_pid": "0x100b" "usb_pid": "0x100B"
} }
}, },
"core": "earlephilhower", "core": "earlephilhower",
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x2E8A",
"0x100B"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x2e8a", "usb_vid": "0x2E8A",
"usb_pid": "0x102d" "usb_pid": "0x102D"
} }
}, },
"core": "earlephilhower", "core": "earlephilhower",
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x2E8A",
"0x102D"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x2e8a", "usb_vid": "0x2E8A",
"usb_pid": "0x1032" "usb_pid": "0x1032"
} }
}, },
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x2E8A",
"0x1032"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x2e8a", "usb_vid": "0x2E8A",
"usb_pid": "0x1006" "usb_pid": "0x1006"
} }
}, },
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x2E8A",
"0x1006"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x2e8a", "usb_vid": "0x2E8A",
"usb_pid": "0x102C" "usb_pid": "0x102C"
} }
}, },
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x2E8A",
"0x102C"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x2e8a", "usb_vid": "0x2E8A",
"usb_pid": "0x100b" "usb_pid": "0x100B"
} }
}, },
"core": "earlephilhower", "core": "earlephilhower",
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x2E8A",
"0x100B"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x2e8a", "usb_vid": "0x2E8A",
"usb_pid": "0x100f" "usb_pid": "0x100F"
} }
}, },
"core": "earlephilhower", "core": "earlephilhower",
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x2E8A",
"0x100F"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x2e8a", "usb_vid": "0x2E8A",
"usb_pid": "0x1000" "usb_pid": "0x1000"
} }
}, },
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x2E8A",
"0x1000"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x3343",
"0x4253"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_generic_03h_4_padded_checksum.S", "boot2_source": "boot2_generic_03h_4_padded_checksum.S",
"usb_vid": "0x2e8a", "usb_vid": "0x2E8A",
"usb_pid": "0x008a" "usb_pid": "0x008A"
} }
}, },
"core": "earlephilhower", "core": "earlephilhower",
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x2E8A",
"0x008A"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_generic_03h_4_padded_checksum.S", "boot2_source": "boot2_generic_03h_4_padded_checksum.S",
"usb_vid": "0x2e8a", "usb_vid": "0x2E8A",
"usb_pid": "0xf00a" "usb_pid": "0xF00A"
} }
}, },
"core": "earlephilhower", "core": "earlephilhower",
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x2E8A",
"0xF00A"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x2e8a", "usb_vid": "0x2E8A",
"usb_pid": "0x1010" "usb_pid": "0x1010"
} }
}, },
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x2E8A",
"0x1010"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x2e8a", "usb_vid": "0x2E8A",
"usb_pid": "0x1005" "usb_pid": "0x1005"
} }
}, },
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x2E8A",
"0x1005"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x2e8a", "usb_vid": "0x2E8A",
"usb_pid": "0x000a" "usb_pid": "0x000A"
} }
}, },
"core": "earlephilhower", "core": "earlephilhower",
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x2E8A",
"0x000A"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x2e8a", "usb_vid": "0x2E8A",
"usb_pid": "0xf00a" "usb_pid": "0xF00A"
} }
}, },
"core": "earlephilhower", "core": "earlephilhower",
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x2E8A",
"0xF00A"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x2e8a", "usb_vid": "0x2E8A",
"usb_pid": "0x000a" "usb_pid": "0x000A"
} }
}, },
"core": "earlephilhower", "core": "earlephilhower",
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x2E8A",
"0x000A"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_generic_03h_4_padded_checksum.S", "boot2_source": "boot2_generic_03h_4_padded_checksum.S",
"usb_vid": "0x1209", "usb_vid": "0x1209",
"usb_pid": "0xa182" "usb_pid": "0xA182"
} }
}, },
"core": "earlephilhower", "core": "earlephilhower",
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x1209",
"0xA182"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_generic_03h_4_padded_checksum.S", "boot2_source": "boot2_generic_03h_4_padded_checksum.S",
"usb_vid": "0x1b4f", "usb_vid": "0x1B4F",
"usb_pid": "0x0026" "usb_pid": "0x0026"
} }
}, },
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x1B4F",
"0x0026"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x1b4f", "usb_vid": "0x1B4F",
"usb_pid": "0x0026" "usb_pid": "0x0026"
} }
}, },
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x1B4F",
"0x0026"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x2e8a", "usb_vid": "0x2E8A",
"usb_pid": "0x1007" "usb_pid": "0x1007"
} }
}, },
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x2E8A",
"0x1007"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x2e8a", "usb_vid": "0x2E8A",
"usb_pid": "0x1027" "usb_pid": "0x1027"
} }
}, },
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x2E8A",
"0x1027"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x2e8a", "usb_vid": "0x2E8A",
"usb_pid": "0x1029" "usb_pid": "0x1029"
} }
}, },
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x2E8A",
"0x1029"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"arduino": { "arduino": {
"earlephilhower": { "earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S", "boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x2e8a", "usb_vid": "0x2E8A",
"usb_pid": "0x1028" "usb_pid": "0x1028"
} }
}, },
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"0x2E8A",
"0x1028"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
......
...@@ -206,6 +206,10 @@ def MakeBoardJSON(name, vendor_name, product_name, vid, pid, pwr, boarddefine, f ...@@ -206,6 +206,10 @@ def MakeBoardJSON(name, vendor_name, product_name, vid, pid, pwr, boarddefine, f
[ [
"0x2E8A", "0x2E8A",
"0x00C0" "0x00C0"
],
[
"VID",
"PID"
] ]
], ],
"mcu": "rp2040", "mcu": "rp2040",
...@@ -238,7 +242,16 @@ def MakeBoardJSON(name, vendor_name, product_name, vid, pid, pwr, boarddefine, f ...@@ -238,7 +242,16 @@ def MakeBoardJSON(name, vendor_name, product_name, vid, pid, pwr, boarddefine, f
}, },
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/", "url": "https://www.raspberrypi.org/products/raspberry-pi-pico/",
"vendor": "VENDORNAME" "vendor": "VENDORNAME"
}\n""".replace('VARIANTNAME', name).replace('BOARDDEFINE', boarddefine).replace('BOOT2', boot2).replace('VID', vid).replace('PID', pid).replace('VENDORNAME', vendor_name).replace('PRODUCTNAME', product_name).replace('FLASHSIZE', str(1024*1024*flashsizemb)).replace('USBPWR', str(pwr)) }\n"""\
.replace('VARIANTNAME', name)\
.replace('BOARDDEFINE', boarddefine)\
.replace('BOOT2', boot2)\
.replace('VID', vid.upper().replace("X", "x"))\
.replace('PID', pid.upper().replace("X", "x"))\
.replace('VENDORNAME', vendor_name)\
.replace('PRODUCTNAME', product_name)\
.replace('FLASHSIZE', str(1024*1024*flashsizemb))\
.replace('USBPWR', str(pwr))
jsondir = os.path.abspath(os.path.dirname(__file__)) + "/json" jsondir = os.path.abspath(os.path.dirname(__file__)) + "/json"
f = open(jsondir + "/" + name + ".json", "w") f = open(jsondir + "/" + name + ".json", "w")
f.write(json) f.write(json)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment