drv_sci.h 635 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2006-2025, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2023-09-24 Vandoul first version
  9. */
  10. #ifndef __DRV_SCI_H__
  11. #define __DRV_SCI_H__
  12. #include <rtthread.h>
  13. #include <rtdevice.h>
  14. #include "hal_data.h"
  15. #include "board.h"
  16. #include <rthw.h>
  17. #include <drv_common.h>
  18. #include <drv_config.h>
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. #ifdef BSP_USING_SCIn_SPI
  23. rt_err_t rt_hw_sci_spi_device_attach(const char *bus_name, const char *device_name, rt_base_t cs_pin);
  24. #endif
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif /*__DRV_SCI_H__ */