drv_usart.h 519 B

1234567891011121314151617181920212223242526272829
  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. #ifndef __USART_H__
  11. #define __USART_H__
  12. #include <rthw.h>
  13. #include <rtthread.h>
  14. #include "board.h"
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. #define UART_ENABLE_IRQ(n) NVIC_EnableIRQ((n))
  19. #define UART_DISABLE_IRQ(n) NVIC_DisableIRQ((n))
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif /* __USART_H__ */