drv_usart.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Copyright (C) 2020, Huada Semiconductor Co., Ltd.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2020-10-30 CDT first version
  9. */
  10. #ifndef __DRV_USART_H__
  11. #define __DRV_USART_H__
  12. /*******************************************************************************
  13. * Include files
  14. ******************************************************************************/
  15. #include <rtthread.h>
  16. #include "rtdevice.h"
  17. #include "hc32_ddl.h"
  18. #include "drv_irq.h"
  19. #include "drv_dma.h"
  20. /* C binding of definitions if building with C++ compiler */
  21. #ifdef __cplusplus
  22. extern "C"
  23. {
  24. #endif
  25. /*******************************************************************************
  26. * Global type definitions ('typedef')
  27. ******************************************************************************/
  28. /*******************************************************************************
  29. * Global pre-processor symbols/macros ('#define')
  30. ******************************************************************************/
  31. /*******************************************************************************
  32. * Global variable definitions ('extern')
  33. ******************************************************************************/
  34. /*******************************************************************************
  35. * Global function prototypes (definition in C source)
  36. ******************************************************************************/
  37. int rt_hw_uart_init(void);
  38. #ifdef __cplusplus
  39. }
  40. #endif
  41. #endif /* __DRV_USART_H__ */
  42. /*******************************************************************************
  43. * EOF (not truncated)
  44. ******************************************************************************/