drv_usart.h 474 字节
Newer Older
F
FuChao 已提交
1
/*
2
 * Copyright (c) 2006-2022, RT-Thread Development Team
F
FuChao 已提交
3 4 5 6 7 8 9 10
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author            Notes
 * 2021-01-04     iysheng           first version
 */

F
FuChao 已提交
11 12
#ifndef __DRV_USART_H__
#define __DRV_USART_H__
F
FuChao 已提交
13 14 15 16

#include <rthw.h>
#include <rtthread.h>

17
/* V85XX uart driver */
F
FuChao 已提交
18 19 20 21 22 23 24 25 26
struct V85xx_uart {
    UART_TypeDef * uart_periph;
    IRQn_Type irqn;

    struct rt_serial_device *serial;
    char *device_name;
};

#endif