drv_uart.h 564 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2017-05-30 Bernard the first version
  9. * 2018-03-15 flyingcys add amebaz
  10. */
  11. #ifndef __DRV_UART_H__
  12. #define __DRV_UART_H__
  13. #if defined(CONFIG_PLATFORM_8711B)
  14. // 8710B
  15. #define UART_TX PA_23
  16. #define UART_RX PA_18
  17. #else
  18. // 8711AM
  19. #define UART_TX PA_7
  20. #define UART_RX PA_6
  21. //8711AF
  22. //#define UART_TX PA_4
  23. //#define UART_RX PA_0
  24. #endif
  25. int rt_hw_uart_init(void);
  26. #endif /* __DRV_UART_H__ */