ESP_igrr wrote:No, gpio_matrix_in doesn't set input enable. It only writes to the GPIO_FUNCx_IN_SEL_CFG_REG register.
ok,
i must ask again:
here in this example: GPIO18
https://github.com/espressif/esp-idf/bl ... main.c#L42
is used for MDIO
https://github.com/espressif/esp-idf/bl ... ain.c#L138
why we need not use
Code: Select all
gpio_set_direction(PIN_SMI_MDIO, GPIO_MODE_INPUT);
that the pin is input mode
if we use example gpio32 or 33
we need explizite to use
Code: Select all
gpio_set_direction(PIN_SMI_MDIO, GPIO_MODE_INPUT);
that the gpio32 or gpio33 is in INPUT mode too.
https://esp32.com/viewtopic.php?f=12&t= ... 6508#p6458
is mean GPIO_FUNCx_IN_SEL_CFG_REG is not valid for "GPIO MODE" that then is used for FUNC set pin?
other words:
if we use other function of GPIO as there is named as "FUNC" PIN "NAME"
( use function1 gpio )
then we need to use the GPIO API for set it as INPUT pin by using gpio_set_direction too?
best wishes
rudi