drv_usart_v2.h 512 B

12345678910111213141516171819202122232425262728
  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. * 2023-02-23 Jonas first version
  9. */
  10. #ifndef __DRV_USART_V2_H__
  11. #define __DRV_USART_V2_H__
  12. #include <rtthread.h>
  13. #include <rtdevice.h>
  14. #include <drv_common.h>
  15. struct at32_usart
  16. {
  17. char *name;
  18. usart_type *usart_x;
  19. IRQn_Type irqn;
  20. struct rt_serial_device serial;
  21. };
  22. int rt_hw_usart_init(void);
  23. #endif /* __DRV_USART_V2_H__ */