fix(ulp_adc): Provide ulp_adc_deinit() API to fix ADC1 handle leakage

This commit is contained in:
paul
2023-12-12 22:12:02 +03:00
committed by paul
parent 692c1fcc52
commit 8596d46774
2 changed files with 20 additions and 8 deletions

View File

@@ -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