auto-sync
This commit is contained in:
parent
4ac178e4bf
commit
e54abe82b1
|
@ -69,6 +69,7 @@ typedef struct {
|
|||
unsigned int isCltError : 1; // bit 1
|
||||
unsigned int isMapError : 1; // bit 2
|
||||
unsigned int isIatError : 1; // bit 3
|
||||
unsigned int isAcSwitchEngaged : 1; // bit 4
|
||||
int tsConfigVersion;
|
||||
egt_values_s egtValues;
|
||||
int unused3[3];
|
||||
|
|
|
@ -37,6 +37,8 @@ case GPIO_7:
|
|||
return "GPIO_7";
|
||||
case FAN_RELAY:
|
||||
return "FAN_RELAY";
|
||||
case AC_RElAY:
|
||||
return "AC_RElAY";
|
||||
case INJECTOR_8_OUTPUT:
|
||||
return "INJECTOR_8_OUTPUT";
|
||||
case GPIO_6:
|
||||
|
|
|
@ -297,6 +297,9 @@ void setDefaultConfiguration(engine_configuration_s *engineConfiguration, board_
|
|||
// engineConfiguration->idleMode = IM_AUTO;
|
||||
engineConfiguration->idleMode = IM_MANUAL;
|
||||
|
||||
boardConfiguration->acRelayPin = GPIO_UNASSIGNED;
|
||||
boardConfiguration->acRelayPinMode = OM_DEFAULT;
|
||||
|
||||
#if EFI_PROD_CODE
|
||||
engineConfiguration->digitalChartSize = 300;
|
||||
#else
|
||||
|
|
|
@ -144,6 +144,9 @@ typedef struct {
|
|||
brain_pin_e electronicThrottlePin1;
|
||||
pin_output_mode_e electronicThrottlePin1Mode;
|
||||
|
||||
/**
|
||||
* Idle switch input signal
|
||||
*/
|
||||
brain_pin_e idleSwitchPin;
|
||||
pin_input_mode_e idleSwitchPinMode;
|
||||
|
||||
|
@ -233,7 +236,11 @@ typedef struct {
|
|||
*/
|
||||
float idleSolenoidPwm;
|
||||
|
||||
int unusedbs[51];
|
||||
brain_pin_e acRelayPin;
|
||||
pin_output_mode_e acRelayPinMode;
|
||||
|
||||
|
||||
int unusedbs[39];
|
||||
|
||||
le_formula_t le_formulas[LE_COMMAND_COUNT];
|
||||
|
||||
|
@ -497,7 +504,12 @@ typedef struct {
|
|||
|
||||
int targetIdleRpm;
|
||||
|
||||
int unused3[92];
|
||||
/**
|
||||
* A/C button input handled as analog input
|
||||
*/
|
||||
adc_channel_e acSwitchAdc;
|
||||
|
||||
int unused3[91];
|
||||
|
||||
} engine_configuration_s;
|
||||
|
||||
|
|
|
@ -124,6 +124,7 @@ typedef enum {
|
|||
FUEL_PUMP_RELAY,
|
||||
FAN_RELAY,
|
||||
O2_HEATER,
|
||||
AC_RElAY,
|
||||
|
||||
SPI_CS_1,
|
||||
SPI_CS_2,
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include "engine_configuration.h"
|
||||
#include "engine.h"
|
||||
|
||||
#define FLASH_DATA_VERSION 5472
|
||||
#define FLASH_DATA_VERSION 5484
|
||||
|
||||
void readFromFlash(void);
|
||||
void initFlash(Engine *engine);
|
||||
|
|
|
@ -332,6 +332,10 @@ static void printTemperatureInfo(void) {
|
|||
scheduleMsg(&logger, "fan=%s @ %s", boolToString(getOutputPinValue(FAN_RELAY)),
|
||||
hwPortname(boardConfiguration->fanPin));
|
||||
|
||||
scheduleMsg(&logger, "A/C relay=%s @ %s", boolToString(getOutputPinValue(AC_RElAY)),
|
||||
hwPortname(boardConfiguration->acRelayPin));
|
||||
|
||||
|
||||
#if EFI_ANALOG_INPUTS
|
||||
scheduleMsg(&logger, "base cranking fuel %f", engineConfiguration->crankingSettings.baseCrankingFuel);
|
||||
#endif
|
||||
|
|
|
@ -156,6 +156,7 @@ void initOutputPins(void) {
|
|||
outputPinRegisterExt2("fan relay", FAN_RELAY, boardConfiguration->fanPin, &DEFAULT_OUTPUT);
|
||||
outputPinRegisterExt2("o2 heater", O2_HEATER, boardConfiguration->o2heaterPin, &DEFAULT_OUTPUT);
|
||||
outputPinRegisterExt2("trg_err", LED_TRIGGER_ERROR, boardConfiguration->triggerErrorPin, &boardConfiguration->triggerErrorPinMode);
|
||||
outputPinRegisterExt2("A/C relay", AC_RElAY, boardConfiguration->acRelayPin, &boardConfiguration->acRelayPinMode);
|
||||
|
||||
initialLedsBlink();
|
||||
|
||||
|
|
Loading…
Reference in New Issue