From 1e4cd2758830329dcb299b5063d6548d1dc036b4 Mon Sep 17 00:00:00 2001 From: EmilioCorigliano <emilio.corigliano@mail.polimi.it> Date: Thu, 29 Sep 2022 02:44:57 +0200 Subject: [PATCH] [VBAT] added pin for vbat --- .../interfaces-impl/bsp.cpp | 2 ++ .../interfaces-impl/hwmapping.h | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_death_stack_x_maker_faire/interfaces-impl/bsp.cpp b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_death_stack_x_maker_faire/interfaces-impl/bsp.cpp index e68c1462..4177d8f9 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_death_stack_x_maker_faire/interfaces-impl/bsp.cpp +++ b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_death_stack_x_maker_faire/interfaces-impl/bsp.cpp @@ -447,6 +447,8 @@ void IRQbspInit() airbrakes::servo::alternateFunction(3); // airbrakes::sensor::mode(Mode::INPUT_ANALOG); + inputs::vbat::mode(Mode::INPUT_ANALOG); + leds::red::mode(Mode::OUTPUT); leds::green::mode(Mode::OUTPUT); leds::blue::mode(Mode::OUTPUT); diff --git a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_death_stack_x_maker_faire/interfaces-impl/hwmapping.h b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_death_stack_x_maker_faire/interfaces-impl/hwmapping.h index 3a1e591d..11631346 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_death_stack_x_maker_faire/interfaces-impl/hwmapping.h +++ b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_death_stack_x_maker_faire/interfaces-impl/hwmapping.h @@ -62,7 +62,7 @@ using mosi = Gpio<GPIOE_BASE, 6>; // SX127x namespace spi5 { -using sck = Gpio<GPIOF_BASE, 7>; +using sck = RANDOM_PIN; using miso = Gpio<GPIOF_BASE, 8>; using mosi = Gpio<GPIOF_BASE, 9>; } // namespace spi5 @@ -167,6 +167,11 @@ using launchpad_detach = RANDOM_PIN; // launchpad detach } // namespace sensors +namespace inputs +{ +using vbat = Gpio<GPIOF_BASE, 7>; +} // namespace inputs + namespace expulsion { using servo = Gpio<GPIOB_BASE, 7>; // Pwm expulsion servo, TIM4_CH2 -- GitLab