1 /*
2  * Copyright (c) 2006-2022, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2022-10-19     Nations      first version
9  */
10 
11 #ifndef __USART_H__
12 #define __USART_H__
13 
14 #include <rthw.h>
15 #include <rtthread.h>
16 #include "board.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 #define UART_ENABLE_IRQ(n)            NVIC_EnableIRQ((n))
23 #define UART_DISABLE_IRQ(n)           NVIC_DisableIRQ((n))
24 
25 #ifdef __cplusplus
26 }
27 #endif
28 
29 #endif /* __USART_H__ */
30