drv_usart.h 474 B

1234567891011121314151617181920212223242526
  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. */
  10. #ifndef __DRV_USART_H__
  11. #define __DRV_USART_H__
  12. #include <rthw.h>
  13. #include <rtthread.h>
  14. /* V85XX uart driver */
  15. struct V85xx_uart {
  16. UART_TypeDef * uart_periph;
  17. IRQn_Type irqn;
  18. struct rt_serial_device *serial;
  19. char *device_name;
  20. };
  21. #endif