drv_spi.h 700 B

1234567891011121314151617181920212223242526272829
  1. /*
  2.  * @ : Copyright (c) 2021 Phytium Information Technology, Inc.
  3.  *
  4.  * SPDX-License-Identifier: Apache-2.0.
  5.  *
  6. * @Date: 2021-04-25 14:01:39
  7. * @LastEditTime: 2021-04-29 09:40:13
  8. * @Description:  This files is for
  9. *
  10. * @Modify History:
  11. * Ver   Who        Date         Changes
  12. * ----- ------     --------    --------------------------------------
  13. */
  14. #ifndef FT_DRIVERS_RTT_SPI_H
  15. #define FT_DRIVERS_RTT_SPI_H
  16. #include <rtthread.h>
  17. #define SPI_BUS_NAME "spi0"
  18. #define SPI_DEV_NAME "S25FS256"
  19. rt_err_t rt_hw_spi_device_attach(const char *bus_name, const char *device_name, rt_uint16_t cs_gpio_pin);
  20. #ifdef __cplusplus
  21. extern "C"
  22. {
  23. #endif
  24. #endif