drv_spi_bus.h 644 B

123456789101112131415161718192021222324
  1. /*
  2. * File : drv_spi_bus.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006-2013, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2018-03-27 Liuguang the first version.
  13. */
  14. #ifndef __DRV_SPI_BUS_H__
  15. #define __DRV_SPI_BUS_H__
  16. #include <rtthread.h>
  17. #include <rtdevice.h>
  18. int rt_hw_spi_bus_init(void);
  19. rt_err_t rt1050_spi_bus_attach_device(const char *bus_name, const char *device_name, rt_uint32_t pin);
  20. #endif