feat(gpio): add gpio_config_as_analog API

This commit is contained in:
Song Ruo Jing
2024-12-27 18:41:50 +08:00
parent 5b75572f23
commit 52c0278361
21 changed files with 102 additions and 148 deletions

View File

@@ -96,6 +96,16 @@ esp_err_t gpio_od_disable(gpio_num_t gpio_num);
*/
esp_err_t gpio_od_enable(gpio_num_t gpio_num);
/**
* @brief Configure the pin to be used for analog purpose (such as ADC, touch, etc.)
*
* @param gpio_num GPIO number
* @return
* - ESP_OK Success
* - ESP_ERR_INVALID_ARG GPIO number error
*/
esp_err_t gpio_config_as_analog(gpio_num_t gpio_num);
#ifdef __cplusplus
}
#endif