drv_spi.h 384 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2006-2018, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #ifndef __DRV_SPI_H__
  7. #define __DRV_SPI_H__
  8. #include <rtthread.h>
  9. #include <rtdevice.h>
  10. struct lpc_sw_spi_cs
  11. {
  12. rt_uint32_t pin;
  13. };
  14. int rt_hw_spi_init(void);
  15. rt_err_t lpc_spi_bus_attach_device(const char *bus_name, const char *device_name, rt_uint32_t pin);
  16. #endif