Nb proteus config (#2104)
* Added proteus config and started working on it * Update engine config * corrected board config * Completed pin attribution in proteus hardcoded nb2 miata * Removed problematic call * Corrected the blocking value * Removed blocking equal sign * Reworked indentation
This commit is contained in:
parent
4d2d83c609
commit
5f0fd4ed0a
|
@ -751,6 +751,61 @@ void setMiataNB2_Proteus_TCU(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|||
}
|
||||
|
||||
void setMiataNB2_ProteusEngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
setMazdaMiataEngineNB2Defaults(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
|
||||
engineConfiguration->triggerInputPins[0] = GPIOC_6;
|
||||
engineConfiguration->triggerInputPins[1] = GPIO_UNASSIGNED;
|
||||
engineConfiguration->camInputs[0] = GPIOE_11;
|
||||
|
||||
engineConfiguration->alternatorControlPin = GPIOA_8;
|
||||
|
||||
engineConfiguration->auxPidPins[0] = GPIOB_5; // VVT solenoid control
|
||||
|
||||
// high-side driver with +12v VP jumper
|
||||
engineConfiguration->tachOutputPin = GPIOA_9; // tachometer
|
||||
engineConfiguration->tachPulsePerRev = 2;
|
||||
|
||||
engineConfiguration->ignitionMode = IM_WASTED_SPARK;
|
||||
|
||||
engineConfiguration->ignitionPins[0] = GPIOD_4;
|
||||
engineConfiguration->ignitionPins[1] = GPIO_UNASSIGNED;
|
||||
engineConfiguration->ignitionPins[2] = GPIOC_9;
|
||||
engineConfiguration->ignitionPins[3] = GPIO_UNASSIGNED;
|
||||
|
||||
engineConfiguration->crankingInjectionMode = IM_SIMULTANEOUS;
|
||||
engineConfiguration->injectionMode = IM_SEQUENTIAL;
|
||||
|
||||
|
||||
engineConfiguration->injectionPins[0] = GPIOD_7; // BLU
|
||||
engineConfiguration->injectionPins[1] = GPIOG_9; // BLK
|
||||
engineConfiguration->injectionPins[2] = GPIOG_10; // GRN
|
||||
engineConfiguration->injectionPins[3] = GPIOG_11; // WHT
|
||||
engineConfiguration->injectionPinMode = OM_DEFAULT;
|
||||
|
||||
|
||||
engineConfiguration->malfunctionIndicatorPin = GPIOB_6;
|
||||
|
||||
engineConfiguration->map.sensor.hwChannel = EFI_ADC_10;
|
||||
|
||||
engineConfiguration->afr.hwChannel = EFI_ADC_11;
|
||||
|
||||
engineConfiguration->mafAdcChannel = EFI_ADC_13; // PA6 W46 <> W46
|
||||
|
||||
engineConfiguration->tps1_1AdcChannel = EFI_ADC_12;
|
||||
|
||||
engineConfiguration->isFasterEngineSpinUpEnabled = true;
|
||||
|
||||
engineConfiguration->clt.adcChannel = EFI_ADC_14;
|
||||
engineConfiguration->iat.adcChannel = EFI_ADC_8;
|
||||
|
||||
engineConfiguration->fuelPumpPin = GPIOG_13;
|
||||
|
||||
engineConfiguration->idle.solenoidPin = GPIOG_1;
|
||||
engineConfiguration->idle.solenoidFrequency = 300;
|
||||
|
||||
|
||||
engineConfiguration->fanPin = GPIOB_7;
|
||||
|
||||
|
||||
}
|
||||
#endif // HW_PROTEUS
|
||||
|
|
Loading…
Reference in New Issue