1 /*
2  * Copyright (c) 2006-2025, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2021-07-29     KyleChan     first version
9  */
10 
11 #ifndef __DRV_USART_V2_H__
12 #define __DRV_USART_V2_H__
13 
14 #include <rtthread.h>
15 #include <rtdevice.h>
16 #include <rthw.h>
17 #include <drv_common.h>
18 #include <drv_config.h>
19 #include <hal_data.h>
20 
21 /* renesas config class */
22 struct ra_uart_config
23 {
24     const char *name;
25     uart_ctrl_t *const p_api_ctrl;
26     uart_cfg_t const *const p_cfg;
27 };
28 
29 struct ra_uart
30 {
31     struct rt_serial_device serial;
32 
33     rt_uint16_t uart_dma_flag;
34 
35     struct ra_uart_config *config;
36 };
37 
38 int rt_hw_usart_init(void);
39 
40 #endif  /* __DRV_USART_H__ */
41