w5500_device.c 403 B

123456789101112131415161718
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-11-26 BalanceTWK add port file
  9. */
  10. #include "drv_spi.h"
  11. int w5500_spi_device_init()
  12. {
  13. __HAL_RCC_GPIOG_CLK_ENABLE();
  14. return rt_hw_spi_device_attach("spi2","spi20",GET_PIN(G, 9));
  15. }
  16. INIT_DEVICE_EXPORT(w5500_spi_device_init);