From 7c894034e3ede54aa04b4246303e485ccbff2e55 Mon Sep 17 00:00:00 2001 From: Federico Mandelli <federicomandelli@skywarder.eu> Date: Tue, 27 Feb 2024 09:30:42 +0100 Subject: [PATCH] [HwMapping] Added definition and initialization for pin used by the new shield for the DeathStackX --- .../interfaces-impl/bsp.cpp | 12 ++++++++++++ .../interfaces-impl/hwmapping.h | 19 +++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_death_stack_x/interfaces-impl/bsp.cpp b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_death_stack_x/interfaces-impl/bsp.cpp index 4542a90f..6f47ac75 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_death_stack_x/interfaces-impl/bsp.cpp +++ b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_death_stack_x/interfaces-impl/bsp.cpp @@ -405,6 +405,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/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_death_stack_x/interfaces-impl/hwmapping.h b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_death_stack_x/interfaces-impl/hwmapping.h index c191b138..96c80c4e 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_death_stack_x/interfaces-impl/hwmapping.h +++ b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_death_stack_x/interfaces-impl/hwmapping.h @@ -125,6 +125,25 @@ 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