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 11 #include "drv_spi.h" 12 w5500_spi_device_init()13int w5500_spi_device_init() 14 { 15 __HAL_RCC_GPIOG_CLK_ENABLE(); 16 return rt_hw_spi_device_attach("spi2","spi20",GET_PIN(G, 9)); 17 } 18 INIT_DEVICE_EXPORT(w5500_spi_device_init); 19