We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ca3faa6 + cb3f094 commit 22ae5adCopy full SHA for 22ae5ad
components/ethernet/eth_phy/phy_common.c
@@ -40,8 +40,12 @@ void phy_rmii_configure_data_interface_pins(void)
40
41
void phy_rmii_smi_configure_pins(uint8_t mdc_gpio, uint8_t mdio_gpio)
42
{
43
+ // setup SMI MDC pin
44
+ gpio_set_direction(mdc_gpio, GPIO_MODE_OUTPUT);
45
gpio_matrix_out(mdc_gpio, EMAC_MDC_O_IDX, 0, 0);
46
PIN_FUNC_SELECT(GPIO_PIN_MUX_REG[mdc_gpio], PIN_FUNC_GPIO);
47
+ // setup SMI MDIO pin
48
+ gpio_set_direction(mdio_gpio, GPIO_MODE_INPUT_OUTPUT);
49
gpio_matrix_out(mdio_gpio, EMAC_MDO_O_IDX, 0, 0);
50
gpio_matrix_in(mdio_gpio, EMAC_MDI_I_IDX, 0);
51
PIN_FUNC_SELECT(GPIO_PIN_MUX_REG[mdio_gpio], PIN_FUNC_GPIO);
0 commit comments