Skip to content

Commit

Permalink
Update gpio.c
Browse files Browse the repository at this point in the history
  • Loading branch information
IhorNehrutsa authored Nov 27, 2024
1 parent 1286b54 commit bbb12e0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/esp_driver_gpio/src/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1065,3 +1065,10 @@ void gpio_get_io_config(uint32_t gpio_num,
{
gpio_hal_get_io_config(gpio_context.gpio_hal, gpio_num, pu, pd, ie, oe, od, drv, fun_sel, sig_out, slp_sel);
}

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;
}

0 comments on commit bbb12e0

Please sign in to comment.