From 0c4662538f6cda5c6352f8215ae5ed4e05add8d4 Mon Sep 17 00:00:00 2001 From: Angelo Prete <angelo.prete@skywarder.eu> Date: Thu, 11 Jul 2024 18:38:19 +0200 Subject: [PATCH] [bsps] Updated death_stack_v2 bsp and hwmapping. Fixed HSE value --- .../config/board_options.cmake | 6 +++--- .../interfaces-impl/bsp.cpp | 12 +++++++++++ .../interfaces-impl/hwmapping.h | 20 +++++++++++++++++++ 3 files changed, 35 insertions(+), 3 deletions(-) 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 470164534..2c4255505 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 b47e68191..b7574a91a 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 272509d07..1a7e415a0 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 -- GitLab