// // Created by iflyt on 2025/2/27. // #ifndef UART_DBG_H #define UART_DBG_H // 可配置参数 #define DBG_UART_BAUDRATE 115200 #define DBG_UART USART1 #define DBG_UART_TX_PIN GPIO_PIN_9 #define DBG_UART_RX_PIN GPIO_PIN_10 #define DBG_UART_GPIO_PORT GPIOA #define DBG_UART_GPIO_AF GPIO_AF7_USART1 #ifdef __cplusplus extern "C" { #endif // 初始化调试串口 void DBG_UART_Init(void); #ifdef __cplusplus } #endif #endif //UART_DBG_H