only: HW QC progress

This commit is contained in:
rusefi 2023-12-01 12:40:08 -05:00
parent bb07e66291
commit 1702b78c04
2 changed files with 7 additions and 0 deletions

View File

@ -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");
}

View File

@ -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");
}