]> granicus.if.org Git - esp-idf/commitdiff
Rename Kconfig options (components/driver)
authorRoland Dobai <dobai.roland@gmail.com>
Mon, 29 Apr 2019 12:22:57 +0000 (14:22 +0200)
committerRoland Dobai <dobai.roland@gmail.com>
Tue, 21 May 2019 07:09:01 +0000 (09:09 +0200)
components/driver/Kconfig
components/driver/rtc_module.c
components/driver/sdkconfig.rename [new file with mode: 0644]
tools/ldgen/samples/sdkconfig
tools/unit-test-app/sdkconfig.defaults

index f00d7e8099056bfe38eb2b5ce4a8e130560e934e..497b1a92836b5d1ea509172b8ba0cb8739321267 100644 (file)
@@ -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.
index 12afe08ae6bde9865260b857af8a3449279b8b0b..296c183c77b8634b542322f2e6b7d25a0ff00dc2 100644 (file)
@@ -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 (file)
index 0000000..311467d
--- /dev/null
@@ -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
index d9582a84c1ae17d5712af6ddeebc0ba25abd856f..7903bc73f497e753cf893f7264be068779202411 100644 (file)
@@ -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
index 371c08bb03f919e9864936c158f5f0f7babf638b..0289c96f494cab6b05af3adc7cc800e72c18ba82 100644 (file)
@@ -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