drv_spi.h 516 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2006-2023, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Email: opensource_embedded@phytium.com.cn
  7. *
  8. * Change Logs:
  9. * Date Author Notes
  10. * 2022-11-10 liqiaozhong first commit
  11. * 2023-03-08 liqiaozhong support 4 spis and qspi working together
  12. */
  13. #ifndef __DRV_SPI_H__
  14. #define __DRV_SPI_H__
  15. #include <rtthread.h>
  16. #ifdef BSP_USING_SPI
  17. struct drv_spi
  18. {
  19. u32 spi_id;
  20. FSpim spim_instance;
  21. struct rt_spi_device device;
  22. };
  23. #endif
  24. #endif