drv_usart.h 575 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-01-04 iysheng first version
  9. * 2021-09-07 FuC Suit for V85xx
  10. * 2021-09-12 ZhuXW Suit for V85xxP
  11. */
  12. #ifndef __DRV_USART_H__
  13. #define __DRV_USART_H__
  14. #include <rthw.h>
  15. #include <rtthread.h>
  16. /* V85XXP uart driver */
  17. struct V85xxP_uart {
  18. UART_Type * uart_periph;
  19. IRQn_Type irqn;
  20. struct rt_serial_device *serial;
  21. char *device_name;
  22. };
  23. #endif