mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-10-30 20:51:41 +00:00 
			
		
		
		
	fix(tsens,adc): Fix issue that disable adc will make temperature sensor crash,
Closes https://github.com/espressif/esp-idf/issues/12921
This commit is contained in:
		| @@ -1,5 +1,5 @@ | ||||
| /* | ||||
|  * SPDX-FileCopyrightText: 2020-2021 Espressif Systems (Shanghai) CO LTD | ||||
|  * SPDX-FileCopyrightText: 2020-2024 Espressif Systems (Shanghai) CO LTD | ||||
|  * | ||||
|  * SPDX-License-Identifier: Apache-2.0 | ||||
|  */ | ||||
| @@ -15,23 +15,6 @@ | ||||
| extern "C" { | ||||
| #endif | ||||
|  | ||||
| /*------------------------------------------------------------------------------ | ||||
| * For those who use APB_SARADC periph | ||||
| *----------------------------------------------------------------------------*/ | ||||
| /** | ||||
|  * @brief Claim the usage of the APB_SARADC periph | ||||
|  * | ||||
|  * Reference count inside | ||||
|  */ | ||||
| void adc_apb_periph_claim(void); | ||||
|  | ||||
| /** | ||||
|  * @brief Free the usage of the APB_SARADC periph | ||||
|  * | ||||
|  * Reference count inside | ||||
|  */ | ||||
| void adc_apb_periph_free(void); | ||||
|  | ||||
| /*--------------------------------------------------------------- | ||||
|             ADC IOs | ||||
| ---------------------------------------------------------------*/ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Cao Sen Miao
					Cao Sen Miao