4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-19 07:33:32 +08:00
2023-01-18 00:27:08 -05:00

20 lines
446 B
C

/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2018-11-26 BalanceTWK add port file
*/
#include "drv_spi.h"
#include "board.h"
#include "drv_gpio.h"
int w5500_spi_device_init()
{
__HAL_RCC_GPIOB_CLK_ENABLE();
return rt_hw_spi_device_attach("spi2", "spi20", GET_PIN(B, 12));
}
INIT_DEVICE_EXPORT(w5500_spi_device_init);