2021-01-28 19:59:31 +08:00
|
|
|
/*
|
2021-01-28 22:22:57 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2021-01-28 19:59:31 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
2021-01-28 22:22:57 +08:00
|
|
|
* Date Author Notes
|
|
|
|
* 2021-01-28 flybreak first version
|
2023-10-02 21:28:09 +08:00
|
|
|
* 2023-09-26 1ridic Integrate with RT-Thread driver framework.
|
2021-01-28 19:59:31 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __USART_H__
|
|
|
|
#define __USART_H__
|
|
|
|
|
|
|
|
#include <rthw.h>
|
|
|
|
#include <rtthread.h>
|
|
|
|
|
2023-10-02 21:28:09 +08:00
|
|
|
#ifdef RT_USING_SERIAL
|
2021-01-28 19:59:31 +08:00
|
|
|
int rt_hw_uart_init(void);
|
2023-10-02 21:28:09 +08:00
|
|
|
#endif
|
2021-01-28 19:59:31 +08:00
|
|
|
|
|
|
|
#endif
|