uart_config.h 852 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-07-29 KyleChan first version
  9. */
  10. #ifndef __UART_CONFIG_H__
  11. #define __UART_CONFIG_H__
  12. #include <rtthread.h>
  13. #include "hal_data.h"
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #if defined(BSP_USING_UART7)
  18. #ifndef UART7_CONFIG
  19. #define UART7_CONFIG \
  20. { \
  21. .name = "uart7", \
  22. .p_api_ctrl = &g_uart7_ctrl, \
  23. .p_cfg = &g_uart7_cfg, \
  24. }
  25. #endif /* UART7_CONFIG */
  26. #endif /* BSP_USING_UART7 */
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. #endif