Kconfig.projbuild 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. menu "Analog Comparator Example Configuration"
  2. choice EXAMPLE_REALIZATION
  3. prompt "Analog Comparator example realization methods"
  4. default EXAMPLE_USE_ETM if SOC_ANA_CMPR_SUPPORT_ETM && SOC_GPIO_SUPPORT_ETM
  5. default EXAMPLE_USE_INTR if !SOC_ANA_CMPR_SUPPORT_ETM || !SOC_GPIO_SUPPORT_ETM
  6. config EXAMPLE_USE_INTR
  7. bool "Use Interrupt"
  8. help
  9. Enable to set the monitor GPIO via interrupt callback
  10. config EXAMPLE_USE_ETM
  11. depends on SOC_ANA_CMPR_SUPPORT_ETM && SOC_GPIO_SUPPORT_ETM
  12. bool "Use ETM"
  13. help
  14. Enable to set the monitor GPIO via Event Task Matrix
  15. endchoice
  16. choice EXAMPLE_REFERENCE_SOURCE
  17. prompt "Analog Comparator reference source"
  18. default EXAMPLE_INTERNAL_REF
  19. help
  20. Decide the reference signal comes from internal or external
  21. config EXAMPLE_INTERNAL_REF
  22. bool "Internal reference"
  23. help
  24. The source signal will refer to an internal voltage, which related to VDD.
  25. config EXAMPLE_EXTERNAL_REF
  26. bool "External reference"
  27. help
  28. The source signal will refer to the external signal on a specific GPIO.
  29. endchoice
  30. config EXAMPLE_HYSTERESIS_COMPARATOR
  31. depends on EXAMPLE_INTERNAL_REF && !EXAMPLE_USE_ETM
  32. bool "Enable hysteresis comparator"
  33. default n
  34. help
  35. The internal reference voltage will be set to 30% VDD and 70% VDD alternately
  36. every time the interrupt triggered.
  37. endmenu