diff options
Diffstat (limited to 'bsp/at32/libraries/rt_drivers/drv_usart_v2.h')
| -rw-r--r-- | bsp/at32/libraries/rt_drivers/drv_usart_v2.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/bsp/at32/libraries/rt_drivers/drv_usart_v2.h b/bsp/at32/libraries/rt_drivers/drv_usart_v2.h new file mode 100644 index 0000000000..1fe1cf24ee --- /dev/null +++ b/bsp/at32/libraries/rt_drivers/drv_usart_v2.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2023-02-23 Jonas first version + */ + +#ifndef __DRV_USART_V2_H__ +#define __DRV_USART_V2_H__ + +#include <rtthread.h> +#include <rtdevice.h> +#include <drv_common.h> + +struct at32_usart +{ + char *name; + usart_type *usart_x; + IRQn_Type irqn; + struct rt_serial_device serial; +}; + +int rt_hw_usart_init(void); + +#endif /* __DRV_USART_V2_H__ */ |
