29A/27A need pullup control

only:8chan
This commit is contained in:
rusEFI LLC 2024-09-15 18:33:40 -04:00
parent 27ac7be6e5
commit 5b890b16a7
2 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,7 @@ static OutputPin alphaHall3PullDown;
static OutputPin alphaHall4PullDown;
static OutputPin alphaHall5PullDown;
static OutputPin alphaFlexPullDown;
static OutputPin tempPullUp;
static void setInjectorPins() {
engineConfiguration->injectionPins[0] = Gpio::MM176_INJ1;
@ -84,6 +85,7 @@ void boardInitHardware() {
alphaHall4PullDown.initPin("PullDown-Hall4", Gpio::MM176_GP23);
alphaHall5PullDown.initPin("PullDown-Hall5", Gpio::MM176_GP24);
alphaFlexPullDown.initPin("PullDown-Flex", Gpio::MM176_GP25);
tempPullUp.initPin("Temp PullUp", Gpio::MM176_OUT_IO12);
boardOnConfigurationChange(nullptr);
}
@ -95,6 +97,7 @@ void boardOnConfigurationChange(engine_configuration_s * /*previousConfiguration
alphaHall4PullDown.setValue(config->boardUseH4PullDown);
alphaHall5PullDown.setValue(config->boardUseH5PullDown);
alphaFlexPullDown.setValue(config->boardUseFlexPullDown);
tempPullUp.setValue(config->boardUseTempPullUp);
}
void setBoardConfigOverrides() {

View File

@ -1,4 +1,5 @@
dialog = fancyHardwareDialog, "Board Control"
field = "IAT/CLT Temperature Inputs Pull-Up", boardUseTempPullUp
field = "Hall 1 Pull-Down", boardUseH1PullDown
field = "Hall 2 Pull-Down", boardUseH2PullDown
field = "Hall 3 Pull-Down", boardUseH3PullDown