drv_spi.h 418 B

12345678910111213141516171819
  1. /*
  2. * Copyright (c) 2019 Winner Microelectronics Co., Ltd.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-11-12 fanwenl 1st version
  9. */
  10. #ifndef __DRV_SPI_BUS_H__
  11. #define __DRV_SPI_BUS_H__
  12. #include <rtthread.h>
  13. int wm_hw_spi_bus_init(void);
  14. rt_err_t wm_spi_bus_attach_device(const char *bus_name, const char *device_name, rt_uint32_t pin);
  15. #endif