drv_spi.h 516 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2006-2022, Synwit Technology Co.,Ltd.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-12-10 Zohar_Lee first version
  9. * 2020-07-10 lik rewrite
  10. */
  11. #ifndef __DRV_SPI_H__
  12. #define __DRV_SPI_H__
  13. #include "board.h"
  14. //cannot be used before completion init
  15. rt_err_t rt_hw_spi_device_attach(const char *bus_name, const char *device_name, GPIO_TypeDef *GPIOx, uint32_t n);
  16. int swm_spi_init(void);
  17. #endif /* __DRV_SPI_H__ */