spi.h 448 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2017-12-04 Haley the first version
  9. */
  10. #ifndef __SPI_H_
  11. #define __SPI_H_
  12. #include <rtthread.h>
  13. /* 片选信号结构声明 */
  14. struct am_spi_cs
  15. {
  16. rt_uint32_t chip_select;
  17. };
  18. /**
  19. * @brief External function definitions
  20. *
  21. */
  22. int yr_hw_spi_init(void);
  23. #endif // __SPI_H_