usart.h 626 B

1234567891011121314151617181920212223242526
  1. /*
  2. * File : usart.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2009, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2009-01-05 Bernard the first version
  13. */
  14. #ifndef __USART_H__
  15. #define __USART_H__
  16. #include <rthw.h>
  17. #include <rtthread.h>
  18. #define UART_ENABLE_IRQ(n) NVIC_EnableIRQ((n))
  19. #define UART_DISABLE_IRQ(n) NVIC_DisableIRQ((n))
  20. int stm32_hw_usart_init(void);
  21. #endif