parent
27ac7be6e5
commit
5b890b16a7
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue