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 e68c14626eeb65147ff7d16cac034b90296ae2b1..4177d8f985dea9b7cfd9e27e5a52286dfa4f99f4 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 3a1e591d7d28ee5751067aff4a9dcf4f9f8123c4..11631346494fdeeb382c0630a4a07a467d678d0a 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