@typecad/framework-zephyr 1.0.0-alpha.14 → 1.0.0-alpha.16

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.
Files changed (185) hide show
  1. package/README.md +22 -47
  2. package/dist/as-built.d.ts +33 -0
  3. package/dist/as-built.js +188 -0
  4. package/dist/async/timer-polyfill.js +1 -1
  5. package/dist/boardgen.d.ts +128 -0
  6. package/dist/boardgen.js +1366 -0
  7. package/dist/chips/board-overrides.d.ts +7 -0
  8. package/dist/chips/board-overrides.js +11 -0
  9. package/dist/chips/esp32s3.js +49 -0
  10. package/dist/chips/index.d.ts +6 -12
  11. package/dist/chips/index.js +18 -34
  12. package/dist/chips/resolve.d.ts +16 -2
  13. package/dist/chips/resolve.js +267 -10
  14. package/dist/chips/soc/.d.ts +2 -0
  15. package/dist/chips/soc/.js +129 -0
  16. package/dist/chips/soc/esp32.d.ts +2 -0
  17. package/dist/chips/soc/esp32.js +120 -0
  18. package/dist/chips/soc/esp32c3.d.ts +2 -0
  19. package/dist/chips/soc/esp32c3.js +90 -0
  20. package/dist/chips/soc/esp32c6.d.ts +2 -0
  21. package/dist/chips/soc/esp32c6.js +109 -0
  22. package/dist/chips/soc/esp32s3.d.ts +2 -0
  23. package/dist/chips/soc/esp32s3.js +189 -0
  24. package/dist/chips/soc/index.d.ts +2 -0
  25. package/dist/chips/soc/index.js +23 -0
  26. package/dist/chips/soc/nrf52840.d.ts +2 -0
  27. package/dist/chips/soc/nrf52840.js +130 -0
  28. package/dist/chips/soc/rp2040.d.ts +2 -0
  29. package/dist/chips/soc/rp2040.js +141 -0
  30. package/dist/chips/soc/rp2350a.d.ts +2 -0
  31. package/dist/chips/soc/rp2350a.js +145 -0
  32. package/dist/chips/soc/samd21g18a.d.ts +2 -0
  33. package/dist/chips/soc/samd21g18a.js +143 -0
  34. package/dist/chips/soc/stm32f411xe.d.ts +2 -0
  35. package/dist/chips/soc/stm32f411xe.js +251 -0
  36. package/dist/chips/types.d.ts +319 -0
  37. package/dist/chips/xiao-ble.js +21 -0
  38. package/dist/display/profiles.js +1 -1
  39. package/dist/doctor.js +38 -4
  40. package/dist/dt-config/custom-board.d.ts +23 -0
  41. package/dist/dt-config/custom-board.js +227 -0
  42. package/dist/dt-config/kconfig.d.ts +72 -1
  43. package/dist/dt-config/kconfig.js +115 -26
  44. package/dist/dt-config/overlay.js +548 -28
  45. package/dist/framework.manifest.d.ts +3 -3
  46. package/dist/framework.manifest.js +122 -185
  47. package/dist/index.d.ts +4 -1
  48. package/dist/index.js +8 -2
  49. package/dist/lowering/adc.d.ts +20 -2
  50. package/dist/lowering/adc.js +121 -29
  51. package/dist/lowering/ble.js +31 -28
  52. package/dist/lowering/dac.js +9 -9
  53. package/dist/lowering/fs.js +18 -10
  54. package/dist/lowering/gpio.d.ts +2 -0
  55. package/dist/lowering/gpio.js +82 -5
  56. package/dist/lowering/http.js +39 -14
  57. package/dist/lowering/hwtimer.d.ts +4 -0
  58. package/dist/lowering/hwtimer.js +35 -10
  59. package/dist/lowering/i2c.js +46 -54
  60. package/dist/lowering/index.d.ts +5 -5
  61. package/dist/lowering/index.js +15 -16
  62. package/dist/lowering/interrupts.d.ts +22 -5
  63. package/dist/lowering/interrupts.js +104 -22
  64. package/dist/lowering/mqtt.js +3 -5
  65. package/dist/lowering/power.js +0 -4
  66. package/dist/lowering/preferences.js +49 -77
  67. package/dist/lowering/pulse.js +0 -31
  68. package/dist/lowering/pwm.d.ts +12 -1
  69. package/dist/lowering/pwm.js +78 -14
  70. package/dist/lowering/random.js +3 -3
  71. package/dist/lowering/sensor.d.ts +37 -0
  72. package/dist/lowering/sensor.js +119 -0
  73. package/dist/lowering/spi.d.ts +12 -0
  74. package/dist/lowering/spi.js +65 -40
  75. package/dist/lowering/thread.d.ts +14 -0
  76. package/dist/lowering/thread.js +55 -0
  77. package/dist/lowering/timing.js +20 -46
  78. package/dist/lowering/tone.js +16 -4
  79. package/dist/lowering/uart.d.ts +13 -0
  80. package/dist/lowering/uart.js +72 -51
  81. package/dist/lowering/usb.d.ts +34 -0
  82. package/dist/lowering/usb.js +206 -0
  83. package/dist/lowering/wdt.d.ts +1 -1
  84. package/dist/lowering/wdt.js +17 -7
  85. package/dist/lowering/wifi.d.ts +3 -2
  86. package/dist/lowering/wifi.js +97 -111
  87. package/dist/sdk/board-catalog-sync.d.ts +16 -0
  88. package/dist/sdk/board-catalog-sync.js +41 -0
  89. package/dist/sdk/board-data.generated.d.ts +2 -0
  90. package/dist/sdk/board-data.generated.js +4 -0
  91. package/dist/sdk/catalog-walker.d.ts +90 -0
  92. package/dist/sdk/catalog-walker.js +682 -0
  93. package/dist/sdk/dts-reader.d.ts +83 -0
  94. package/dist/sdk/dts-reader.js +596 -0
  95. package/dist/strategy.d.ts +136 -17
  96. package/dist/strategy.js +839 -222
  97. package/dist/toolchain/bossac-touch.d.ts +18 -0
  98. package/dist/toolchain/bossac-touch.js +88 -0
  99. package/dist/toolchain/compat.d.ts +2 -2
  100. package/dist/toolchain/compat.js +8 -3
  101. package/dist/toolchain/debug-config.d.ts +21 -26
  102. package/dist/toolchain/debug-config.js +226 -76
  103. package/dist/toolchain/env-check.d.ts +4 -4
  104. package/dist/toolchain/env-check.js +5 -5
  105. package/dist/toolchain/index.d.ts +115 -1
  106. package/dist/toolchain/index.js +680 -71
  107. package/dist/toolchain/scaffold.js +39 -7
  108. package/dist/toolchain/west-discover.d.ts +4 -0
  109. package/dist/toolchain/west-discover.js +17 -6
  110. package/installer/CHANGELOG.md +473 -0
  111. package/installer/README.md +328 -0
  112. package/installer/environment.yml +46 -0
  113. package/installer/etc/conda/activate.d/zephyr.bat +7 -0
  114. package/installer/etc/conda/activate.d/zephyr.ps1 +12 -0
  115. package/installer/etc/conda/activate.d/zephyr.sh +20 -0
  116. package/installer/etc/conda/deactivate.d/zephyr.bat +6 -0
  117. package/installer/etc/conda/deactivate.d/zephyr.ps1 +6 -0
  118. package/installer/etc/conda/deactivate.d/zephyr.sh +4 -0
  119. package/installer/install.mjs +580 -0
  120. package/installer/install.ps1 +619 -0
  121. package/installer/install.sh +310 -0
  122. package/installer/lib/detect-platform.sh +62 -0
  123. package/installer/lib/fetch-sdk.sh +304 -0
  124. package/installer/lib/init-workspace.sh +153 -0
  125. package/installer/lib/write-activation.sh +76 -0
  126. package/installer/patches/tfm-c-include-separators.patch +19 -0
  127. package/installer/patches/zephyr-tfm-nordic-zephyr-include.patch +24 -0
  128. package/installer/templates/project/.typecad/activate-zephyr.ps1 +31 -0
  129. package/installer/templates/project/.typecad/activate-zephyr.sh +31 -0
  130. package/installer/templates/project/.vscode/settings.json +30 -0
  131. package/installer/templates/project/README.md +58 -0
  132. package/installer/versions.env +110 -0
  133. package/package.json +15 -15
  134. package/src/as-built.ts +206 -0
  135. package/src/boardgen.ts +1428 -0
  136. package/src/chips/index.ts +35 -54
  137. package/src/chips/resolve.ts +285 -10
  138. package/src/chips/types.ts +325 -1
  139. package/src/display/profiles.ts +1 -1
  140. package/src/doctor.ts +110 -77
  141. package/src/dt-config/custom-board.ts +325 -0
  142. package/src/dt-config/kconfig.ts +165 -18
  143. package/src/dt-config/overlay.ts +537 -25
  144. package/src/framework.manifest.ts +123 -185
  145. package/src/index.ts +57 -41
  146. package/src/lowering/adc.ts +222 -118
  147. package/src/lowering/ble.ts +32 -28
  148. package/src/lowering/dac.ts +82 -82
  149. package/src/lowering/fs.ts +18 -10
  150. package/src/lowering/gpio.ts +242 -155
  151. package/src/lowering/http.ts +512 -488
  152. package/src/lowering/hwtimer.ts +139 -101
  153. package/src/lowering/i2c.ts +116 -126
  154. package/src/lowering/index.ts +91 -93
  155. package/src/lowering/interrupts.ts +113 -21
  156. package/src/lowering/mqtt.ts +3 -5
  157. package/src/lowering/preferences.ts +327 -354
  158. package/src/lowering/pwm.ts +167 -99
  159. package/src/lowering/random.ts +3 -3
  160. package/src/lowering/sensor.ts +155 -0
  161. package/src/lowering/spi.ts +164 -124
  162. package/src/lowering/thread.ts +63 -0
  163. package/src/lowering/timing.ts +46 -72
  164. package/src/lowering/uart.ts +73 -51
  165. package/src/lowering/usb.ts +221 -0
  166. package/src/lowering/wdt.ts +95 -84
  167. package/src/lowering/wifi.ts +97 -112
  168. package/src/sdk/board-catalog-sync.ts +62 -0
  169. package/src/strategy.ts +848 -237
  170. package/src/toolchain/bossac-touch.ts +112 -0
  171. package/src/toolchain/compat.ts +8 -3
  172. package/src/toolchain/debug-config.ts +676 -522
  173. package/src/toolchain/env-check.ts +9 -9
  174. package/src/toolchain/index.ts +1359 -645
  175. package/src/toolchain/scaffold.ts +38 -7
  176. package/src/toolchain/west-discover.ts +19 -6
  177. package/src/async/timer-polyfill.ts +0 -107
  178. package/src/chips/esp32.ts +0 -74
  179. package/src/chips/esp32s3.ts +0 -57
  180. package/src/chips/xiao-ble.ts +0 -82
  181. package/src/lowering/power.ts +0 -70
  182. package/src/lowering/pulse.ts +0 -93
  183. package/src/lowering/tone.ts +0 -60
  184. package/src/lowering/worker-backing.ts +0 -94
  185. package/src/lowering/worker.ts +0 -17
