mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-26 20:53:11 +00:00
feat(gpio): add gpio_config_as_analog API
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user