CAN side of automated testing #4630

This commit is contained in:
rusefillc 2022-09-30 00:37:56 -04:00
parent a4173613c3
commit b60ec5caad
2 changed files with 29 additions and 2 deletions

View File

@ -166,3 +166,16 @@ void boardPrepareForStop() {
// Wake on the CAN RX pin
palEnableLineEvent(PAL_LINE(GPIOD, 0), PAL_EVENT_MODE_RISING_EDGE);
}
static Gpio OUTPUTS[] = {
H144_LS_1,
H144_LS_2,
};
int getBoardMetaOutputsCount() {
return efi::size(OUTPUTS);
}
Gpio* getBoardMetaOutputs() {
return OUTPUTS;
}

View File

@ -167,8 +167,7 @@ void setBoardConfigOverrides() {
engineConfiguration->clt.config.bias_resistor = 4700;
engineConfiguration->iat.config.bias_resistor = 4700;
engineConfiguration->canTxPin = Gpio::D1;
engineConfiguration->canRxPin = Gpio::D0;
setHellenCan();
}
/**
@ -218,3 +217,18 @@ void boardPrepareForStop() {
// Wake on the CAN RX pin
palEnableLineEvent(PAL_LINE(GPIOD, 0), PAL_EVENT_MODE_RISING_EDGE);
}
static Gpio OUTPUTS[] = {
H144_LS_1,
H144_LS_2,
H144_LS_3,
H144_LS_4,
};
int getBoardMetaOutputsCount() {
return efi::size(OUTPUTS);
}
Gpio* getBoardMetaOutputs() {
return OUTPUTS;
}