esp-idf/examples/peripherals/analog_comparator/main/Kconfig.projbuild

44 lines
1.6 KiB
Plaintext
Raw Normal View History

menu "Analog Comparator Example Configuration"
choice EXAMPLE_REALIZATION
prompt "Analog Comparator example realization methods"
default EXAMPLE_USE_ETM if SOC_ANA_CMPR_SUPPORT_ETM && SOC_GPIO_SUPPORT_ETM
default EXAMPLE_USE_INTR if !SOC_ANA_CMPR_SUPPORT_ETM || !SOC_GPIO_SUPPORT_ETM
config EXAMPLE_USE_INTR
bool "Use Interrupt"
help
Enable to set the monitor GPIO via interrupt callback
config EXAMPLE_USE_ETM
depends on SOC_ANA_CMPR_SUPPORT_ETM && SOC_GPIO_SUPPORT_ETM
bool "Use ETM"
help
Enable to set the monitor GPIO via Event Task Matrix
endchoice
choice EXAMPLE_REFERENCE_SOURCE
prompt "Analog Comparator reference source"
default EXAMPLE_INTERNAL_REF
help
Decide the reference signal comes from internal or external
config EXAMPLE_INTERNAL_REF
bool "Internal reference"
help
The source signal will refer to an internal voltage, which related to VDD.
config EXAMPLE_EXTERNAL_REF
bool "External reference"
help
The source signal will refer to the external signal on a specific GPIO.
endchoice
config EXAMPLE_HYSTERESIS_COMPARATOR
depends on EXAMPLE_INTERNAL_REF && !EXAMPLE_USE_ETM
bool "Enable hysteresis comparator"
default n
help
The internal reference voltage will be set to 30% VDD and 70% VDD alternately
every time the interrupt triggered.
endmenu