Skip to content

Commit

Permalink
crank up sdmmc speed
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Jan 22, 2025
1 parent d9cf4c4 commit 8bf4bae
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions firmware/config/boards/atlas/board_configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ void setBoardDefaultConfiguration() {
}

void preHalInit() {
efiSetPadMode("SDMMC", Gpio::C8, PAL_MODE_ALTERNATE(0xc));
efiSetPadMode("SDMMC", Gpio::C9, PAL_MODE_ALTERNATE(0xc));
efiSetPadMode("SDMMC", Gpio::C10, PAL_MODE_ALTERNATE(0xc));
efiSetPadMode("SDMMC", Gpio::C11, PAL_MODE_ALTERNATE(0xc));
efiSetPadMode("SDMMC", Gpio::C12, PAL_MODE_ALTERNATE(0xc));
efiSetPadMode("SDMMC", Gpio::D2, PAL_MODE_ALTERNATE(0xc));
efiSetPadMode("SDMMC", Gpio::C8, PAL_MODE_ALTERNATE(12) | PAL_STM32_OSPEED_HIGHEST);
efiSetPadMode("SDMMC", Gpio::C9, PAL_MODE_ALTERNATE(12) | PAL_STM32_OSPEED_HIGHEST);
efiSetPadMode("SDMMC", Gpio::C10, PAL_MODE_ALTERNATE(12) | PAL_STM32_OSPEED_HIGHEST);
efiSetPadMode("SDMMC", Gpio::C11, PAL_MODE_ALTERNATE(12) | PAL_STM32_OSPEED_HIGHEST);
efiSetPadMode("SDMMC", Gpio::C12, PAL_MODE_ALTERNATE(12) | PAL_STM32_OSPEED_HIGHEST);
efiSetPadMode("SDMMC", Gpio::D2, PAL_MODE_ALTERNATE(12) | PAL_STM32_OSPEED_HIGHEST);
}

void initBoardSensors() {
Expand Down Expand Up @@ -179,5 +179,4 @@ void initBoardSensors() {
AdcSubscription::SubscribeSensor(sensor5vSensor, EFI_ADC_17, /*bandwidth*/ 20, /*ratio*/ 1);
sensor5vSensor.Register();
}

}

0 comments on commit 8bf4bae

Please sign in to comment.