基质喷涂
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
457 B

  1. //
  2. // Created by iflyt on 2025/2/27.
  3. //
  4. #ifndef UART_DBG_H
  5. #define UART_DBG_H
  6. // 可配置参数
  7. #define DBG_UART_BAUDRATE 115200
  8. #define DBG_UART USART1
  9. #define DBG_UART_TX_PIN GPIO_PIN_9
  10. #define DBG_UART_RX_PIN GPIO_PIN_10
  11. #define DBG_UART_GPIO_PORT GPIOA
  12. #define DBG_UART_GPIO_AF GPIO_AF7_USART1
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. // 初始化调试串口
  17. void DBG_UART_Init(void);
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif //UART_DBG_H