@typecad/framework-zephyr 1.0.0-alpha.16 → 1.0.0-alpha.19
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/audit.d.ts +111 -0
- package/dist/audit.js +416 -0
- package/dist/boardgen.d.ts +1 -9
- package/dist/boardgen.js +288 -47
- package/dist/chips/resolve.js +20 -0
- package/dist/chips/types.d.ts +22 -1
- package/dist/debug-codegen.js +1 -1
- package/dist/display/bindings.d.ts +55 -0
- package/dist/display/bindings.js +316 -0
- package/dist/display/gfx.d.ts +2 -3
- package/dist/display/gfx.js +166 -154
- package/dist/display/index.js +20 -1
- package/dist/display/mipi-dbi-host.d.ts +9 -0
- package/dist/display/mipi-dbi-host.js +174 -0
- package/dist/display/profiles.d.ts +109 -4
- package/dist/display/profiles.js +270 -7
- package/dist/display/touch-adapter.js +119 -49
- package/dist/display/ui-adapter-eink.d.ts +2 -0
- package/dist/display/ui-adapter-eink.js +4 -0
- package/dist/display/ui-adapter-gray.d.ts +8 -0
- package/dist/display/ui-adapter-gray.js +170 -0
- package/dist/display/ui-adapter-mono.d.ts +13 -0
- package/dist/display/ui-adapter-mono.js +230 -0
- package/dist/display/ui-adapter-native.d.ts +10 -0
- package/dist/display/ui-adapter-native.js +295 -0
- package/dist/display/ui-adapter-shared.d.ts +11 -0
- package/dist/display/ui-adapter-shared.js +122 -0
- package/dist/display/ui-adapter.js +510 -558
- package/dist/doctor.js +4 -4
- package/dist/dt-config/custom-board.js +2 -2
- package/dist/dt-config/kconfig.d.ts +62 -1
- package/dist/dt-config/kconfig.js +141 -38
- package/dist/dt-config/overlay.d.ts +15 -2
- package/dist/dt-config/overlay.js +433 -18
- package/dist/framework.manifest.d.ts +10 -4
- package/dist/framework.manifest.js +133 -17
- package/dist/index.d.ts +2 -0
- package/dist/index.js +14 -6
- package/dist/licenses.d.ts +2 -2
- package/dist/licenses.js +13 -92
- package/dist/lowering/can.d.ts +25 -0
- package/dist/lowering/can.js +97 -0
- package/dist/lowering/clock.d.ts +17 -0
- package/dist/lowering/clock.js +58 -0
- package/dist/lowering/fs.js +1 -1
- package/dist/lowering/gpio.js +0 -32
- package/dist/lowering/hid.d.ts +27 -0
- package/dist/lowering/hid.js +244 -0
- package/dist/lowering/http.js +264 -32
- package/dist/lowering/i2c.d.ts +8 -0
- package/dist/lowering/i2c.js +137 -5
- package/dist/lowering/i2s.d.ts +27 -0
- package/dist/lowering/i2s.js +98 -0
- package/dist/lowering/index.d.ts +9 -1
- package/dist/lowering/index.js +25 -1
- package/dist/lowering/interrupts.js +6 -0
- package/dist/lowering/matrix.d.ts +15 -0
- package/dist/lowering/matrix.js +63 -0
- package/dist/lowering/mqtt.js +110 -8
- package/dist/lowering/power.d.ts +3 -2
- package/dist/lowering/power.js +20 -45
- package/dist/lowering/pwm.js +25 -0
- package/dist/lowering/sensor.d.ts +2 -2
- package/dist/lowering/sensor.js +8 -4
- package/dist/lowering/strip.d.ts +16 -0
- package/dist/lowering/strip.js +70 -0
- package/dist/lowering/thread.js +5 -1
- package/dist/lowering/trace.d.ts +44 -0
- package/dist/lowering/trace.js +239 -0
- package/dist/lowering/uart.js +6 -1
- package/dist/lowering/usb.d.ts +3 -1
- package/dist/lowering/usb.js +16 -13
- package/dist/lowering/wdt.js +2 -29
- package/dist/sbom.d.ts +181 -0
- package/dist/sbom.js +901 -0
- package/dist/sdk/board-catalog-sync.d.ts +1 -3
- package/dist/sdk/board-catalog-sync.js +4 -10
- package/dist/strategy.d.ts +82 -46
- package/dist/strategy.js +639 -182
- 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 +239 -510
- package/dist/toolchain/env-check.d.ts +1 -3
- package/dist/toolchain/env-check.js +2 -7
- package/dist/toolchain/index.d.ts +28 -3
- package/dist/toolchain/index.js +498 -62
- package/dist/toolchain/runners.d.ts +16 -0
- package/dist/toolchain/runners.js +75 -0
- package/dist/toolchain/scaffold.d.ts +5 -2
- package/dist/toolchain/scaffold.js +79 -15
- 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/dist/west-inventory.d.ts +25 -0
- package/dist/west-inventory.js +97 -0
- 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/audit.ts +529 -0
- package/src/boardgen.ts +265 -50
- package/src/chips/resolve.ts +21 -0
- package/src/chips/types.ts +10 -1
- package/src/display/bindings.ts +347 -0
- package/src/display/gfx.ts +318 -306
- package/src/display/index.ts +87 -70
- package/src/display/mipi-dbi-host.ts +183 -0
- package/src/display/profiles.ts +458 -139
- package/src/display/touch-adapter.ts +119 -49
- package/src/display/ui-adapter-eink.ts +13 -0
- package/src/display/ui-adapter-gray.ts +178 -0
- package/src/display/ui-adapter-mono.ts +238 -0
- package/src/display/ui-adapter-native.ts +304 -0
- package/src/display/ui-adapter-shared.ts +125 -0
- package/src/display/ui-adapter.ts +732 -781
- package/src/doctor.ts +4 -4
- package/src/dt-config/custom-board.ts +2 -2
- package/src/dt-config/kconfig.ts +647 -505
- package/src/dt-config/overlay.ts +1475 -1058
- package/src/framework.manifest.ts +659 -535
- package/src/index.ts +16 -6
- package/src/licenses.ts +346 -425
- package/src/lowering/can.ts +140 -0
- package/src/lowering/clock.ts +91 -0
- package/src/lowering/fs.ts +135 -135
- package/src/lowering/gpio.ts +0 -33
- package/src/lowering/hid.ts +261 -0
- package/src/lowering/http.ts +264 -32
- package/src/lowering/i2c.ts +142 -5
- package/src/lowering/i2s.ts +143 -0
- package/src/lowering/index.ts +18 -1
- package/src/lowering/interrupts.ts +6 -0
- package/src/lowering/matrix.ts +70 -0
- package/src/lowering/mqtt.ts +109 -8
- package/src/lowering/power.ts +41 -0
- package/src/lowering/pwm.ts +192 -167
- package/src/lowering/sensor.ts +159 -155
- package/src/lowering/strip.ts +81 -0
- package/src/lowering/thread.ts +5 -1
- package/src/lowering/trace.ts +270 -0
- package/src/lowering/uart.ts +6 -1
- package/src/lowering/usb.ts +16 -13
- package/src/lowering/wdt.ts +2 -25
- package/src/sbom.ts +1117 -0
- package/src/sdk/board-catalog-sync.ts +4 -25
- package/src/strategy.ts +2680 -2309
- package/src/toolchain/debug-config.ts +262 -522
- package/src/toolchain/env-check.ts +279 -285
- package/src/toolchain/index.ts +1792 -1359
- package/src/toolchain/runners.ts +80 -0
- package/src/toolchain/scaffold.ts +355 -296
- package/src/toolchain/west-discover.ts +35 -13
- package/src/toolchain/west-spawn.ts +174 -168
- package/src/west-inventory.ts +102 -0
- 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/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,11 +0,0 @@
|
|
|
1
|
-
// ---------------------------------------------------------------------------
|
|
2
|
-
// board-overrides.ts — curated board-level facts the devicetree cannot
|
|
3
|
-
// express. The honest residue of the board-package deletion: things a board
|
|
4
|
-
// vendor documents in a datasheet but never encodes in DTS.
|
|
5
|
-
//
|
|
6
|
-
// Keyed by the bare board id (the first segment of the qualified target, so
|
|
7
|
-
// every variant/qualifier of the board inherits the override).
|
|
8
|
-
// ----------------------------------------------------------------------------
|
|
9
|
-
export const BOARD_OVERRIDES = {
|
|
10
|
-
esp32s3_devkitc: { led: 'GPIO48' },
|
|
11
|
-
};
|
package/dist/chips/esp32.d.ts
DELETED
package/dist/chips/esp32.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
// ---------------------------------------------------------------------------
|
|
2
|
-
// Espressif ESP32 (esp32_devkitc) — Zephyr board descriptor
|
|
3
|
-
//
|
|
4
|
-
// Board target: `esp32_devkitc` (mainline Zephyr,
|
|
5
|
-
// boards/espressif/esp32_devkitc). Programmed over USB via the esptool runner
|
|
6
|
-
// (see toolchain/index.ts), the same flash path as the ESP32-S3.
|
|
7
|
-
//
|
|
8
|
-
// GPIO is split across TWO devicetree controllers — `gpio0` (pins 0–31) and
|
|
9
|
-
// `gpio1` (pins 32–39) — so this descriptor lists both in `gpioControllers`.
|
|
10
|
-
// The lowering routes each HAL pin to its owning controller at runtime; see
|
|
11
|
-
// chips/controllers.ts. (Same shape as the S3, but the ESP32's highest GPIO is
|
|
12
|
-
// 39, not 48 — `gpio1` has ngpios=8, not 17.)
|
|
13
|
-
//
|
|
14
|
-
// Minimal-by-design: the only DT facts carried here are the ones a compile-time
|
|
15
|
-
// DT macro cannot reach — the runtime pin→controller split, plus the `sw0`
|
|
16
|
-
// alias for the BOOT button (used by the devicetree-spec GPIO path). Every other
|
|
17
|
-
// DT fact (UART/I2C/SPI/`wdt` nodelabels) is resolved by Zephyr's own
|
|
18
|
-
// devicetree via emitted DT_NODELABEL macros, not hand-copied here.
|
|
19
|
-
//
|
|
20
|
-
// Verified against the Zephyr board DTS:
|
|
21
|
-
// boards/espressif/esp32_devkitc/esp32_devkitc_procpu.dts
|
|
22
|
-
// aliases { sw0 = &button0; } → button_0: pin 0 on gpio0, active-low + pull-up
|
|
23
|
-
// &gpio0/&gpio1 { status = "okay" } (esp32_devkitc_procpu.dts:64-70)
|
|
24
|
-
// &wifi { status = "okay" } (esp32_devkitc_procpu.dts:143-145)
|
|
25
|
-
// GPIO controller coverage:
|
|
26
|
-
// dts/xtensa/espressif/esp32/esp32_common.dtsi:314-337
|
|
27
|
-
// gpio0: ngpios = <32> (pins 0–31)
|
|
28
|
-
// gpio1: ngpios = <8> (pins 32–39)
|
|
29
|
-
//
|
|
30
|
-
// Note: GPIO 34–39 are input-only pads on ESP32 silicon (not modeled here —
|
|
31
|
-
// the DT does not encode output restrictions per pin; an output config on those
|
|
32
|
-
// pins fails at runtime against the raw controller, which is the expected
|
|
33
|
-
// silicon-accurate behavior).
|
|
34
|
-
// ---------------------------------------------------------------------------
|
|
35
|
-
export const ESP32_DEVKITC = {
|
|
36
|
-
id: 'esp32_devkitc',
|
|
37
|
-
soc: 'esp32',
|
|
38
|
-
gpioController: 'gpio0',
|
|
39
|
-
gpioControllers: [
|
|
40
|
-
{ nodelabel: 'gpio0', minPin: 0, maxPin: 31 },
|
|
41
|
-
{ nodelabel: 'gpio1', minPin: 32, maxPin: 39 },
|
|
42
|
-
],
|
|
43
|
-
gpio: {
|
|
44
|
-
// The BOOT button (GPIO0) is the board's only DT-aliased GPIO. Listed so a
|
|
45
|
-
// program reading/interrupting pin 0 goes through the polarity-correct
|
|
46
|
-
// devicetree-spec path (GPIO_ACTIVE_LOW honored by the DT flags).
|
|
47
|
-
dtSpecs: [
|
|
48
|
-
{ pin: 0, dtSpec: 'sw0' }, // BOOT button (GPIO0)
|
|
49
|
-
],
|
|
50
|
-
interruptPins: [
|
|
51
|
-
{ pin: 0, dtSpec: 'sw0' }, // BOOT button (GPIO0)
|
|
52
|
-
],
|
|
53
|
-
},
|
|
54
|
-
// WiFi: the ESP32 has a 2.4GHz radio; conn_mgr + the esp32 wifi driver
|
|
55
|
-
// (CONFIG_WIFI_ESP32) provide connectivity. WIFI_ESP32 depends on !SMP, and
|
|
56
|
-
// the ESP32 is AMP (dual-image procpu/appcpu), not SMP, by default — so the
|
|
57
|
-
// dependency is satisfied. Omitted on radioless targets.
|
|
58
|
-
wifi: { supported: true },
|
|
59
|
-
// DAC: the ESP32 has two 8-bit DAC channels on GPIO25 (channel 1) and GPIO26
|
|
60
|
-
// (channel 2). The Zephyr esp32 DAC driver (drivers/dac/dac_esp32.c) exposes
|
|
61
|
-
// them via the `dac0` node; the lowering emits dac_channel_setup +
|
|
62
|
-
// dac_write_value against DEVICE_DT_GET(DT_NODELABEL(dac0)). The overlay
|
|
63
|
-
// enables the node when the program uses dac.*. ESP32-S3 has no DAC.
|
|
64
|
-
dac: {
|
|
65
|
-
device: 'dac0',
|
|
66
|
-
channels: [
|
|
67
|
-
{ pin: 25, channel: 1, resolution: 8 },
|
|
68
|
-
{ pin: 26, channel: 2, resolution: 8 },
|
|
69
|
-
],
|
|
70
|
-
},
|
|
71
|
-
};
|
package/dist/chips/esp32s3.d.ts
DELETED
package/dist/chips/esp32s3.js
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
// ---------------------------------------------------------------------------
|
|
2
|
-
// Espressif ESP32-S3 (esp32s3_devkitc) — Zephyr board descriptor
|
|
3
|
-
//
|
|
4
|
-
// Board target: `esp32s3_devkitc` (mainline Zephyr,
|
|
5
|
-
// boards/espressif/esp32s3_devkitc). Programmed over USB via the esptool
|
|
6
|
-
// runner (see toolchain/index.ts), unlike the J-Link/nrfjprog path used for
|
|
7
|
-
// the XIAO nRF52840.
|
|
8
|
-
//
|
|
9
|
-
// GPIO is split across TWO devicetree controllers — `gpio0` (pins 0–31) and
|
|
10
|
-
// `gpio1` (pins 32–48) — so this descriptor lists both in `gpioControllers`.
|
|
11
|
-
// The lowering routes each HAL pin to its owning controller at runtime; see
|
|
12
|
-
// chips/controllers.ts.
|
|
13
|
-
//
|
|
14
|
-
// Minimal-by-design: the only DT facts carried here are the ones a
|
|
15
|
-
// compile-time DT macro cannot reach — the runtime pin→controller split, plus
|
|
16
|
-
// the `sw0` alias for the BOOT button (used by the devicetree-spec GPIO path).
|
|
17
|
-
// Every other DT fact (UART/I2C/SPI/`wdt` nodelabels) is resolved by Zephyr's
|
|
18
|
-
// own devicetree via emitted DT_NODELABEL macros, not hand-copied here.
|
|
19
|
-
//
|
|
20
|
-
// Verified against the Zephyr board DTS:
|
|
21
|
-
// boards/espressif/esp32s3_devkitc/esp32s3_devkitc_procpu.dts
|
|
22
|
-
// aliases { sw0 = &button0; } → button_0: pin 0 on gpio0, active-low + pull-up
|
|
23
|
-
// (the DevKitC board DTS defines no led0 alias — the onboard RGB is a WS2812
|
|
24
|
-
// on GPIO38, not a plain GPIO LED, so it is intentionally NOT listed here.)
|
|
25
|
-
// ---------------------------------------------------------------------------
|
|
26
|
-
export const ESP32S3_DEVKITC = {
|
|
27
|
-
id: 'esp32s3_devkitc',
|
|
28
|
-
soc: 'esp32s3',
|
|
29
|
-
gpioController: 'gpio0',
|
|
30
|
-
gpioControllers: [
|
|
31
|
-
{ nodelabel: 'gpio0', minPin: 0, maxPin: 31 },
|
|
32
|
-
{ nodelabel: 'gpio1', minPin: 32, maxPin: 48 },
|
|
33
|
-
],
|
|
34
|
-
gpio: {
|
|
35
|
-
// The BOOT button (GPIO0) is the board's only DT-aliased GPIO. Listed so a
|
|
36
|
-
// program reading/interrupting pin 0 goes through the polarity-correct
|
|
37
|
-
// devicetree-spec path (GPIO_ACTIVE_LOW honored by the DT flags). Every
|
|
38
|
-
// other GPIO pin uses the raw-controller path against its owning controller.
|
|
39
|
-
dtSpecs: [
|
|
40
|
-
{ pin: 0, dtSpec: 'sw0' }, // BOOT button (GPIO0)
|
|
41
|
-
],
|
|
42
|
-
interruptPins: [
|
|
43
|
-
{ pin: 0, dtSpec: 'sw0' }, // BOOT button (GPIO0)
|
|
44
|
-
],
|
|
45
|
-
},
|
|
46
|
-
// UART/I2C/SPI/`wdt` are intentionally omitted: their devicetree nodelabels
|
|
47
|
-
// (uart0/uart1/uart2, i2c0/i2c1, spi2/spi3, wdt0) are resolved by Zephyr's
|
|
48
|
-
// devicetree at compile time and don't need to be carried as data here. ADC is
|
|
49
|
-
// omitted as well — added when a demo needs analog reads, with the verified
|
|
50
|
-
// ESP32-S3 ADC1/ADC2 pin→channel map.
|
|
51
|
-
// WiFi: the ESP32-S3 has a 2.4GHz radio; conn_mgr + the esp32 wifi driver
|
|
52
|
-
// (CONFIG_WIFI_ESP32) provide connectivity. Omitted on radioless targets.
|
|
53
|
-
wifi: { supported: true },
|
|
54
|
-
// User buses, mirroring the devkit's verified facts (the
|
|
55
|
-
// board-constants path is authoritative in real builds; this registry
|
|
56
|
-
// entry is the fallback when board constants are absent — e.g. the
|
|
57
|
-
// transpile test harness). uart1 (not uart0 — the console) with the
|
|
58
|
-
// pinctrl group + current-speed the esp32-uart binding requires; i2c0;
|
|
59
|
-
// spi2/spi3.
|
|
60
|
-
i2c: { controllers: [{ nodeLabel: 'i2c0' }] },
|
|
61
|
-
spi: { controllers: [{ nodeLabel: 'spi2' }, { nodeLabel: 'spi3' }] },
|
|
62
|
-
uart: {
|
|
63
|
-
controllers: [
|
|
64
|
-
{
|
|
65
|
-
nodeLabel: 'uart1',
|
|
66
|
-
pinctrlRef: 'uart1_default',
|
|
67
|
-
props: ['current-speed = <115200>;'],
|
|
68
|
-
},
|
|
69
|
-
],
|
|
70
|
-
},
|
|
71
|
-
// USB CDC-ACM over the S3's native USB-OTG (D-/D+ on the dedicated GPIO19/20
|
|
72
|
-
// pads, no GPIO matrix). The board DTS already aliases the DWC2 controller
|
|
73
|
-
// node and enables it (`zephyr_udc0: &usb_otg { status = "okay"; }` —
|
|
74
|
-
// esp32s3_devkitc_procpu.dts), and the UDC DWC2 driver is DT-default-on, so
|
|
75
|
-
// declaring it here is all usb.* needs: the overlay composes one CDC-ACM
|
|
76
|
-
// instance child and the kconfig resolver enables the "next" USB stack.
|
|
77
|
-
// Console stays on uart0 (the devkit's USB-serial bridge) unless
|
|
78
|
-
// `console.output: 'usb'` rebinds zephyr,console to the CDC port.
|
|
79
|
-
usb: { controller: 'zephyr_udc0', cdcInstances: 1, vid: '0x2FE3', pid: '0x0006' },
|
|
80
|
-
// PWM: the LEDC controller (ledc0 in esp32s3_common.dtsi) — 8 channels, each
|
|
81
|
-
// routable to nearly any pad through the GPIO matrix, so this is a matrix
|
|
82
|
-
// (channels assigned to the driven pins at build time), not a static spec
|
|
83
|
-
// list. Pin selection excludes: GPIO0 (boot strap / BOOT button), GPIO19/20
|
|
84
|
-
// (USB D-/D+), GPIO26–32 (SPI flash/PSRAM), GPIO33–37 (octal PSRAM on OPI
|
|
85
|
-
// modules), GPIO43/44 (uart0 console pads). The driver
|
|
86
|
-
// (CONFIG_PWM_LED_ESP32, DT-default-on) requires a pinctrl group routing
|
|
87
|
-
// each used channel (LEDC_CH<ch>_GPIO<pin> pinmux tokens, all 8×46 pairs in
|
|
88
|
-
// esp32s3-pinctrl.h) plus per-channel child nodes (reg + timer) — both
|
|
89
|
-
// emitted by the overlay generator (dt-config/overlay.ts emitPwmNodes).
|
|
90
|
-
pwm: {
|
|
91
|
-
specs: [],
|
|
92
|
-
matrix: {
|
|
93
|
-
controller: 'ledc0',
|
|
94
|
-
channelCount: 8,
|
|
95
|
-
pins: [
|
|
96
|
-
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
|
|
97
|
-
21,
|
|
98
|
-
38, 39, 40, 41, 42,
|
|
99
|
-
45, 46, 47, 48,
|
|
100
|
-
],
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
};
|
package/dist/chips/soc/.d.ts
DELETED
package/dist/chips/soc/.js
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
// GENERATED by scripts/gen-soc-descriptors.mjs — consolidated 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; hand-edit the curated table in
|
|
5
|
-
// the script, not this file.
|
|
6
|
-
export const _SOC = {
|
|
7
|
-
"id": "xiao_ble/nrf52840",
|
|
8
|
-
"soc": "",
|
|
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
|
-
};
|
package/dist/chips/soc/esp32.js
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
// Hand-maintained descriptor table — mechanically migrated from the
|
|
2
|
-
// board-esp32-devkit + mcu-esp32 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 ESP32_SOC = {
|
|
7
|
-
"id": "esp32_devkitc/esp32/procpu",
|
|
8
|
-
"soc": "esp32",
|
|
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": 39
|
|
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
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"nodeLabel": "uart2"
|
|
60
|
-
}
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
|
-
"adc": {
|
|
64
|
-
"nodeLabel": "adc0",
|
|
65
|
-
"resolution": 12,
|
|
66
|
-
"vrefMv": 1100,
|
|
67
|
-
"channels": [
|
|
68
|
-
{
|
|
69
|
-
"pin": 36,
|
|
70
|
-
"channel": 0
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"pin": 37,
|
|
74
|
-
"channel": 1
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"pin": 38,
|
|
78
|
-
"channel": 2
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"pin": 39,
|
|
82
|
-
"channel": 3
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"pin": 32,
|
|
86
|
-
"channel": 4
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"pin": 33,
|
|
90
|
-
"channel": 5
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"pin": 34,
|
|
94
|
-
"channel": 6
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"pin": 35,
|
|
98
|
-
"channel": 7
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
},
|
|
102
|
-
"wdt": {
|
|
103
|
-
"nodeLabel": "wdt0"
|
|
104
|
-
},
|
|
105
|
-
"wifi": {
|
|
106
|
-
"supported": true
|
|
107
|
-
},
|
|
108
|
-
"tier": "validated",
|
|
109
|
-
"pinNaming": "esp32-gpio",
|
|
110
|
-
"excludedPins": [
|
|
111
|
-
6,
|
|
112
|
-
7,
|
|
113
|
-
8,
|
|
114
|
-
9,
|
|
115
|
-
10,
|
|
116
|
-
11,
|
|
117
|
-
16,
|
|
118
|
-
17
|
|
119
|
-
]
|
|
120
|
-
};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
// Hand-maintained descriptor table — mechanically migrated from the
|
|
2
|
-
// board-esp32c3 + mcu-esp32c3 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 ESP32C3_SOC = {
|
|
7
|
-
"id": "esp32c3_devkitm/esp32c3",
|
|
8
|
-
"soc": "esp32c3",
|
|
9
|
-
"gpioController": "gpio0",
|
|
10
|
-
"gpio": {
|
|
11
|
-
"dtSpecs": [
|
|
12
|
-
{
|
|
13
|
-
"pin": 9,
|
|
14
|
-
"dtSpec": "sw0"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"interruptPins": [
|
|
18
|
-
{
|
|
19
|
-
"pin": 9,
|
|
20
|
-
"dtSpec": "sw0"
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
"i2c": {
|
|
25
|
-
"controllers": [
|
|
26
|
-
{
|
|
27
|
-
"nodeLabel": "i2c0"
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
"spi": {
|
|
32
|
-
"controllers": [
|
|
33
|
-
{
|
|
34
|
-
"nodeLabel": "spi2"
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
"uart": {
|
|
39
|
-
"controllers": [
|
|
40
|
-
{
|
|
41
|
-
"nodeLabel": "uart0"
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
"adc": {
|
|
46
|
-
"nodeLabel": "adc0",
|
|
47
|
-
"resolution": 12,
|
|
48
|
-
"vrefMv": 1100,
|
|
49
|
-
"channels": [
|
|
50
|
-
{
|
|
51
|
-
"pin": 0,
|
|
52
|
-
"channel": 0
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"pin": 1,
|
|
56
|
-
"channel": 1
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"pin": 2,
|
|
60
|
-
"channel": 2
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"pin": 3,
|
|
64
|
-
"channel": 3
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"pin": 4,
|
|
68
|
-
"channel": 4
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
},
|
|
72
|
-
"wdt": {
|
|
73
|
-
"nodeLabel": "wdt0"
|
|
74
|
-
},
|
|
75
|
-
"wifi": {
|
|
76
|
-
"supported": true
|
|
77
|
-
},
|
|
78
|
-
"tier": "validated",
|
|
79
|
-
"pinNaming": "esp32-gpio",
|
|
80
|
-
"excludedPins": [
|
|
81
|
-
11,
|
|
82
|
-
12,
|
|
83
|
-
13,
|
|
84
|
-
14,
|
|
85
|
-
15,
|
|
86
|
-
16,
|
|
87
|
-
17,
|
|
88
|
-
18
|
|
89
|
-
]
|
|
90
|
-
};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
// Hand-maintained descriptor table — mechanically migrated from the
|
|
2
|
-
// board-esp32c6 + mcu-esp32c6 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 ESP32C6_SOC = {
|
|
7
|
-
"id": "esp32c6_devkitc/esp32c6/hpcore",
|
|
8
|
-
"soc": "esp32c6",
|
|
9
|
-
"gpioController": "gpio0",
|
|
10
|
-
"gpio": {
|
|
11
|
-
"dtSpecs": [
|
|
12
|
-
{
|
|
13
|
-
"pin": 9,
|
|
14
|
-
"dtSpec": "sw0"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"interruptPins": [
|
|
18
|
-
{
|
|
19
|
-
"pin": 9,
|
|
20
|
-
"dtSpec": "sw0"
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
"i2c": {
|
|
25
|
-
"controllers": [
|
|
26
|
-
{
|
|
27
|
-
"nodeLabel": "i2c0"
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
"spi": {
|
|
32
|
-
"controllers": [
|
|
33
|
-
{
|
|
34
|
-
"nodeLabel": "spi2"
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
"uart": {
|
|
39
|
-
"controllers": [
|
|
40
|
-
{
|
|
41
|
-
"nodeLabel": "uart0"
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
"adc": {
|
|
46
|
-
"nodeLabel": "adc0",
|
|
47
|
-
"resolution": 12,
|
|
48
|
-
"vrefMv": 1100,
|
|
49
|
-
"channels": [
|
|
50
|
-
{
|
|
51
|
-
"pin": 0,
|
|
52
|
-
"channel": 0
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"pin": 1,
|
|
56
|
-
"channel": 1
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"pin": 2,
|
|
60
|
-
"channel": 2
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"pin": 3,
|
|
64
|
-
"channel": 3
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"pin": 4,
|
|
68
|
-
"channel": 4
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"pin": 5,
|
|
72
|
-
"channel": 5
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"pin": 6,
|
|
76
|
-
"channel": 6
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
},
|
|
80
|
-
"wdt": {
|
|
81
|
-
"nodeLabel": "wdt0"
|
|
82
|
-
},
|
|
83
|
-
"wifi": {
|
|
84
|
-
"supported": true
|
|
85
|
-
},
|
|
86
|
-
"tier": "validated",
|
|
87
|
-
"pinNaming": "esp32-gpio",
|
|
88
|
-
"excludedPins": [
|
|
89
|
-
12,
|
|
90
|
-
13,
|
|
91
|
-
14,
|
|
92
|
-
15,
|
|
93
|
-
16,
|
|
94
|
-
17,
|
|
95
|
-
18,
|
|
96
|
-
19,
|
|
97
|
-
20,
|
|
98
|
-
21,
|
|
99
|
-
22,
|
|
100
|
-
23,
|
|
101
|
-
24,
|
|
102
|
-
25,
|
|
103
|
-
26,
|
|
104
|
-
27,
|
|
105
|
-
28,
|
|
106
|
-
29,
|
|
107
|
-
30
|
|
108
|
-
]
|
|
109
|
-
};
|