diff --git a/components/driver/Kconfig b/components/driver/Kconfig index f00d7e80990..497b1a92836 100644 --- a/components/driver/Kconfig +++ b/components/driver/Kconfig @@ -10,11 +10,11 @@ menu "Driver configurations" be shut off when it is not working leading to lower power consumption. However using the FSM control ADC power will increase the noise of ADC. - config ADC2_DISABLE_DAC + config ADC_DISABLE_DAC bool "Disable DAC when ADC2 is used on GPIO 25 and 26" default y help - If this is set, the ADC2 driver will disables the output of the DAC corresponding to the specified + If this is set, the ADC2 driver will disable the output of the DAC corresponding to the specified channel. This is the default value. For testing, disable this option so that we can measure the output of DAC by internal ADC. diff --git a/components/driver/rtc_module.c b/components/driver/rtc_module.c index 12afe08ae6b..296c183c77b 100644 --- a/components/driver/rtc_module.c +++ b/components/driver/rtc_module.c @@ -1706,7 +1706,7 @@ esp_err_t adc2_get_raw(adc2_channel_t channel, adc_bits_width_t width_bit, int* } //disable other peripherals -#ifdef CONFIG_ADC2_DISABLE_DAC +#ifdef CONFIG_ADC_DISABLE_DAC adc2_dac_disable( channel ); #endif // set controller diff --git a/components/driver/sdkconfig.rename b/components/driver/sdkconfig.rename new file mode 100644 index 00000000000..311467d0129 --- /dev/null +++ b/components/driver/sdkconfig.rename @@ -0,0 +1,4 @@ +# sdkconfig replacement configurations for deprecated options formatted as +# CONFIG_DEPRECATED_OPTION CONFIG_NEW_OPTION + +CONFIG_ADC2_DISABLE_DAC CONFIG_ADC_DISABLE_DAC diff --git a/tools/ldgen/samples/sdkconfig b/tools/ldgen/samples/sdkconfig index d9582a84c1a..7903bc73f49 100644 --- a/tools/ldgen/samples/sdkconfig +++ b/tools/ldgen/samples/sdkconfig @@ -125,7 +125,7 @@ CONFIG_BT_RESERVE_DRAM=0 # ADC configuration # CONFIG_ADC_FORCE_XPD_FSM= -CONFIG_ADC2_DISABLE_DAC=y +CONFIG_ADC_DISABLE_DAC=y # # ESP32-specific diff --git a/tools/unit-test-app/sdkconfig.defaults b/tools/unit-test-app/sdkconfig.defaults index 371c08bb03f..0289c96f494 100644 --- a/tools/unit-test-app/sdkconfig.defaults +++ b/tools/unit-test-app/sdkconfig.defaults @@ -25,7 +25,7 @@ CONFIG_COMPILER_STACK_CHECK_MODE_STRONG=y CONFIG_COMPILER_STACK_CHECK=y CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION=y CONFIG_ESP_TIMER_PROFILING=y -CONFIG_ADC2_DISABLE_DAC=n +CONFIG_ADC_DISABLE_DAC=n CONFIG_COMPILER_WARN_WRITE_STRINGS=y CONFIG_SPI_MASTER_IN_IRAM=y CONFIG_EFUSE_VIRTUAL=y