2021-09-07 20:08:26 +08:00
|
|
|
/*
|
2022-03-29 07:38:42 +08:00
|
|
|
* Copyright (c) 2006-2022, RT-Thread Development Team
|
2021-09-07 20:08:26 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2021-01-04 iysheng first version
|
|
|
|
*/
|
|
|
|
|
2021-09-12 10:38:09 +08:00
|
|
|
#ifndef __DRV_USART_H__
|
|
|
|
#define __DRV_USART_H__
|
2021-09-07 20:08:26 +08:00
|
|
|
|
|
|
|
#include <rthw.h>
|
|
|
|
#include <rtthread.h>
|
|
|
|
|
2021-09-09 00:52:22 +08:00
|
|
|
/* V85XX uart driver */
|
2021-09-07 20:08:26 +08:00
|
|
|
struct V85xx_uart {
|
|
|
|
UART_TypeDef * uart_periph;
|
|
|
|
IRQn_Type irqn;
|
|
|
|
|
|
|
|
struct rt_serial_device *serial;
|
|
|
|
char *device_name;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|