summaryrefslogtreecommitdiff
path: root/bsp/stm32/stm32f103-fire-arbitrary/board/ports/w5500_device.c
blob: 59ac387f52aadd4a8487e54b65b1c9c6eaf56dc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * 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"

int w5500_spi_device_init()
{
    __HAL_RCC_GPIOG_CLK_ENABLE();
    return rt_hw_spi_device_attach("spi2","spi20",GET_PIN(G, 9));
}
INIT_DEVICE_EXPORT(w5500_spi_device_init);