@@ -0,0 +1,130 @@
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
+ };
@@ -0,0 +1,2 @@
1
+ import type { ZephyrChipDescriptor } from '../types.js';
2
+ export declare const RP2040_SOC: ZephyrChipDescriptor;
@@ -0,0 +1,141 @@
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
+ };
@@ -0,0 +1,2 @@
1
+ import type { ZephyrChipDescriptor } from '../types.js';
2
+ export declare const RP2350A_SOC: ZephyrChipDescriptor;
@@ -0,0 +1,145 @@
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
+ };
@@ -0,0 +1,2 @@
1
+ import type { ZephyrChipDescriptor } from '../types.js';
2
+ export declare const SAMD21G18A_SOC: ZephyrChipDescriptor;
@@ -0,0 +1,143 @@
1
+ // Hand-maintained descriptor table — mechanically migrated from the
2
+ // board-nano-33-iot + mcu-samd21 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 SAMD21G18A_SOC = {
7
+ "id": "arduino_nano_33_iot/samd21g18a",
8
+ "soc": "samd21g18a",
9
+ "gpioController": "porta",
10
+ "gpioControllers": [
11
+ {
12
+ "nodelabel": "porta",
13
+ "minPin": 0,
14
+ "maxPin": 31
15
+ },
16
+ {
17
+ "nodelabel": "portb",
18
+ "minPin": 32,
19
+ "maxPin": 55
20
+ }
21
+ ],
22
+ "gpio": {
23
+ "dtSpecs": [
24
+ {
25
+ "pin": 17,
26
+ "dtSpec": "led0"
27
+ }
28
+ ]
29
+ },
30
+ "i2c": {
31
+ "controllers": [
32
+ {
33
+ "nodeLabel": "sercom4"
34
+ }
35
+ ]
36
+ },
37
+ "spi": {
38
+ "controllers": [
39
+ {
40
+ "nodeLabel": "sercom1"
41
+ }
42
+ ]
43
+ },
44
+ "uart": {
45
+ "controllers": [
46
+ {
47
+ "nodeLabel": "sercom5"
48
+ }
49
+ ]
50
+ },
51
+ "pwm": {
52
+ "specs": [
53
+ {
54
+ "pin": 17,
55
+ "dtSpec": "pwm-led0"
56
+ }
57
+ ],
58
+ "maxFrequencyHz": 46875,
59
+ "resolutionBits": 16
60
+ },
61
+ "adc": {
62
+ "nodeLabel": "adc",
63
+ "resolution": 12,
64
+ "vrefMv": 1650,
65
+ "channels": [
66
+ {
67
+ "pin": 2,
68
+ "channel": 0
69
+ },
70
+ {
71
+ "pin": 40,
72
+ "channel": 2
73
+ },
74
+ {
75
+ "pin": 41,
76
+ "channel": 3
77
+ },
78
+ {
79
+ "pin": 34,
80
+ "channel": 10
81
+ },
82
+ {
83
+ "pin": 9,
84
+ "channel": 17
85
+ },
86
+ {
87
+ "pin": 10,
88
+ "channel": 18
89
+ },
90
+ {
91
+ "pin": 11,
92
+ "channel": 19
93
+ }
94
+ ],
95
+ "gain": "ADC_GAIN_1",
96
+ "reference": "ADC_REF_VDD_1_2"
97
+ },
98
+ "usb": {
99
+ "controller": "zephyr_udc0",
100
+ "cdcInstances": 1,
101
+ "vid": "0x2FE3",
102
+ "pid": "0x0003",
103
+ "touchReset": {
104
+ "flagAddress": 536903676,
105
+ "magic": 125010229,
106
+ "bootloaderVid": "0x2341",
107
+ "bootloaderPid": "0x0057"
108
+ }
109
+ },
110
+ "consoleDescription": "sercom5 on PB22 (TX, D1) / PB23 (RX, D0) at 115200",
111
+ "probeMethods": [
112
+ {
113
+ "id": "bossac",
114
+ "runner": "bossac",
115
+ "description": "Built-in USB bootloader: double-tap reset, flash over the USB port (no debug)",
116
+ "debug": false
117
+ },
118
+ {
119
+ "id": "openocd",
120
+ "runner": "openocd",
121
+ "description": "Any CMSIS-DAP-class SWD probe on the underside SWD pads — also debugs",
122
+ "debug": true,
123
+ "debugInterface": "swd",
124
+ "debugCfg": [
125
+ "reset_config none"
126
+ ],
127
+ "debugCfgSource": [
128
+ "interface/cmsis-dap.cfg",
129
+ "target/at91samd.cfg"
130
+ ]
131
+ },
132
+ {
133
+ "id": "jlink",
134
+ "runner": "jlink",
135
+ "description": "J-Link probe (SWD) on the underside SWD pads — also debugs",
136
+ "debug": true,
137
+ "debugInterface": "swd",
138
+ "debugDevice": "ATSAMD21G18"
139
+ }
140
+ ],
141
+ "tier": "validated",
142
+ "pinNaming": "samd-port"
143
+ };
@@ -0,0 +1,2 @@
1
+ import type { ZephyrChipDescriptor } from '../types.js';
2
+ export declare const STM32F411XE_SOC: ZephyrChipDescriptor;