only:alphax-8chan
This commit is contained in:
rusefillc 2023-05-12 16:43:05 -04:00
parent b5c5d27f7b
commit d09294fbfa
1 changed files with 10 additions and 10 deletions

View File

@ -13,17 +13,17 @@
#include "defaults.h" #include "defaults.h"
static OutputPin alphaEn; static OutputPin alphaEn;
static OutputPin alphaTachPullUp; //static OutputPin alphaTachPullUp;
static OutputPin alphaTempPullUp; static OutputPin alphaTempPullUp;
static OutputPin alphaCrankPPullUp; static OutputPin alphaCrankPPullUp;
static OutputPin alphaCrankNPullUp; static OutputPin alphaCrankNPullUp;
static OutputPin alpha2stepPullDown; static OutputPin alpha2stepPullDown;
static OutputPin alphaCamPullDown; static OutputPin alphaCamPullDown;
static OutputPin alphaCamVrPullUp; static OutputPin alphaCamVrPullUp;
static OutputPin alphaD2PullDown; //static OutputPin alphaD2PullDown;
static OutputPin alphaD3PullDown; //static OutputPin alphaD3PullDown;
static OutputPin alphaD4PullDown; //static OutputPin alphaD4PullDown;
static OutputPin alphaD5PullDown; //static OutputPin alphaD5PullDown;
static void setInjectorPins() { static void setInjectorPins() {
engineConfiguration->injectionPins[0] = H144_LS_1; engineConfiguration->injectionPins[0] = H144_LS_1;
@ -134,7 +134,7 @@ void boardInitHardware() {
} }
void boardOnConfigurationChange(engine_configuration_s * /*previousConfiguration*/) { void boardOnConfigurationChange(engine_configuration_s * /*previousConfiguration*/) {
alphaTachPullUp.setValue(engineConfiguration->boardUseTachPullUp); // alphaTachPullUp.setValue(engineConfiguration->boardUseTachPullUp);
alphaTempPullUp.setValue(engineConfiguration->boardUseTempPullUp); alphaTempPullUp.setValue(engineConfiguration->boardUseTempPullUp);
alphaCrankPPullUp.setValue(engineConfiguration->boardUseCrankPullUp); alphaCrankPPullUp.setValue(engineConfiguration->boardUseCrankPullUp);
alphaCrankNPullUp.setValue(engineConfiguration->boardUseCrankPullUp); alphaCrankNPullUp.setValue(engineConfiguration->boardUseCrankPullUp);
@ -142,10 +142,10 @@ void boardOnConfigurationChange(engine_configuration_s * /*previousConfiguration
alphaCamPullDown.setValue(engineConfiguration->boardUseCamPullDown); alphaCamPullDown.setValue(engineConfiguration->boardUseCamPullDown);
alphaCamVrPullUp.setValue(engineConfiguration->boardUseCamVrPullUp); alphaCamVrPullUp.setValue(engineConfiguration->boardUseCamVrPullUp);
alphaD2PullDown.setValue(engineConfiguration->boardUseD2PullDown); // alphaD2PullDown.setValue(engineConfiguration->boardUseD2PullDown);
alphaD3PullDown.setValue(engineConfiguration->boardUseD3PullDown); // alphaD3PullDown.setValue(engineConfiguration->boardUseD3PullDown);
alphaD4PullDown.setValue(engineConfiguration->boardUseD4PullDown); // alphaD4PullDown.setValue(engineConfiguration->boardUseD4PullDown);
alphaD5PullDown.setValue(engineConfiguration->boardUseD5PullDown); // alphaD5PullDown.setValue(engineConfiguration->boardUseD5PullDown);
} }
void setBoardConfigOverrides() { void setBoardConfigOverrides() {