summaryrefslogtreecommitdiff
path: root/bsp/renesas/libraries/HAL_Drivers/drv_usartX.h
blob: 2862c5c409f5aae2f1f7dd02db9d05c0d2ff44ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * Copyright (c) 2006-2022, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author            Notes
 * 2021-07-29     KyleChan          first version
 * 2022-06-08     THEWON            first version for serialX
 */

#ifndef __DRV_USART_V2_H__
#define __DRV_USART_V2_H__

#include <rtthread.h>
#include <rtdevice.h>
#include <rthw.h>
#include <drv_common.h>
#include <drv_config.h>
#include <hal_data.h>

/* renesas config class */
struct ra_uart_config
{
    const char *name;
    uart_ctrl_t * p_api_ctrl;
    uart_cfg_t  uart_cfg;
};

struct ra_uart
{
    struct rt_serial_device serial;
    struct ra_uart_config *uart_config;
    rt_bool_t intTxing;
};

int rt_hw_usart_init(void);

#endif  /* __DRV_USART_H__ */