mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-22 09:06:27 +00:00
feat(gpio): gpio_reset_pin should do IO reservation revoke
Closes https://github.com/espressif/esp-idf/issues/15598
This commit is contained in:
@@ -468,6 +468,7 @@ esp_err_t gpio_reset_pin(gpio_num_t gpio_num)
|
||||
}
|
||||
#endif
|
||||
gpio_hal_func_sel(gpio_context.gpio_hal, gpio_num, PIN_FUNC_GPIO);
|
||||
esp_gpio_revoke(BIT64(gpio_num));
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user