drv_spi.h 516 B

123456789101112131415161718
  1. /*
  2. * Copyright (c) 2006-2018, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2017-10-20 ZYH the first version
  9. */
  10. #ifndef __STM32_SPI_H_
  11. #define __STM32_SPI_H_
  12. #include <rtthread.h>
  13. #include <rthw.h>
  14. #include <rtdevice.h>
  15. //cannot be used before completion init
  16. extern rt_err_t stm32_spi_bus_attach_device(rt_uint32_t pin, const char *bus_name, const char *device_name);
  17. extern int stm32_hw_spi_init(void);
  18. #endif