only: HW QC progress
This commit is contained in:
parent
bb07e66291
commit
1702b78c04
|
@ -299,6 +299,8 @@ public class PinoutLogic {
|
|||
getTsNameByIdFile.append("\treturn nullptr;\n}\n");
|
||||
}
|
||||
|
||||
StringBuilder pinNamesForSimulator = new StringBuilder();
|
||||
|
||||
try (Writer outputs = boardInputs.getOutputsWriter()) {
|
||||
outputs.append(header);
|
||||
outputs.write("#pragma once\n\n");
|
||||
|
@ -308,12 +310,15 @@ public class PinoutLogic {
|
|||
for (String output : lowSideOutputs) {
|
||||
String tsName = tsNameByMeta.get(output);
|
||||
outputs.write("\tGpio::" + output + ", // " + tsName + "\n");
|
||||
pinNamesForSimulator.append("// " + quote(tsName) + ",\n");
|
||||
}
|
||||
for (String output : highSideOutputs) {
|
||||
String tsName = tsNameByMeta.get(output);
|
||||
outputs.write("\tGpio::" + output + ", // " + tsName + "\n");
|
||||
pinNamesForSimulator.append("// " + quote(tsName) + ",\n");
|
||||
}
|
||||
|
||||
outputs.write(pinNamesForSimulator.toString());
|
||||
outputs.write("}\n");
|
||||
|
||||
}
|
||||
|
|
|
@ -109,6 +109,8 @@ public class PinoutLogicIntegratedTest {
|
|||
"Gpio GENERATED_OUTPUTS = {\n" +
|
||||
"\tGpio::H144_LS_2, // 2 - Digital 1\n" +
|
||||
"\tGpio::A9, // 3 - Digital 1\n" +
|
||||
"// \"2 - Digital 1\",\n" +
|
||||
"// \"3 - Digital 1\",\n" +
|
||||
"}\n");
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue