drv_spi.h 505 B

12345678910111213141516171819202122232425262728293031323334
  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-10-19 Nations first version
  9. */
  10. #ifndef __DRV_SPI_H__
  11. #define __DRV_SPI_H__
  12. #include <rthw.h>
  13. #include <rtthread.h>
  14. #include <board.h>
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. struct n32_spi_cs
  19. {
  20. GPIO_Module* GPIOx;
  21. uint32_t GPIO_Pin;
  22. };
  23. int rt_hw_spi_init(void);
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif /* __DRV_SPI_H__ */