refactoring?

This commit is contained in:
rusefillc 2022-01-14 22:45:49 -05:00
parent 7850e6e57e
commit 6ca6c53786
10 changed files with 2 additions and 28 deletions

View File

@ -1,8 +1,5 @@
#include "pch.h"
void setPinConfigurationOverrides() {
}
void setSerialConfigurationOverrides() {
}

View File

@ -123,9 +123,6 @@ void setBoardDefaultConfiguration() {
//engineConfiguration->isFastAdcEnabled = false;
}
void setPinConfigurationOverrides() {
}
void setSerialConfigurationOverrides() {
#if 0
engineConfiguration->useSerialPort = true;

View File

@ -100,9 +100,6 @@ void setBoardConfigOverrides() {
engineConfiguration->iat.config.bias_resistor = 4700;
}
void setPinConfigurationOverrides() {
}
void setSerialConfigurationOverrides() {
engineConfiguration->useSerialPort = false;
engineConfiguration->binarySerialTxPin = GPIO_UNASSIGNED;

View File

@ -102,9 +102,6 @@ void setBoardConfigOverrides() {
engineConfiguration->canRxPin = H176_CAN_RX;
}
void setPinConfigurationOverrides() {
}
void setSerialConfigurationOverrides() {
engineConfiguration->useSerialPort = false;
engineConfiguration->binarySerialTxPin = GPIO_UNASSIGNED;

View File

@ -103,9 +103,6 @@ void setBoardConfigOverrides() {
engineConfiguration->canRxPin = GPIOD_0;
}
void setPinConfigurationOverrides() {
}
void setSerialConfigurationOverrides() {
engineConfiguration->useSerialPort = false;
engineConfiguration->binarySerialTxPin = GPIO_UNASSIGNED;

View File

@ -14,9 +14,6 @@
#undef SERIAL_SPEED
#define SERIAL_SPEED 115200
void setPinConfigurationOverrides() {
}
void setSerialConfigurationOverrides() {
engineConfiguration->useSerialPort = true;
engineConfiguration->binarySerialTxPin = GPIOD_8;

View File

@ -160,9 +160,6 @@ void setBoardConfigOverrides() {
engineConfiguration->lps25BaroSensorSda = GPIOB_11;
}
void setPinConfigurationOverrides() {
}
void setSerialConfigurationOverrides() {
engineConfiguration->useSerialPort = false;
engineConfiguration->binarySerialTxPin = GPIO_UNASSIGNED;

View File

@ -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;

View File

@ -12,10 +12,6 @@
#include "smart_gpio.h"
#include "drivers/gpio/mc33810.h"
void setPinConfigurationOverrides() {
}
void setSerialConfigurationOverrides() {
engineConfiguration->useSerialPort = false;
engineConfiguration->binarySerialTxPin = GPIOE_1;

View File

@ -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();