From 1702b78c0439e312025ffb83b52f9aafd5d945bd Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 1 Dec 2023 12:40:08 -0500 Subject: [PATCH] only: HW QC progress --- .../src/main/java/com/rusefi/pinout/PinoutLogic.java | 5 +++++ .../java/com/rusefi/pinout/PinoutLogicIntegratedTest.java | 2 ++ 2 files changed, 7 insertions(+) diff --git a/java_tools/configuration_definition/src/main/java/com/rusefi/pinout/PinoutLogic.java b/java_tools/configuration_definition/src/main/java/com/rusefi/pinout/PinoutLogic.java index 94a838947a..b8d7f9ba3f 100644 --- a/java_tools/configuration_definition/src/main/java/com/rusefi/pinout/PinoutLogic.java +++ b/java_tools/configuration_definition/src/main/java/com/rusefi/pinout/PinoutLogic.java @@ -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"); } diff --git a/java_tools/configuration_definition/src/test/java/com/rusefi/pinout/PinoutLogicIntegratedTest.java b/java_tools/configuration_definition/src/test/java/com/rusefi/pinout/PinoutLogicIntegratedTest.java index 58756dc427..1824d90bca 100644 --- a/java_tools/configuration_definition/src/test/java/com/rusefi/pinout/PinoutLogicIntegratedTest.java +++ b/java_tools/configuration_definition/src/test/java/com/rusefi/pinout/PinoutLogicIntegratedTest.java @@ -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"); }