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
|
|
|
*/
|
|
|
|
|
2024-01-21 17:39:50 +08:00
|
|
|
#ifndef __DRV_UART_H__
|
|
|
|
#define __DRV_UART_H__
|
2021-01-28 19:59:31 +08:00
|
|
|
|
|
|
|
#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);
|
2024-01-21 17:39:50 +08:00
|
|
|
#endif /* RT_USING_SERIAL */
|
2021-01-28 19:59:31 +08:00
|
|
|
|
2024-01-21 17:39:50 +08:00
|
|
|
#endif /* __DRV_UART_H__ */
|