drv_spi.h 446 B

12345678910111213141516171819
  1. /*
  2. * Copyright (c) 2006-2023, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2023-07-27 Chushicheng the first version
  9. */
  10. #ifndef DRV_SPI_H
  11. #define DRV_SPI_H
  12. #include <rtdevice.h>
  13. #ifdef BSP_USING_SPI
  14. rt_err_t rt_hw_spi_device_attach(const char *bus_name, const char *device_name, rt_base_t cs_pin);
  15. #endif /* BSP_USING_SPI */
  16. #endif /* DRV_SPI_H */