drv_usart.h 471 B

12345678910111213141516171819202122
  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. * 2017-08-25 LongfeiMa the first version for stm32h7xx
  9. */
  10. #ifndef __DRV_USART_H__
  11. #define __DRV_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 stm32_hw_usart_init(void);
  17. #endif