@typecad/framework-zephyr 1.0.0-alpha.15 → 1.0.0-alpha.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -21
- package/README.md +49 -87
- package/dist/as-built.d.ts +2 -2
- package/dist/as-built.js +2 -2
- package/dist/boardgen.d.ts +1 -9
- package/dist/boardgen.js +228 -45
- package/dist/chips/types.d.ts +1 -1
- package/dist/debug-codegen.js +1 -1
- package/dist/display/touch-adapter.js +1 -1
- package/dist/display/ui-adapter.js +549 -549
- package/dist/doctor.js +4 -4
- package/dist/dt-config/custom-board.js +2 -2
- package/dist/dt-config/kconfig.js +18 -12
- package/dist/dt-config/overlay.d.ts +2 -2
- package/dist/dt-config/overlay.js +2 -2
- package/dist/framework.manifest.d.ts +3 -3
- package/dist/framework.manifest.js +10 -7
- package/dist/index.js +5 -5
- package/dist/licenses.d.ts +2 -2
- package/dist/licenses.js +8 -8
- package/dist/lowering/fs.js +1 -1
- package/dist/lowering/gpio.js +0 -32
- package/dist/lowering/http.js +264 -32
- package/dist/lowering/i2c.js +0 -8
- package/dist/lowering/interrupts.js +6 -0
- package/dist/lowering/mqtt.js +110 -8
- package/dist/lowering/usb.js +11 -11
- package/dist/lowering/wdt.js +2 -29
- package/dist/sdk/board-catalog-sync.d.ts +1 -3
- package/dist/sdk/board-catalog-sync.js +4 -10
- package/dist/strategy.d.ts +22 -44
- package/dist/strategy.js +152 -155
- package/dist/tmp-probe.d.ts +2 -0
- package/dist/tmp-probe.js +9 -0
- package/dist/toolchain/debug-config.d.ts +50 -90
- package/dist/toolchain/debug-config.js +241 -502
- package/dist/toolchain/env-check.d.ts +1 -3
- package/dist/toolchain/env-check.js +2 -7
- package/dist/toolchain/index.d.ts +65 -2
- package/dist/toolchain/index.js +432 -55
- package/dist/toolchain/runners.d.ts +16 -0
- package/dist/toolchain/runners.js +75 -0
- package/dist/toolchain/scaffold.d.ts +1 -1
- package/dist/toolchain/scaffold.js +12 -12
- package/dist/toolchain/west-discover.d.ts +6 -0
- package/dist/toolchain/west-discover.js +36 -13
- package/dist/toolchain/west-spawn.js +8 -2
- package/installer/README.md +328 -328
- package/installer/install.sh +2 -2
- package/installer/templates/project/.typecad/activate-zephyr.ps1 +1 -1
- package/installer/templates/project/.typecad/activate-zephyr.sh +1 -1
- package/installer/templates/project/.vscode/settings.json +1 -1
- package/installer/templates/project/README.md +2 -2
- package/package.json +5 -5
- package/src/as-built.ts +206 -206
- package/src/boardgen.ts +214 -48
- package/src/chips/types.ts +567 -567
- package/src/display/touch-adapter.ts +204 -204
- package/src/display/ui-adapter.ts +781 -781
- package/src/doctor.ts +4 -4
- package/src/dt-config/custom-board.ts +2 -2
- package/src/dt-config/kconfig.ts +18 -12
- package/src/dt-config/overlay.ts +1058 -1058
- package/src/framework.manifest.ts +538 -535
- package/src/index.ts +5 -5
- package/src/licenses.ts +425 -425
- package/src/lowering/fs.ts +135 -135
- package/src/lowering/gpio.ts +0 -33
- package/src/lowering/http.ts +264 -32
- package/src/lowering/i2c.ts +0 -9
- package/src/lowering/interrupts.ts +6 -0
- package/src/lowering/mqtt.ts +109 -8
- package/src/lowering/usb.ts +221 -221
- package/src/lowering/wdt.ts +2 -25
- package/src/sdk/board-catalog-sync.ts +4 -25
- package/src/strategy.ts +2265 -2309
- package/src/toolchain/debug-config.ts +264 -514
- package/src/toolchain/env-check.ts +279 -285
- package/src/toolchain/index.ts +1703 -1286
- package/src/toolchain/runners.ts +80 -0
- package/src/toolchain/scaffold.ts +296 -296
- package/src/toolchain/west-discover.ts +35 -13
- package/src/toolchain/west-spawn.ts +174 -168
- package/dist/async/timer-polyfill.d.ts +0 -10
- package/dist/async/timer-polyfill.js +0 -95
- package/dist/chips/board-overrides.d.ts +0 -7
- package/dist/chips/board-overrides.js +0 -11
- package/dist/chips/esp32.d.ts +0 -2
- package/dist/chips/esp32.js +0 -71
- package/dist/chips/esp32s3.d.ts +0 -2
- package/dist/chips/esp32s3.js +0 -103
- package/dist/chips/soc/.d.ts +0 -2
- package/dist/chips/soc/.js +0 -129
- package/dist/chips/soc/esp32.d.ts +0 -2
- package/dist/chips/soc/esp32.js +0 -120
- package/dist/chips/soc/esp32c3.d.ts +0 -2
- package/dist/chips/soc/esp32c3.js +0 -90
- package/dist/chips/soc/esp32c6.d.ts +0 -2
- package/dist/chips/soc/esp32c6.js +0 -109
- package/dist/chips/soc/esp32s3.d.ts +0 -2
- package/dist/chips/soc/esp32s3.js +0 -189
- package/dist/chips/soc/index.d.ts +0 -2
- package/dist/chips/soc/index.js +0 -23
- package/dist/chips/soc/nrf52840.d.ts +0 -2
- package/dist/chips/soc/nrf52840.js +0 -130
- package/dist/chips/soc/rp2040.d.ts +0 -2
- package/dist/chips/soc/rp2040.js +0 -141
- package/dist/chips/soc/rp2350a.d.ts +0 -2
- package/dist/chips/soc/rp2350a.js +0 -145
- package/dist/chips/soc/samd21g18a.d.ts +0 -2
- package/dist/chips/soc/samd21g18a.js +0 -143
- package/dist/chips/soc/stm32f411xe.d.ts +0 -2
- package/dist/chips/soc/stm32f411xe.js +0 -251
- package/dist/chips/xiao-ble.d.ts +0 -2
- package/dist/chips/xiao-ble.js +0 -100
- package/dist/lowering/power.d.ts +0 -9
- package/dist/lowering/power.js +0 -60
- package/dist/lowering/pulse.d.ts +0 -7
- package/dist/lowering/pulse.js +0 -51
- package/dist/lowering/tone.d.ts +0 -10
- package/dist/lowering/tone.js +0 -63
- package/dist/lowering/worker-backing.d.ts +0 -14
- package/dist/lowering/worker-backing.js +0 -79
- package/dist/lowering/worker.d.ts +0 -6
- package/dist/lowering/worker.js +0 -14
- package/dist/sdk/board-data.generated.d.ts +0 -2
- package/dist/sdk/board-data.generated.js +0 -4
- package/dist/sdk/catalog-walker.d.ts +0 -90
- package/dist/sdk/catalog-walker.js +0 -682
- package/dist/sdk/dts-reader.d.ts +0 -83
- package/dist/sdk/dts-reader.js +0 -596
- package/src/debug-codegen.ts +0 -207
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
// Hand-maintained descriptor table — mechanically migrated from the
|
|
2
|
-
// board-esp32s3 + mcu-esp32s3 package data (the exact flatten+reconstruct the build
|
|
3
|
-
// performed). Curated additions: tier/pinNaming/excludedPins. Regenerate
|
|
4
|
-
// only alongside a descriptor-type change (edit this file; the original
|
|
5
|
-
// migration script was never committed).
|
|
6
|
-
export const ESP32S3_SOC = {
|
|
7
|
-
"id": "esp32s3_devkitc/esp32s3/procpu",
|
|
8
|
-
"soc": "esp32s3",
|
|
9
|
-
"gpioController": "gpio0",
|
|
10
|
-
"gpioControllers": [
|
|
11
|
-
{
|
|
12
|
-
"nodelabel": "gpio0",
|
|
13
|
-
"minPin": 0,
|
|
14
|
-
"maxPin": 31
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"nodelabel": "gpio1",
|
|
18
|
-
"minPin": 32,
|
|
19
|
-
"maxPin": 48
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"gpio": {
|
|
23
|
-
"dtSpecs": [
|
|
24
|
-
{
|
|
25
|
-
"pin": 0,
|
|
26
|
-
"dtSpec": "sw0"
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
"interruptPins": [
|
|
30
|
-
{
|
|
31
|
-
"pin": 0,
|
|
32
|
-
"dtSpec": "sw0"
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
"i2c": {
|
|
37
|
-
"controllers": [
|
|
38
|
-
{
|
|
39
|
-
"nodeLabel": "i2c0"
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
},
|
|
43
|
-
"spi": {
|
|
44
|
-
"controllers": [
|
|
45
|
-
{
|
|
46
|
-
"nodeLabel": "spi2"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"nodeLabel": "spi3"
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
"uart": {
|
|
54
|
-
"controllers": [
|
|
55
|
-
{
|
|
56
|
-
"nodeLabel": "uart1",
|
|
57
|
-
"pinctrlRef": "uart1_default",
|
|
58
|
-
"props": [
|
|
59
|
-
"current-speed = <115200>;"
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
|
-
"pwm": {
|
|
65
|
-
"specs": [],
|
|
66
|
-
"matrix": {
|
|
67
|
-
"controller": "ledc0",
|
|
68
|
-
"channelCount": 8,
|
|
69
|
-
"pins": [
|
|
70
|
-
1,
|
|
71
|
-
2,
|
|
72
|
-
3,
|
|
73
|
-
4,
|
|
74
|
-
5,
|
|
75
|
-
6,
|
|
76
|
-
7,
|
|
77
|
-
8,
|
|
78
|
-
9,
|
|
79
|
-
10,
|
|
80
|
-
11,
|
|
81
|
-
12,
|
|
82
|
-
13,
|
|
83
|
-
14,
|
|
84
|
-
15,
|
|
85
|
-
16,
|
|
86
|
-
17,
|
|
87
|
-
18,
|
|
88
|
-
21,
|
|
89
|
-
38,
|
|
90
|
-
39,
|
|
91
|
-
40,
|
|
92
|
-
41,
|
|
93
|
-
42,
|
|
94
|
-
45,
|
|
95
|
-
46,
|
|
96
|
-
47,
|
|
97
|
-
48
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
"maxFrequencyHz": 40000000,
|
|
101
|
-
"resolutionBits": 20
|
|
102
|
-
},
|
|
103
|
-
"adc": {
|
|
104
|
-
"nodeLabel": "adc0",
|
|
105
|
-
"resolution": 12,
|
|
106
|
-
"vrefMv": 1100,
|
|
107
|
-
"channels": [
|
|
108
|
-
{
|
|
109
|
-
"pin": 1,
|
|
110
|
-
"channel": 0
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"pin": 2,
|
|
114
|
-
"channel": 1
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"pin": 3,
|
|
118
|
-
"channel": 2
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"pin": 4,
|
|
122
|
-
"channel": 3
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"pin": 5,
|
|
126
|
-
"channel": 4
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"pin": 6,
|
|
130
|
-
"channel": 5
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"pin": 7,
|
|
134
|
-
"channel": 6
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"pin": 8,
|
|
138
|
-
"channel": 7
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"pin": 9,
|
|
142
|
-
"channel": 8
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"pin": 10,
|
|
146
|
-
"channel": 9
|
|
147
|
-
}
|
|
148
|
-
]
|
|
149
|
-
},
|
|
150
|
-
"wdt": {
|
|
151
|
-
"nodeLabel": "wdt0"
|
|
152
|
-
},
|
|
153
|
-
"usb": {
|
|
154
|
-
"controller": "zephyr_udc0",
|
|
155
|
-
"cdcInstances": 1,
|
|
156
|
-
"vid": "0x2FE3",
|
|
157
|
-
"pid": "0x0006"
|
|
158
|
-
},
|
|
159
|
-
"wifi": {
|
|
160
|
-
"supported": true
|
|
161
|
-
},
|
|
162
|
-
"tier": "validated",
|
|
163
|
-
"pinNaming": "esp32-gpio",
|
|
164
|
-
"excludedPins": [
|
|
165
|
-
0,
|
|
166
|
-
19,
|
|
167
|
-
20,
|
|
168
|
-
22,
|
|
169
|
-
23,
|
|
170
|
-
24,
|
|
171
|
-
25,
|
|
172
|
-
26,
|
|
173
|
-
27,
|
|
174
|
-
28,
|
|
175
|
-
29,
|
|
176
|
-
30,
|
|
177
|
-
31,
|
|
178
|
-
32,
|
|
179
|
-
33,
|
|
180
|
-
34,
|
|
181
|
-
35,
|
|
182
|
-
36,
|
|
183
|
-
37,
|
|
184
|
-
43,
|
|
185
|
-
44,
|
|
186
|
-
45,
|
|
187
|
-
46
|
|
188
|
-
]
|
|
189
|
-
};
|
package/dist/chips/soc/index.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// Hand-maintained soc-keyed chip registry — mechanically migrated from the
|
|
2
|
-
// registry. chipForSoc() resolves a consolidated descriptor by the SoC name
|
|
3
|
-
// (the second segment of a Zephyr board target, or the config's soc: field).
|
|
4
|
-
import { ESP32_SOC } from './esp32.js';
|
|
5
|
-
import { ESP32C3_SOC } from './esp32c3.js';
|
|
6
|
-
import { ESP32C6_SOC } from './esp32c6.js';
|
|
7
|
-
import { ESP32S3_SOC } from './esp32s3.js';
|
|
8
|
-
import { SAMD21G18A_SOC } from './samd21g18a.js';
|
|
9
|
-
import { RP2040_SOC } from './rp2040.js';
|
|
10
|
-
import { RP2350A_SOC } from './rp2350a.js';
|
|
11
|
-
import { NRF52840_SOC } from './nrf52840.js';
|
|
12
|
-
import { STM32F411XE_SOC } from './stm32f411xe.js';
|
|
13
|
-
export const SOC_CHIPS = {
|
|
14
|
-
"esp32": ESP32_SOC,
|
|
15
|
-
"esp32c3": ESP32C3_SOC,
|
|
16
|
-
"esp32c6": ESP32C6_SOC,
|
|
17
|
-
"esp32s3": ESP32S3_SOC,
|
|
18
|
-
"samd21g18a": SAMD21G18A_SOC,
|
|
19
|
-
"rp2040": RP2040_SOC,
|
|
20
|
-
"rp2350a": RP2350A_SOC,
|
|
21
|
-
"nrf52840": NRF52840_SOC,
|
|
22
|
-
"stm32f411xe": STM32F411XE_SOC,
|
|
23
|
-
};
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
// Hand-maintained descriptor table — mechanically migrated from the
|
|
2
|
-
// board-xiao-nrf52840 + mcu-nrf52840 package data (the exact flatten+reconstruct the build
|
|
3
|
-
// performed). Curated additions: tier/pinNaming/excludedPins. Regenerate
|
|
4
|
-
// only alongside a descriptor-type change (edit this file; the original
|
|
5
|
-
// migration script was never committed).
|
|
6
|
-
export const NRF52840_SOC = {
|
|
7
|
-
"id": "xiao_ble/nrf52840",
|
|
8
|
-
"soc": "nrf52840",
|
|
9
|
-
"gpioController": "gpio0",
|
|
10
|
-
"gpioControllers": [
|
|
11
|
-
{
|
|
12
|
-
"nodelabel": "gpio0",
|
|
13
|
-
"minPin": 0,
|
|
14
|
-
"maxPin": 31
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"nodelabel": "gpio1",
|
|
18
|
-
"minPin": 32,
|
|
19
|
-
"maxPin": 47
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"gpio": {
|
|
23
|
-
"dtSpecs": [
|
|
24
|
-
{
|
|
25
|
-
"pin": 26,
|
|
26
|
-
"dtSpec": "led0"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"pin": 30,
|
|
30
|
-
"dtSpec": "led1"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"pin": 6,
|
|
34
|
-
"dtSpec": "led2"
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
"i2c": {
|
|
39
|
-
"controllers": [
|
|
40
|
-
{
|
|
41
|
-
"nodeLabel": "i2c1"
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
"spi": {
|
|
46
|
-
"controllers": [
|
|
47
|
-
{
|
|
48
|
-
"nodeLabel": "spi2"
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
"uart": {
|
|
53
|
-
"controllers": [
|
|
54
|
-
{
|
|
55
|
-
"nodeLabel": "uart0"
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
"pwm": {
|
|
60
|
-
"specs": [
|
|
61
|
-
{
|
|
62
|
-
"pin": 17,
|
|
63
|
-
"dtSpec": "pwm-led0"
|
|
64
|
-
}
|
|
65
|
-
],
|
|
66
|
-
"maxFrequencyHz": 2000000,
|
|
67
|
-
"resolutionBits": 16
|
|
68
|
-
},
|
|
69
|
-
"adc": {
|
|
70
|
-
"nodeLabel": "adc",
|
|
71
|
-
"resolution": 12,
|
|
72
|
-
"vrefMv": 3000,
|
|
73
|
-
"channels": [
|
|
74
|
-
{
|
|
75
|
-
"pin": 2,
|
|
76
|
-
"channel": 0
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"pin": 3,
|
|
80
|
-
"channel": 1
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"pin": 28,
|
|
84
|
-
"channel": 2
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"pin": 29,
|
|
88
|
-
"channel": 3
|
|
89
|
-
}
|
|
90
|
-
]
|
|
91
|
-
},
|
|
92
|
-
"wdt": {
|
|
93
|
-
"nodeLabel": "wdt0"
|
|
94
|
-
},
|
|
95
|
-
"usb": {
|
|
96
|
-
"controller": "zephyr_udc0",
|
|
97
|
-
"cdcInstances": 1,
|
|
98
|
-
"vid": "0x2FE3",
|
|
99
|
-
"pid": "0x0003"
|
|
100
|
-
},
|
|
101
|
-
"probeMethods": [
|
|
102
|
-
{
|
|
103
|
-
"id": "jlink",
|
|
104
|
-
"runner": "jlink",
|
|
105
|
-
"description": "J-Link probe (SWD)",
|
|
106
|
-
"debug": true,
|
|
107
|
-
"debugInterface": "swd",
|
|
108
|
-
"debugDevice": "nRF52840_xxAA"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"id": "openocd",
|
|
112
|
-
"runner": "openocd",
|
|
113
|
-
"description": "Any SWD probe openocd supports (CMSIS-DAP, cheap clones)",
|
|
114
|
-
"debug": true,
|
|
115
|
-
"debugInterface": "swd",
|
|
116
|
-
"debugCfgSource": [
|
|
117
|
-
"interface/stlink.cfg",
|
|
118
|
-
"target/nrf52.cfg"
|
|
119
|
-
]
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"id": "uf2",
|
|
123
|
-
"runner": "uf2",
|
|
124
|
-
"description": "Bootloader UF2 drag-and-drop: double-tap reset",
|
|
125
|
-
"debug": false
|
|
126
|
-
}
|
|
127
|
-
],
|
|
128
|
-
"tier": "validated",
|
|
129
|
-
"pinNaming": "nrf-port"
|
|
130
|
-
};
|
package/dist/chips/soc/rp2040.js
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
// Hand-maintained descriptor table — mechanically migrated from the
|
|
2
|
-
// board-rp2040 + mcu-rp2040 package data (the exact flatten+reconstruct the build
|
|
3
|
-
// performed). Curated additions: tier/pinNaming/excludedPins. Regenerate
|
|
4
|
-
// only alongside a descriptor-type change (edit this file; the original
|
|
5
|
-
// migration script was never committed).
|
|
6
|
-
export const RP2040_SOC = {
|
|
7
|
-
"id": "rpi_pico/rp2040",
|
|
8
|
-
"soc": "rp2040",
|
|
9
|
-
"gpioController": "gpio0",
|
|
10
|
-
"gpio": {
|
|
11
|
-
"dtSpecs": [
|
|
12
|
-
{
|
|
13
|
-
"pin": 25,
|
|
14
|
-
"dtSpec": "led0"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
"i2c": {
|
|
19
|
-
"controllers": [
|
|
20
|
-
{
|
|
21
|
-
"nodeLabel": "i2c0"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"nodeLabel": "i2c1"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
"spi": {
|
|
29
|
-
"controllers": [
|
|
30
|
-
{
|
|
31
|
-
"nodeLabel": "spi0"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"nodeLabel": "spi1"
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
"uart": {
|
|
39
|
-
"controllers": [
|
|
40
|
-
{
|
|
41
|
-
"nodeLabel": "uart0"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"nodeLabel": "uart1",
|
|
45
|
-
"pinctrl": {
|
|
46
|
-
"include": "zephyr/dt-bindings/pinctrl/rpi-pico-rp2040-pinctrl.h",
|
|
47
|
-
"pinmux": [
|
|
48
|
-
"UART1_TX_P8"
|
|
49
|
-
],
|
|
50
|
-
"inputPinmux": [
|
|
51
|
-
"UART1_RX_P9"
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
|
-
"props": [
|
|
55
|
-
"current-speed = <115200>;"
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
},
|
|
60
|
-
"pwm": {
|
|
61
|
-
"specs": [
|
|
62
|
-
{
|
|
63
|
-
"pin": 25,
|
|
64
|
-
"controller": "pwm",
|
|
65
|
-
"channel": 9
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
|
-
"maxFrequencyHz": 62500000,
|
|
69
|
-
"resolutionBits": 16
|
|
70
|
-
},
|
|
71
|
-
"adc": {
|
|
72
|
-
"nodeLabel": "adc",
|
|
73
|
-
"resolution": 12,
|
|
74
|
-
"vrefMv": 3300,
|
|
75
|
-
"channels": [
|
|
76
|
-
{
|
|
77
|
-
"pin": 26,
|
|
78
|
-
"channel": 0
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"pin": 27,
|
|
82
|
-
"channel": 1
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"pin": 28,
|
|
86
|
-
"channel": 2
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"pin": 29,
|
|
90
|
-
"channel": 3
|
|
91
|
-
}
|
|
92
|
-
]
|
|
93
|
-
},
|
|
94
|
-
"wdt": {
|
|
95
|
-
"nodeLabel": "wdt0"
|
|
96
|
-
},
|
|
97
|
-
"storage": {
|
|
98
|
-
"offset": 1572864,
|
|
99
|
-
"size": 524288
|
|
100
|
-
},
|
|
101
|
-
"usb": {
|
|
102
|
-
"controller": "zephyr_udc0",
|
|
103
|
-
"cdcInstances": 1,
|
|
104
|
-
"vid": "0x2FE3",
|
|
105
|
-
"pid": "0x0004"
|
|
106
|
-
},
|
|
107
|
-
"consoleDescription": "uart0 on GP0 (TX) / GP1 (RX)",
|
|
108
|
-
"probeMethods": [
|
|
109
|
-
{
|
|
110
|
-
"id": "uf2",
|
|
111
|
-
"runner": "uf2",
|
|
112
|
-
"description": "BOOTSEL UF2 bootloader: hold BOOTSEL while plugging in USB (no debug)",
|
|
113
|
-
"debug": false
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"id": "openocd",
|
|
117
|
-
"runner": "openocd",
|
|
118
|
-
"description": "Any CMSIS-DAP-class SWD probe on the SWD header — also debugs",
|
|
119
|
-
"debug": true,
|
|
120
|
-
"debugInterface": "swd",
|
|
121
|
-
"debugCfgSource": [
|
|
122
|
-
"interface/cmsis-dap.cfg",
|
|
123
|
-
"target/rp2040.cfg"
|
|
124
|
-
]
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"id": "jlink",
|
|
128
|
-
"runner": "jlink",
|
|
129
|
-
"description": "J-Link probe (SWD) — also debugs",
|
|
130
|
-
"debug": true,
|
|
131
|
-
"debugInterface": "swd",
|
|
132
|
-
"debugDevice": "RP2040_M0_0"
|
|
133
|
-
}
|
|
134
|
-
],
|
|
135
|
-
"tier": "validated",
|
|
136
|
-
"pinNaming": "rp-gpio",
|
|
137
|
-
"excludedPins": [
|
|
138
|
-
23,
|
|
139
|
-
24
|
|
140
|
-
]
|
|
141
|
-
};
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
// Hand-maintained descriptor table — mechanically migrated from the
|
|
2
|
-
// board-rp2350 + mcu-rp2350 package data (the exact flatten+reconstruct the build
|
|
3
|
-
// performed). Curated additions: tier/pinNaming/excludedPins. Regenerate
|
|
4
|
-
// only alongside a descriptor-type change (edit this file; the original
|
|
5
|
-
// migration script was never committed).
|
|
6
|
-
export const RP2350A_SOC = {
|
|
7
|
-
"id": "rpi_pico2/rp2350a/m33",
|
|
8
|
-
"soc": "rp2350a",
|
|
9
|
-
"gpioController": "gpio0",
|
|
10
|
-
"gpio": {
|
|
11
|
-
"dtSpecs": [
|
|
12
|
-
{
|
|
13
|
-
"pin": 25,
|
|
14
|
-
"dtSpec": "led0"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
"i2c": {
|
|
19
|
-
"controllers": [
|
|
20
|
-
{
|
|
21
|
-
"nodeLabel": "i2c0"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"nodeLabel": "i2c1"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
"spi": {
|
|
29
|
-
"controllers": [
|
|
30
|
-
{
|
|
31
|
-
"nodeLabel": "spi0"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"nodeLabel": "spi1"
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
"uart": {
|
|
39
|
-
"controllers": [
|
|
40
|
-
{
|
|
41
|
-
"nodeLabel": "uart0"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"nodeLabel": "uart1",
|
|
45
|
-
"pinctrl": {
|
|
46
|
-
"include": "zephyr/dt-bindings/pinctrl/rpi-pico-rp2350a-pinctrl.h",
|
|
47
|
-
"pinmux": [
|
|
48
|
-
"UART1_TX_P22"
|
|
49
|
-
],
|
|
50
|
-
"inputPinmux": [
|
|
51
|
-
"UART1_RX_P23"
|
|
52
|
-
],
|
|
53
|
-
"defines": [
|
|
54
|
-
"RP2_PINCTRL_GPIO_FUNC_UART_ALT 11"
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
|
-
"props": [
|
|
58
|
-
"current-speed = <115200>;"
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
|
-
"pwm": {
|
|
64
|
-
"specs": [
|
|
65
|
-
{
|
|
66
|
-
"pin": 25,
|
|
67
|
-
"controller": "pwm",
|
|
68
|
-
"channel": 9
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"maxFrequencyHz": 75000000,
|
|
72
|
-
"resolutionBits": 16
|
|
73
|
-
},
|
|
74
|
-
"adc": {
|
|
75
|
-
"nodeLabel": "adc",
|
|
76
|
-
"resolution": 12,
|
|
77
|
-
"vrefMv": 3300,
|
|
78
|
-
"channels": [
|
|
79
|
-
{
|
|
80
|
-
"pin": 26,
|
|
81
|
-
"channel": 0
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"pin": 27,
|
|
85
|
-
"channel": 1
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"pin": 28,
|
|
89
|
-
"channel": 2
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"pin": 29,
|
|
93
|
-
"channel": 3
|
|
94
|
-
}
|
|
95
|
-
]
|
|
96
|
-
},
|
|
97
|
-
"wdt": {
|
|
98
|
-
"nodeLabel": "wdt0"
|
|
99
|
-
},
|
|
100
|
-
"storage": {
|
|
101
|
-
"offset": 3145728,
|
|
102
|
-
"size": 1048576
|
|
103
|
-
},
|
|
104
|
-
"usb": {
|
|
105
|
-
"controller": "zephyr_udc0",
|
|
106
|
-
"cdcInstances": 1,
|
|
107
|
-
"vid": "0x2FE3",
|
|
108
|
-
"pid": "0x0005"
|
|
109
|
-
},
|
|
110
|
-
"consoleDescription": "uart0 on GP0 (TX) / GP1 (RX)",
|
|
111
|
-
"probeMethods": [
|
|
112
|
-
{
|
|
113
|
-
"id": "uf2",
|
|
114
|
-
"runner": "uf2",
|
|
115
|
-
"description": "BOOTSEL UF2 bootloader: hold BOOTSEL while plugging in USB (no debug)",
|
|
116
|
-
"debug": false
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"id": "openocd",
|
|
120
|
-
"runner": "openocd",
|
|
121
|
-
"description": "Any CMSIS-DAP-class SWD probe on the SWD header (m33 core) — also debugs",
|
|
122
|
-
"debug": true,
|
|
123
|
-
"debugInterface": "swd",
|
|
124
|
-
"debugCfgSource": [
|
|
125
|
-
"interface/cmsis-dap.cfg",
|
|
126
|
-
"target/rp2350.cfg"
|
|
127
|
-
]
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"id": "jlink",
|
|
131
|
-
"runner": "jlink",
|
|
132
|
-
"description": "J-Link probe (SWD) — also debugs",
|
|
133
|
-
"debug": true,
|
|
134
|
-
"debugInterface": "swd",
|
|
135
|
-
"debugDevice": "RP2350_M33_0"
|
|
136
|
-
}
|
|
137
|
-
],
|
|
138
|
-
"tier": "validated",
|
|
139
|
-
"pinNaming": "rp-gpio",
|
|
140
|
-
"excludedPins": [
|
|
141
|
-
23,
|
|
142
|
-
24,
|
|
143
|
-
47
|
|
144
|
-
]
|
|
145
|
-
};
|