rt-thread-official/bsp/stm32l072/board/usart.h

24 lines
450 B
C
Raw Normal View History

2016-09-21 13:18:21 +08:00
/*
2018-10-16 13:00:37 +08:00
* Copyright (c) 2006-2018, RT-Thread Development Team
2016-09-21 13:18:21 +08:00
*
2018-10-16 13:00:37 +08:00
* SPDX-License-Identifier: Apache-2.0
2016-09-21 13:18:21 +08:00
*
* Change Logs:
* Date Author Notes
* 2013-11-15 bright the first version
*/
#ifndef __USART_H__
#define __USART_H__
#include <rthw.h>
#include <rtthread.h>
#include "stm32l0xx.h"
#define UART_ENABLE_IRQ(n) HAL_NVIC_EnableIRQ((n))
#define UART_DISABLE_IRQ(n) HAL_NVIC_DisableIRQ((n))
#endif