refactoring?

This commit is contained in:
rusefillc 2022-01-14 22:45:49 -05:00
parent a54410f297
commit afdca12d86
8 changed files with 2 additions and 22 deletions

View File

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

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

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