EPIC: we need to test fresh boards #5511

This commit is contained in:
rusefi 2023-08-29 21:23:30 -04:00
parent 18d95b63f2
commit bdd94e7b5b
5 changed files with 13 additions and 0 deletions

View File

@ -224,6 +224,10 @@ static Gpio OUTPUTS[] = {
Gpio::H144_LS_2,
Gpio::H144_LS_3,
Gpio::H144_LS_4,
// vvt1
Gpio::H144_IGN_7,
// vvt2
Gpio::H144_IGN_8,
};
int getBoardMetaOutputsCount() {

View File

@ -201,6 +201,10 @@ void boardPrepareForStop() {
palEnableLineEvent(PAL_LINE(GPIOD, 0), PAL_EVENT_MODE_RISING_EDGE);
}
int getBoardMetaLowSideOutputsCount() {
return 16;
}
int getBoardMetaOutputsCount() {
return efi::size(PROTEUS_OUTPUTS);
}

View File

@ -1060,4 +1060,6 @@ __attribute__((weak)) void setBoardConfigOverrides() { }
__attribute__((weak)) void onBoardStandBy() { }
__attribute__((weak)) int getBoardMetaOutputsCount() { return 0; }
// default implementation: treat all outputs as low side
__attribute__((weak)) int getBoardMetaLowSideOutputsCount() { return getBoardMetaOutputsCount(); }
__attribute__((weak)) Gpio* getBoardMetaOutputs() { return nullptr; }

View File

@ -97,5 +97,7 @@ extern bool isActiveConfigurationVoid;
#define isPinOrModeChanged(pin, mode) (isConfigurationChanged(pin) || isConfigurationChanged(mode))
// total number of outputs: low side + high side
int getBoardMetaOutputsCount();
int getBoardMetaLowSideOutputsCount();
Gpio* getBoardMetaOutputs();

View File

@ -98,6 +98,7 @@ static void sendOutBoardMeta() {
msg[0] = CAN_BENCH_HEADER;
msg[1] = 0;
msg[2] = getBoardMetaOutputsCount();
msg[3] = getBoardMetaLowSideOutputsCount();
#endif // EFI_PROD_CODE
}