im trying to route pin 1 with gpio_config(config) and esp32 hangs on this command.
Code: Select all
uint64_t mask = 2;
gpio_config_t config;
config.pin_bit_mask = mask;
config.mode = GPIO_MODE_INPUT_OUTPUT; // <-- all combinations here
config.pull_up_en = GPIO_PULLUP_ENABLE;
config.pull_down_en = GPIO_PULLDOWN_DISABLE;
config.intr_type = GPIO_INTR_DISABLE;
gpio_config(&config);