rusefillc 2023-03-15 14:46:52 -04:00
parent f583ad6bdd
commit 961a0f3320
4 changed files with 8 additions and 0 deletions

View File

@ -100,6 +100,7 @@ void boardOnConfigurationChange(engine_configuration_s * /*previousConfiguration
void setBoardConfigOverrides() {
setHellen144LedPins();
setupVbatt();
setHellenMMbaro();
// rev.D uses SPI1 pins for CAN2, but rev.E and later uses SPI1 for SD-card
if (engine->engineState.hellenBoardId != BOARD_ID_2chan_d) {

View File

@ -143,6 +143,7 @@ void boardOnConfigurationChange(engine_configuration_s * /*previousConfiguration
void setBoardConfigOverrides() {
setHellen144LedPins();
setupVbatt();
setHellenMMbaro();
setHellenSdCardSpi2();

View File

@ -62,6 +62,7 @@ void setBoardConfigOverrides() {
setHellen144LedPins();
setHellenMegaEnPin();
setupVbatt();
setHellenMMbaro();
setHellenSdCardSpi1();
configureHellenMegaAccCS2Pin();

View File

@ -252,3 +252,8 @@ static void setDefaultHellenAtPullUps(){
engineConfiguration->clt.config.bias_resistor = HELLEN_DEFAULT_AT_PULLUP;
engineConfiguration->iat.config.bias_resistor = HELLEN_DEFAULT_AT_PULLUP;
}
static void setHellenMMbaro() {
engineConfiguration->lps25BaroSensorScl = Gpio::B10;
engineConfiguration->lps25BaroSensorSda = Gpio::B11;
}