drv_spi.h 451 B

1234567891011121314151617181920
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-03-27 Liuguang the first version.
  9. */
  10. #ifndef DRV_SPI_H__
  11. #define DRV_SPI_H__
  12. #include <rtthread.h>
  13. #include <rtdevice.h>
  14. int rt_hw_spi_bus_init(void);
  15. rt_err_t rt_hw_spi_device_attach(const char *bus_name, const char *device_name, rt_uint32_t pin);
  16. #endif /* DRV_SPI_H__ */