drv_usart.h 448 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2009-01-05 Bernard the first version
  9. */
  10. #ifndef __USART_H__
  11. #define __USART_H__
  12. #include <rthw.h>
  13. #include <rtthread.h>
  14. #define UART_ENABLE_IRQ(n) NVIC_EnableIRQ((n))
  15. #define UART_DISABLE_IRQ(n) NVIC_DisableIRQ((n))
  16. int gd32_hw_usart_init(void);
  17. #endif