dev_spi_dm.h 611 B

1234567891011121314151617181920212223242526272829
  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. * 2022-11-26 GuEe-GUI first version
  9. */
  10. #ifndef __DEV_SPI_DM_H__
  11. #define __DEV_SPI_DM_H__
  12. #include <rthw.h>
  13. #include <rtthread.h>
  14. #include <rtdevice.h>
  15. #ifdef RT_USING_OFW
  16. rt_err_t spi_device_ofw_parse(struct rt_spi_device *spi_dev);
  17. #else
  18. rt_inline rt_err_t spi_device_ofw_parse(struct rt_spi_device *spi_dev)
  19. {
  20. return RT_EOK;
  21. }
  22. #endif /* RT_USING_OFW */
  23. void spi_bus_scan_devices(struct rt_spi_bus *bus);
  24. #endif /* __DEV_SPI_DM_H__ */