mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-08 22:01:42 +00:00
feat(gpio): add gpio fun sellect api
This commit is contained in:
@@ -1043,3 +1043,10 @@ esp_err_t gpio_dump_io_configuration(FILE *out_stream, uint64_t io_bit_mask)
|
||||
fprintf(out_stream, "=================IO DUMP End==================\n");
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t gpio_func_sel(gpio_num_t gpio_num, uint32_t func)
|
||||
{
|
||||
GPIO_CHECK(GPIO_IS_VALID_GPIO(gpio_num), "GPIO number error", ESP_ERR_INVALID_ARG);
|
||||
gpio_hal_func_sel(gpio_context.gpio_hal, gpio_num, func);
|
||||
return ESP_OK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user