2018-11-29 17:00:22 +08:00
|
|
|
/*
|
2021-03-14 15:33:55 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2018-11-29 17:00:22 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2018-11-26 BalanceTWK add port file
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "drv_spi.h"
|
|
|
|
|
|
|
|
int w5500_spi_device_init()
|
|
|
|
{
|
|
|
|
__HAL_RCC_GPIOG_CLK_ENABLE();
|
2023-01-18 13:27:08 +08:00
|
|
|
return rt_hw_spi_device_attach("spi2","spi20",GET_PIN(G, 9));
|
2018-11-29 17:00:22 +08:00
|
|
|
}
|
|
|
|
INIT_DEVICE_EXPORT(w5500_spi_device_init);
|