mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 12:35:28 +00:00
fix(ulp_adc): Provide ulp_adc_deinit() API to fix ADC1 handle leakage
This commit is contained in:
@@ -29,6 +29,13 @@ typedef struct {
|
||||
*/
|
||||
esp_err_t ulp_adc_init(const ulp_adc_cfg_t *cfg);
|
||||
|
||||
/**
|
||||
* @brief Deinitialize ADC after use with ULP, allowing it to be reclaimed
|
||||
*
|
||||
* @return esp_err_t ESP_OK for successful.
|
||||
*/
|
||||
esp_err_t ulp_adc_deinit();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user