diff --git a/src/bsps/stm32f429zi_death_stack_v2/config/board_options.cmake b/src/bsps/stm32f429zi_death_stack_v2/config/board_options.cmake index 470164534eacb0f30108ca1f9af47848b7f53536..2c4255505dda334e0dece4179c0212506be11bda 100644 --- a/src/bsps/stm32f429zi_death_stack_v2/config/board_options.cmake +++ b/src/bsps/stm32f429zi_death_stack_v2/config/board_options.cmake @@ -73,9 +73,9 @@ set(XRAM -D__ENABLE_XRAM) # running the core at 180MHz. If 180MHz is chosen the USB peripheral will # NOT WORK and the SDIO and RNG will run ~6% slower (45MHz insteand of 48) # Define USE_INTERNAL_CLOCK to bypass the external oscillator -# set(CLOCK_FREQ -DHSE_VALUE=8000000 -DSYSCLK_FREQ_180MHz=180000000) -set(CLOCK_FREQ -DHSE_VALUE=8000000 -DSYSCLK_FREQ_168MHz=168000000) -# set(CLOCK_FREQ -DHSE_VALUE=8000000 -DSYSCLK_FREQ_100MHz=100000000) +#set(CLOCK_FREQ -DHSE_VALUE=25000000 -DSYSCLK_FREQ_180MHz=180000000) +set(CLOCK_FREQ -DHSE_VALUE=25000000 -DSYSCLK_FREQ_168MHz=168000000) +#set(CLOCK_FREQ -DHSE_VALUE=25000000 -DSYSCLK_FREQ_100MHz=100000000) # C++ Exception/rtti support disable flags. # To save code size if not using C++ exceptions (nor some STL code which diff --git a/src/bsps/stm32f429zi_death_stack_v2/interfaces-impl/bsp.cpp b/src/bsps/stm32f429zi_death_stack_v2/interfaces-impl/bsp.cpp index b47e68191ef3dfec399a767b81c124887aac0d44..b7574a91aa84f527af37387db0b72f3df46665b1 100644 --- a/src/bsps/stm32f429zi_death_stack_v2/interfaces-impl/bsp.cpp +++ b/src/bsps/stm32f429zi_death_stack_v2/interfaces-impl/bsp.cpp @@ -400,6 +400,18 @@ void IRQbspInit() ms5803::cs::mode(Mode::OUTPUT); ms5803::cs::high(); + lps22df::cs::mode(Mode::OUTPUT); + lps22df::cs::high(); + + h3lis331dl::cs::mode(Mode::OUTPUT); + h3lis331dl::cs::high(); + + ads131m08::cs::mode(Mode::OUTPUT); + ads131m08::cs::high(); + + ubxgps::cs::mode(Mode::OUTPUT); + ubxgps::cs::high(); + using namespace inputs; vbat::mode(Mode::INPUT_ANALOG); diff --git a/src/bsps/stm32f429zi_death_stack_v2/interfaces-impl/hwmapping.h b/src/bsps/stm32f429zi_death_stack_v2/interfaces-impl/hwmapping.h index 272509d075c761bc4ae83b47e0c9ce1487fce3fa..1a7e415a05d462cfb7f6bd5d134b734653ebfcb2 100644 --- a/src/bsps/stm32f429zi_death_stack_v2/interfaces-impl/hwmapping.h +++ b/src/bsps/stm32f429zi_death_stack_v2/interfaces-impl/hwmapping.h @@ -120,6 +120,26 @@ namespace ms5803 using cs = Gpio<GPIOD_BASE, 7>; } // namespace ms5803 +namespace ads131m08 +{ +using cs = Gpio<GPIOC_BASE, 2>; +} // namespace ads131m08 + +namespace lps22df +{ +using cs = Gpio<GPIOB_BASE, 1>; +} // namespace lps22df + +namespace h3lis331dl +{ +using cs = Gpio<GPIOC_BASE, 6>; +} // namespace h3lis331dl + +namespace ubxgps +{ +using cs = Gpio<GPIOD_BASE, 7>; +} // namespace ubxgps + } // namespace sensors namespace inputs