2019-03-12 14:41:30 -07:00
|
|
|
/**
|
|
|
|
* @file boards/ME7_PNP/board_configuration.cpp
|
|
|
|
*
|
|
|
|
* @brief In this file we can override engine_configuration.cpp.
|
|
|
|
*
|
2020-01-07 21:02:40 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2019-03-12 14:41:30 -07:00
|
|
|
*/
|
|
|
|
#include "global.h"
|
|
|
|
#include "engine.h"
|
|
|
|
#include "engine_math.h"
|
|
|
|
#include "allsensors.h"
|
|
|
|
#include "fsio_impl.h"
|
|
|
|
#include "engine_configuration.h"
|
2019-05-04 19:11:05 -07:00
|
|
|
#include "smart_gpio.h"
|
2019-03-12 14:41:30 -07:00
|
|
|
|
2019-05-04 19:11:05 -07:00
|
|
|
EXTERN_ENGINE
|
|
|
|
;
|
2019-03-12 14:41:30 -07:00
|
|
|
|
2019-05-04 19:11:05 -07:00
|
|
|
static void vag_18_Turbo(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
2019-03-12 14:41:30 -07:00
|
|
|
}
|
|
|
|
void setSerialConfigurationOverrides(void) {
|
2019-12-11 14:48:55 -08:00
|
|
|
engineConfiguration->useSerialPort = true;
|
2019-03-12 14:41:30 -07:00
|
|
|
|
2019-05-04 19:11:05 -07:00
|
|
|
//UART
|
|
|
|
|
|
|
|
engineConfiguration->binarySerialTxPin = GPIOB_10;
|
|
|
|
engineConfiguration->binarySerialRxPin = GPIOB_11;
|
|
|
|
engineConfiguration->consoleSerialTxPin = GPIOB_10;
|
|
|
|
engineConfiguration->consoleSerialRxPin = GPIOB_11;
|
|
|
|
|
2019-03-12 14:41:30 -07:00
|
|
|
}
|
|
|
|
|
2019-05-04 19:11:05 -07:00
|
|
|
void setPinConfigurationOverrides(void) {
|
|
|
|
|
|
|
|
//NOT USED
|
2019-03-12 14:41:30 -07:00
|
|
|
|
|
|
|
engineConfiguration->baroSensor.hwChannel = EFI_ADC_NONE;
|
2019-05-04 19:11:05 -07:00
|
|
|
engineConfiguration->afr.hwChannel = EFI_ADC_NONE;
|
2019-12-11 14:48:55 -08:00
|
|
|
engineConfiguration->ignitionPins[8] = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->ignitionPins[9] = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->mainRelayPin = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->idle.solenoidPin = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->fanPin = GPIO_UNASSIGNED;
|
2019-05-04 19:11:05 -07:00
|
|
|
|
|
|
|
}
|
|
|
|
void setBoardConfigurationOverrides(void) {
|
2019-03-12 14:41:30 -07:00
|
|
|
|
2019-05-04 19:11:05 -07:00
|
|
|
// NOT USED
|
2019-03-12 14:41:30 -07:00
|
|
|
engineConfiguration->dizzySparkOutputPin = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->externalKnockSenseAdc = EFI_ADC_NONE;
|
|
|
|
engineConfiguration->displayMode = DM_NONE;
|
2019-12-11 14:48:55 -08:00
|
|
|
engineConfiguration->HD44780_rs = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->HD44780_e = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->HD44780_db4 = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->HD44780_db5 = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->HD44780_db6 = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->HD44780_db7 = GPIO_UNASSIGNED;
|
2019-05-04 19:11:05 -07:00
|
|
|
for (int i = 0; i < DIGIPOT_COUNT; i++) {
|
2019-12-11 14:48:55 -08:00
|
|
|
engineConfiguration->digitalPotentiometerChipSelect[i] = GPIO_UNASSIGNED;
|
2019-03-12 14:41:30 -07:00
|
|
|
}
|
2019-12-11 14:48:55 -08:00
|
|
|
engineConfiguration->triggerSimulatorPins[1] = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->triggerSimulatorPins[2] = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->triggerSimulatorPinModes[1] = OM_DEFAULT;
|
|
|
|
engineConfiguration->triggerSimulatorPinModes[2] = OM_DEFAULT;
|
|
|
|
engineConfiguration->digitalPotentiometerSpiDevice = SPI_NONE;
|
|
|
|
engineConfiguration->max31855spiDevice = SPI_NONE;
|
2019-05-04 19:11:05 -07:00
|
|
|
engineConfiguration->warningLedPin = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->runningLedPin = GPIO_UNASSIGNED;
|
2019-12-11 14:48:55 -08:00
|
|
|
engineConfiguration->useStepperIdle = false;
|
|
|
|
engineConfiguration->idle.stepperDirectionPin = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->idle.stepperStepPin = GPIO_UNASSIGNED;
|
2019-05-04 19:11:05 -07:00
|
|
|
engineConfiguration->stepperEnablePin = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->stepperEnablePinMode = OM_DEFAULT;
|
2019-12-11 14:48:55 -08:00
|
|
|
engineConfiguration->injectionPins[8] = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->injectionPins[9] = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->injectionPins[10] = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->injectionPins[11] = GPIO_UNASSIGNED;
|
|
|
|
engineConfiguration->isHip9011Enabled = false;
|
2019-03-12 14:41:30 -07:00
|
|
|
|
2019-05-04 19:11:05 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
void setSdCardConfigurationOverrides(void) {
|
2019-03-12 14:41:30 -07:00
|
|
|
}
|
|
|
|
|
2019-05-04 21:43:44 -07:00
|
|
|
void setAdcChannelOverrides(void) {
|
|
|
|
}
|
|
|
|
|