refactoring?
This commit is contained in:
parent
7850e6e57e
commit
6ca6c53786
|
@ -1,8 +1,5 @@
|
|||
#include "pch.h"
|
||||
|
||||
void setPinConfigurationOverrides() {
|
||||
}
|
||||
|
||||
void setSerialConfigurationOverrides() {
|
||||
}
|
||||
|
||||
|
|
|
@ -123,9 +123,6 @@ void setBoardDefaultConfiguration() {
|
|||
//engineConfiguration->isFastAdcEnabled = false;
|
||||
}
|
||||
|
||||
void setPinConfigurationOverrides() {
|
||||
}
|
||||
|
||||
void setSerialConfigurationOverrides() {
|
||||
#if 0
|
||||
engineConfiguration->useSerialPort = true;
|
||||
|
|
|
@ -100,9 +100,6 @@ void setBoardConfigOverrides() {
|
|||
engineConfiguration->iat.config.bias_resistor = 4700;
|
||||
}
|
||||
|
||||
void setPinConfigurationOverrides() {
|
||||
}
|
||||
|
||||
void setSerialConfigurationOverrides() {
|
||||
engineConfiguration->useSerialPort = false;
|
||||
engineConfiguration->binarySerialTxPin = GPIO_UNASSIGNED;
|
||||
|
|
|
@ -102,9 +102,6 @@ void setBoardConfigOverrides() {
|
|||
engineConfiguration->canRxPin = H176_CAN_RX;
|
||||
}
|
||||
|
||||
void setPinConfigurationOverrides() {
|
||||
}
|
||||
|
||||
void setSerialConfigurationOverrides() {
|
||||
engineConfiguration->useSerialPort = false;
|
||||
engineConfiguration->binarySerialTxPin = GPIO_UNASSIGNED;
|
||||
|
|
|
@ -103,9 +103,6 @@ void setBoardConfigOverrides() {
|
|||
engineConfiguration->canRxPin = GPIOD_0;
|
||||
}
|
||||
|
||||
void setPinConfigurationOverrides() {
|
||||
}
|
||||
|
||||
void setSerialConfigurationOverrides() {
|
||||
engineConfiguration->useSerialPort = false;
|
||||
engineConfiguration->binarySerialTxPin = GPIO_UNASSIGNED;
|
||||
|
|
|
@ -14,9 +14,6 @@
|
|||
#undef SERIAL_SPEED
|
||||
#define SERIAL_SPEED 115200
|
||||
|
||||
void setPinConfigurationOverrides() {
|
||||
}
|
||||
|
||||
void setSerialConfigurationOverrides() {
|
||||
engineConfiguration->useSerialPort = true;
|
||||
engineConfiguration->binarySerialTxPin = GPIOD_8;
|
||||
|
|
|
@ -160,9 +160,6 @@ void setBoardConfigOverrides() {
|
|||
engineConfiguration->lps25BaroSensorSda = GPIOB_11;
|
||||
}
|
||||
|
||||
void setPinConfigurationOverrides() {
|
||||
}
|
||||
|
||||
void setSerialConfigurationOverrides() {
|
||||
engineConfiguration->useSerialPort = false;
|
||||
engineConfiguration->binarySerialTxPin = GPIO_UNASSIGNED;
|
||||
|
|
|
@ -108,9 +108,6 @@ static void setupDefaultSensorInputs() {
|
|||
engineConfiguration->iat.config.bias_resistor = 2700;
|
||||
}
|
||||
|
||||
void setPinConfigurationOverrides() {
|
||||
}
|
||||
|
||||
// Future: configure USART3 for LIN bus and UART4 for console
|
||||
void setSerialConfigurationOverrides() {
|
||||
engineConfiguration->useSerialPort = false;
|
||||
|
|
|
@ -12,10 +12,6 @@
|
|||
#include "smart_gpio.h"
|
||||
#include "drivers/gpio/mc33810.h"
|
||||
|
||||
void setPinConfigurationOverrides() {
|
||||
|
||||
}
|
||||
|
||||
void setSerialConfigurationOverrides() {
|
||||
engineConfiguration->useSerialPort = false;
|
||||
engineConfiguration->binarySerialTxPin = GPIOE_1;
|
||||
|
|
|
@ -472,6 +472,8 @@ void startHardware() {
|
|||
// Weak link a stub so that every board doesn't have to implement this function
|
||||
__attribute__((weak)) void boardInitHardware() { }
|
||||
|
||||
__attribute__((weak)) void setPinConfigurationOverrides() { }
|
||||
|
||||
void initHardware() {
|
||||
#if HAL_USE_PAL && EFI_PROD_CODE
|
||||
efiExtiInit();
|
||||
|
|
Loading…
Reference in New Issue