Merge pull request 'USART via SWD or ASEAG debug' (#17) from uart-init into main

Reviewed-on: https://git.intern.spaceteamaachen.de/ALPAKA/sta-core/pulls/17
Reviewed-by: dario <dario@noreply.git.intern.spaceteamaachen.de>
This commit is contained in:
dario 2024-01-07 22:18:26 +00:00
commit b3ed26e288

View File

@ -7,6 +7,15 @@
#include <sta/devices/stm32/mcu/common.hpp> #include <sta/devices/stm32/mcu/common.hpp>
// uart setup
#ifdef STA_STM32_ASEAG
# define STA_STM32_USART_HANDLE huart1
#else
# ifdef STA_STM32_SWD_USART_IDX
# define STA_STM32_USART_HANDLE CONCAT(huart, STA_STM32_SWD_USART_IDX)
# endif // STA_STM32_SWD_USART_IDX
#endif // STA_STM32_SWD_USART_IDX
// Peripheral clock mappings // Peripheral clock mappings
// //