fix(kconfig): fixed peripheral driver kconfig inconsistencies

This commit is contained in:
laokaiyao 2024-06-01 01:07:41 +08:00
parent 2324dbdcae
commit db77f66721
6 changed files with 55 additions and 38 deletions

View File

@ -63,6 +63,17 @@ menu "Driver Configurations"
endmenu # Legacy ADC Calibration Configuration endmenu # Legacy ADC Calibration Configuration
endmenu # Legacy ADC Driver Configuration endmenu # Legacy ADC Driver Configuration
menu "Legacy DAC Driver Configurations"
depends on SOC_DAC_SUPPORTED
config DAC_SUPPRESS_DEPRECATE_WARN
bool "Suppress legacy driver deprecated warning"
default n
help
Whether to suppress the deprecation warnings when using legacy dac driver (driver/dac.h).
If you want to continue using the legacy driver, and don't want to see related deprecation warnings,
you can enable this option.
endmenu # Legacy DAC Driver Configurations
menu "Legacy MCPWM Driver Configurations" menu "Legacy MCPWM Driver Configurations"
depends on SOC_MCPWM_SUPPORTED depends on SOC_MCPWM_SUPPORTED
config MCPWM_SUPPRESS_DEPRECATE_WARN config MCPWM_SUPPRESS_DEPRECATE_WARN
@ -97,4 +108,48 @@ menu "Driver Configurations"
you can enable this option. you can enable this option.
endmenu # Legacy RMT Driver Configurations endmenu # Legacy RMT Driver Configurations
menu "Legacy I2S Driver Configurations"
depends on SOC_I2S_SUPPORTED
config I2S_SUPPRESS_DEPRECATE_WARN
bool "Suppress legacy driver deprecated warning"
default n
help
Whether to suppress the deprecation warnings when using legacy i2s driver (driver/i2s.h).
If you want to continue using the legacy driver, and don't want to see related deprecation warnings,
you can enable this option.
endmenu # Legacy I2S Driver Configurationss
menu "Legacy PCNT Driver Configurations"
depends on SOC_PCNT_SUPPORTED
config PCNT_SUPPRESS_DEPRECATE_WARN
bool "Suppress legacy driver deprecated warning"
default n
help
whether to suppress the deprecation warnings when using legacy PCNT driver (driver/pcnt.h).
If you want to continue using the legacy driver, and don't want to see related deprecation warnings,
you can enable this option.
endmenu # Legacy PCNT Driver Configurationss
menu "Legacy SDM Driver Configurations"
depends on SOC_SDM_SUPPORTED
config SDM_SUPPRESS_DEPRECATE_WARN
bool "Suppress legacy driver deprecated warning"
default n
help
whether to suppress the deprecation warnings when using legacy SDM driver (driver/sigmadelta.h).
If you want to continue using the legacy driver, and don't want to see related deprecation warnings,
you can enable this option.
endmenu # Legacy SDM Driver Configurationss
menu "Legacy Temperature Sensor Driver Configurations"
depends on SOC_TEMP_SENSOR_SUPPORTED
config TEMP_SENSOR_SUPPRESS_DEPRECATE_WARN
bool "Suppress legacy driver deprecated warning"
default n
help
whether to suppress the deprecation warnings when using legacy temperature sensor driver
(driver/temp_sensor.h). If you want to continue using the legacy driver,
and don't want to see related deprecation warnings, you can enable this option.
endmenu # Legacy Temperature Sensor Driver Configurationss
endmenu # Driver configurations endmenu # Driver configurations

View File

@ -15,14 +15,6 @@ menu "ESP-Driver:DAC Configurations"
Ensure the DAC interrupt is IRAM-Safe by allowing the interrupt handler to be Ensure the DAC interrupt is IRAM-Safe by allowing the interrupt handler to be
executable when the cache is disabled (e.g. SPI Flash write). executable when the cache is disabled (e.g. SPI Flash write).
config DAC_SUPPRESS_DEPRECATE_WARN
bool "Suppress legacy driver deprecated warning"
default n
help
whether to suppress the deprecation warnings when using legacy DAC driver (driver/dac.h).
If you want to continue using the legacy driver, and don't want to see related deprecation warnings,
you can enable this option.
config DAC_ENABLE_DEBUG_LOG config DAC_ENABLE_DEBUG_LOG
bool "Enable debug log" bool "Enable debug log"
default n default n

View File

@ -7,12 +7,6 @@ menu "ESP-Driver:I2S Configurations"
Ensure the I2S interrupt is IRAM-Safe by allowing the interrupt handler to be Ensure the I2S interrupt is IRAM-Safe by allowing the interrupt handler to be
executable when the cache is disabled (e.g. SPI Flash write). executable when the cache is disabled (e.g. SPI Flash write).
config I2S_SUPPRESS_DEPRECATE_WARN
bool "Suppress legacy driver deprecated warning"
default n
help
Enable this option will suppress the deprecation warnings of using APIs in legacy I2S driver.
config I2S_ENABLE_DEBUG_LOG config I2S_ENABLE_DEBUG_LOG
bool "Enable I2S debug log" bool "Enable I2S debug log"
default n default n

View File

@ -15,14 +15,6 @@ menu "ESP-Driver:PCNT Configurations"
Ensure the PCNT interrupt is IRAM-Safe by allowing the interrupt handler to be Ensure the PCNT interrupt is IRAM-Safe by allowing the interrupt handler to be
executable when the cache is disabled (e.g. SPI Flash write). executable when the cache is disabled (e.g. SPI Flash write).
config PCNT_SUPPRESS_DEPRECATE_WARN
bool "Suppress legacy driver deprecated warning"
default n
help
whether to suppress the deprecation warnings when using legacy PCNT driver (driver/pcnt.h).
If you want to continue using the legacy driver, and don't want to see related deprecation warnings,
you can enable this option.
config PCNT_ENABLE_DEBUG_LOG config PCNT_ENABLE_DEBUG_LOG
bool "Enable debug log" bool "Enable debug log"
default n default n

View File

@ -8,14 +8,6 @@ menu "ESP-Driver:Sigma Delta Modulator Configurations"
so that these functions can be IRAM-safe and able to be called in the other IRAM interrupt context. so that these functions can be IRAM-safe and able to be called in the other IRAM interrupt context.
Enabling this option can improve driver performance as well. Enabling this option can improve driver performance as well.
config SDM_SUPPRESS_DEPRECATE_WARN
bool "Suppress legacy driver deprecated warning"
default n
help
whether to suppress the deprecation warnings when using legacy sigma delta driver.
If you want to continue using the legacy driver, and don't want to see related deprecation warnings,
you can enable this option.
config SDM_ENABLE_DEBUG_LOG config SDM_ENABLE_DEBUG_LOG
bool "Enable debug log" bool "Enable debug log"
default n default n

View File

@ -1,14 +1,6 @@
menu "ESP-Driver:Temperature Sensor Configurations" menu "ESP-Driver:Temperature Sensor Configurations"
depends on SOC_TEMP_SENSOR_SUPPORTED depends on SOC_TEMP_SENSOR_SUPPORTED
config TEMP_SENSOR_SUPPRESS_DEPRECATE_WARN
bool "Suppress legacy driver deprecated warning"
default n
help
whether to suppress the deprecation warnings when using legacy temperature sensor driver
(driver/temp_sensor.h). If you want to continue using the legacy driver,
and don't want to see related deprecation warnings, you can enable this option.
config TEMP_SENSOR_ENABLE_DEBUG_LOG config TEMP_SENSOR_ENABLE_DEBUG_LOG
bool "Enable debug log" bool "Enable debug log"
default n default n