drv_uart.h 441 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. * 2021-10-02 spaceman first version
  9. */
  10. #ifndef DRV_UART_H__
  11. #define DRV_UART_H__
  12. #include <rtthread.h>
  13. #include "rtdevice.h"
  14. #include <rthw.h>
  15. int rt_hw_uart_init(void);
  16. /* uart driver */
  17. struct tkm32_uart
  18. {
  19. UART_TypeDef *uart;
  20. IRQn_Type irq;
  21. };
  22. #endif