drv_usart_v2.h 624 B

123456789101112131415161718192021222324252627282930313233343536
  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. * 2022-02-22 airm2m 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 <rthw.h>
  15. #include <drv_common.h>
  16. #include "drv_config.h"
  17. /* renesas config class */
  18. struct air_uart_config
  19. {
  20. const char *name;
  21. rt_uint8_t id;
  22. };
  23. struct air_uart
  24. {
  25. struct rt_serial_device serial;
  26. struct air_uart_config *config;
  27. };
  28. int rt_hw_usart_init(void);
  29. #endif /* __DRV_USART_H__ */