usart.h 517 B

1234567891011121314151617181920212223242526
  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 "stm32f0xx.h"
  15. #define RT_USING_UART1
  16. #define RT_USING_UART2
  17. #define UART_ENABLE_IRQ(n) NVIC_EnableIRQ((n))
  18. #define UART_DISABLE_IRQ(n) NVIC_DisableIRQ((n))
  19. void rt_hw_usart_init(void);
  20. #endif