usart.h 450 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2006-2018, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2013-11-15 bright the first version
  9. */
  10. #ifndef __USART_H__
  11. #define __USART_H__
  12. #include <rthw.h>
  13. #include <rtthread.h>
  14. #include "stm32l0xx.h"
  15. #define UART_ENABLE_IRQ(n) HAL_NVIC_EnableIRQ((n))
  16. #define UART_DISABLE_IRQ(n) HAL_NVIC_DisableIRQ((n))
  17. #endif