diff --git a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_ground_station/interfaces-impl/bsp.cpp b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_ground_station/interfaces-impl/bsp.cpp index 4b300530a6a143ae0ea17e8ef0d93cfef6a3af24..f8672b499db31d7907bcd6b88552eba8dd7c5aad 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_ground_station/interfaces-impl/bsp.cpp +++ b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_ground_station/interfaces-impl/bsp.cpp @@ -213,6 +213,11 @@ void IRQbspInit() interfaces::spi4::mosi::mode(Mode::ALTERNATE); interfaces::spi4::mosi::alternateFunction(5); + interfaces::uart5::tx::mode(Mode::ALTERNATE); + interfaces::uart5::tx::alternateFunction(8); + interfaces::uart5::rx::mode(Mode::ALTERNATE); + interfaces::uart5::rx::alternateFunction(8); + peripherals::ra01::cs::mode(Mode::OUTPUT); peripherals::ra01::dio0::mode(Mode::INPUT); peripherals::ra01::nrst::mode(Mode::OUTPUT); diff --git a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_ground_station/interfaces-impl/hwmapping.h b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_ground_station/interfaces-impl/hwmapping.h index 3a213ec31e04c96353f933620869b508a7db11fb..e5ad20d4d9de42b743531f56ec1313d589566660 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_ground_station/interfaces-impl/hwmapping.h +++ b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_ground_station/interfaces-impl/hwmapping.h @@ -52,6 +52,12 @@ using miso = Gpio<GPIOE_BASE, 5>; using mosi = Gpio<GPIOE_BASE, 6>; } // namespace spi4 +namespace uart5 +{ +using tx = Gpio<GPIOC_BASE, 12>; +using rx = Gpio<GPIOD_BASE, 2>; +} // namespace uart5 + } // namespace interfaces namespace peripherals