Skip to content

Commit 4fab431

Browse files
authored
Add new tags & update targets (#159)
1 parent 119f0a0 commit 4fab431

File tree

1 file changed

+33
-4
lines changed

1 file changed

+33
-4
lines changed

src/targets/_data.js

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ export const loadTargets = async (ref) => {
8181
const variants = targetDescription.variants;
8282
const jep = targetDescription.manufacturer
8383
? getJep106Manufacturer(
84-
targetDescription.manufacturer.cc,
85-
targetDescription.manufacturer.id
86-
)
84+
targetDescription.manufacturer.cc,
85+
targetDescription.manufacturer.id
86+
)
8787
: undefined;
8888

8989
for (const variant of variants) {
@@ -123,6 +123,20 @@ async function openTarget(target) {
123123
}
124124

125125
function schema() {
126+
const apv1 = new Type("!v1", {
127+
construct(data) {
128+
return data !== null ? { v1: data } : {};
129+
},
130+
kind: "scalar",
131+
});
132+
133+
const apv2 = new Type("!v2", {
134+
construct(data) {
135+
return data !== null ? { v2: data } : {};
136+
},
137+
kind: "scalar",
138+
});
139+
126140
const arm = new Type("!Arm", {
127141
construct(data) {
128142
return data !== null ? { Arm: data } : {};
@@ -208,7 +222,22 @@ function schema() {
208222
});
209223

210224
const extended = new Schema({
211-
explicit: [arm, riscv, xtensa, ram, nvm, flash, generic, espressif, atsam_dsu, nordic_configid, nordic_ficr_info, infineon_scu],
225+
explicit: [
226+
apv1,
227+
apv2,
228+
arm,
229+
riscv,
230+
xtensa,
231+
ram,
232+
nvm,
233+
flash,
234+
generic,
235+
espressif,
236+
atsam_dsu,
237+
nordic_configid,
238+
nordic_ficr_info,
239+
infineon_scu,
240+
],
212241
include: [def],
213242
});
214243

0 commit comments

Comments
 (0)