2023-03-06 23:09:07 -05:00
|
|
|
menu "Analog Comparator Example Configuration"
|
|
|
|
|
2023-07-30 22:43:54 -04:00
|
|
|
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
|
|
|
|
|
2023-03-06 23:09:07 -05:00
|
|
|
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
|
2023-07-30 22:43:54 -04:00
|
|
|
depends on EXAMPLE_INTERNAL_REF && !EXAMPLE_USE_ETM
|
2023-03-06 23:09:07 -05:00
|
|
|
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
|