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-23 flybreak first version 9 */ 10 11 #include <board.h> 12 13 #define RESET_IO GET_PIN(D, 3) 14 phy_reset(void)15void phy_reset(void) 16 { 17 rt_pin_write(RESET_IO, PIN_LOW); 18 rt_thread_mdelay(50); 19 rt_pin_write(RESET_IO, PIN_HIGH); 20 } 21 phy_init(void)22int phy_init(void) 23 { 24 rt_pin_mode(RESET_IO, PIN_MODE_OUTPUT); 25 rt_pin_write(RESET_IO, PIN_HIGH); 26 return RT_EOK; 27 } 28 INIT_BOARD_EXPORT(phy_init); 29