gpio_matrix_in or gpio_matrix_out vs. gpio_set_direction
Posted: Sat Mar 11, 2017 10:24 am
hi guys
honest, have thinked
set the Direction BIT of the GPIO
in this example MDIO is in and output
https://esp32.com/viewtopic.php?f=12&p=6422#p6401
? we need to set the BIT again for input with
https://esp32.com/viewtopic.php?f=12&p=6422#p6418
best wishes
rudi
honest, have thinked
Code: Select all
gpio_matrix_out(PIN_SMI_MDIO, EMAC_MDO_O_IDX, 0, 0);
gpio_matrix_in(PIN_SMI_MDIO, EMAC_MDI_I_IDX, 0);
in this example MDIO is in and output
https://esp32.com/viewtopic.php?f=12&p=6422#p6401
? we need to set the BIT again for input with
https://esp32.com/viewtopic.php?f=12&p=6422#p6418
Code: Select all
gpio_set_direction(PIN_SMI_MDIO, GPIO_MODE_INPUT);
best wishes
rudi