export board-specific macro for stm32 pins based on board yaml #3298

This commit is contained in:
rusefillc 2021-10-03 00:27:55 -04:00
parent 618d13e673
commit 6808c3c52f
2 changed files with 5 additions and 1 deletions

View File

@ -524,6 +524,7 @@ void proteusBoardTest(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
CONFIG(fanPin) = GPIO_UNASSIGNED;
CONFIG(fuelPumpPin) = GPIO_UNASSIGNED;
#if EFI_PROD_CODE
engineConfiguration->injectionPins[0] = PROTEUS_LS_1;
engineConfiguration->injectionPins[1] = PROTEUS_LS_2;
engineConfiguration->injectionPins[2] = PROTEUS_LS_3;
@ -564,6 +565,7 @@ void proteusBoardTest(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
engineConfiguration->fsioOutputPins[6] = GPIOD_14;// "Highside 4" # pin 14/black35
engineConfiguration->fsioOutputPins[7] = GPIOG_4;// "Ign 10"
#endif // EFI_PROD_CODE
setProteusHitachiEtbDefaults(PASS_CONFIG_PARAMETER_SIGNATURE);
}

View File

@ -55,7 +55,7 @@
#include "hip9011_logic.h"
#if HW_PROTEUS
#if HW_PROTEUS & EFI_PROD_CODE
#include "proteus_meta.h"
#endif
@ -754,6 +754,7 @@ void setMiataNB2_ProteusEngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE)
engineConfiguration->ignitionMode = IM_WASTED_SPARK;
#if EFI_PROD_CODE
engineConfiguration->ignitionPins[0] = PROTEUS_HS_1;
engineConfiguration->ignitionPins[1] = GPIO_UNASSIGNED;
engineConfiguration->ignitionPins[2] = PROTEUS_HS_3;
@ -773,6 +774,7 @@ void setMiataNB2_ProteusEngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE)
CONFIG(enableSoftwareKnock) = true;
engineConfiguration->malfunctionIndicatorPin = PROTEUS_LS_10;
#endif // EFI_PROD_CODE
engineConfiguration->map.sensor.hwChannel = EFI_ADC_10;