drv_spi.h 488 B

12345678910111213141516171819202122232425262728
  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. struct drv_spi
  17. {
  18. u32 spi_id;
  19. FSpim spim_instance;
  20. struct rt_spi_device device;
  21. };
  22. #endif