rt-thread/bsp/n32/libraries/n32_drivers/drv_usart.h

30 lines
519 B
C
Raw Normal View History

/*
* Copyright (c) 2006-2022, RT-Thread Development Team
2022-07-13 19:56:14 +08:00
*
* SPDX-License-Identifier: Apache-2.0
2022-07-13 19:56:14 +08:00
*
* Change Logs:
* Date Author Notes
* 2022-10-19 Nations first version
2022-07-13 19:56:14 +08:00
*/
#ifndef __USART_H__
#define __USART_H__
#include <rthw.h>
#include <rtthread.h>
#include "board.h"
#ifdef __cplusplus
extern "C" {
#endif
2022-07-13 19:56:14 +08:00
#define UART_ENABLE_IRQ(n) NVIC_EnableIRQ((n))
#define UART_DISABLE_IRQ(n) NVIC_DisableIRQ((n))
#ifdef __cplusplus
}
2022-07-13 19:56:14 +08:00
#endif
#endif /* __USART_H__ */