Kconfig.projbuild 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. menu "Example Configuration"
  2. choice EXAMPLE_DAC_CHANNEL
  3. bool "DAC Channel Num"
  4. default EXAMPLE_DAC_CHANNEL_1
  5. help
  6. Select DAC channel used by the wave generator.
  7. config EXAMPLE_DAC_CHANNEL_1
  8. bool "DAC Channel 1 (GPIO25)"
  9. config EXAMPLE_DAC_CHANNEL_2
  10. bool "DAC Channel 2 (GPIO26)"
  11. endchoice
  12. config EXAMPLE_DAC_CHANNEL
  13. int
  14. default 0 if EXAMPLE_DAC_CHANNEL_1
  15. default 1 if EXAMPLE_DAC_CHANNEL_2
  16. choice EXAMPLE_WAVEFORM
  17. bool "Waveform"
  18. default EXAMPLE_WAVEFORM_SINE
  19. help
  20. Select waveform
  21. config EXAMPLE_WAVEFORM_SINE
  22. bool "Sine selected"
  23. config EXAMPLE_WAVEFORM_TRIANGLE
  24. bool "Triangle selected"
  25. config EXAMPLE_WAVEFORM_SAWTOOTH
  26. bool "Sawtooth selected"
  27. config EXAMPLE_WAVEFORM_SQUARE
  28. bool "Square selected"
  29. endchoice
  30. choice EXAMPLE_WAVE_FREQUENCY
  31. bool "Wave frequency"
  32. default EXAMPLE_WAVE_FREQ_3000
  33. help
  34. Select output wave frequency.
  35. config EXAMPLE_WAVE_FREQ_1000
  36. bool "1000 Hz"
  37. config EXAMPLE_WAVE_FREQ_2000
  38. bool "2000 Hz"
  39. config EXAMPLE_WAVE_FREQ_3000
  40. bool "3000 Hz"
  41. config EXAMPLE_WAVE_FREQ_4000
  42. bool "4000 Hz"
  43. config EXAMPLE_WAVE_FREQ_5000
  44. bool "5000 Hz"
  45. config EXAMPLE_WAVE_FREQ_6000
  46. bool "6000 Hz"
  47. config EXAMPLE_WAVE_FREQ_7000
  48. bool "7000 Hz"
  49. config EXAMPLE_WAVE_FREQ_8000
  50. bool "8000 Hz"
  51. config EXAMPLE_WAVE_FREQ_9000
  52. bool "9000 Hz"
  53. config EXAMPLE_WAVE_FREQ_10000
  54. bool "10000 Hz"
  55. config EXAMPLE_WAVE_FREQ_11000
  56. bool "11000 Hz"
  57. config EXAMPLE_WAVE_FREQ_12000
  58. bool "12000 Hz"
  59. config EXAMPLE_WAVE_FREQ_13000
  60. bool "13000 Hz"
  61. config EXAMPLE_WAVE_FREQ_14000
  62. bool "14000 Hz"
  63. config EXAMPLE_WAVE_FREQ_15000
  64. bool "15000 Hz"
  65. config EXAMPLE_WAVE_FREQ_16000
  66. bool "16000 Hz"
  67. config EXAMPLE_WAVE_FREQ_17000
  68. bool "17000 Hz"
  69. endchoice
  70. config EXAMPLE_WAVE_FREQUENCY
  71. int
  72. default 1000 if EXAMPLE_WAVE_FREQ_1000
  73. default 2000 if EXAMPLE_WAVE_FREQ_2000
  74. default 3000 if EXAMPLE_WAVE_FREQ_3000
  75. default 4000 if EXAMPLE_WAVE_FREQ_4000
  76. default 5000 if EXAMPLE_WAVE_FREQ_5000
  77. default 6000 if EXAMPLE_WAVE_FREQ_6000
  78. default 7000 if EXAMPLE_WAVE_FREQ_7000
  79. default 8000 if EXAMPLE_WAVE_FREQ_8000
  80. default 9000 if EXAMPLE_WAVE_FREQ_9000
  81. default 10000 if EXAMPLE_WAVE_FREQ_10000
  82. default 11000 if EXAMPLE_WAVE_FREQ_11000
  83. default 12000 if EXAMPLE_WAVE_FREQ_12000
  84. default 13000 if EXAMPLE_WAVE_FREQ_13000
  85. default 14000 if EXAMPLE_WAVE_FREQ_14000
  86. default 15000 if EXAMPLE_WAVE_FREQ_15000
  87. default 16000 if EXAMPLE_WAVE_FREQ_16000
  88. default 17000 if EXAMPLE_WAVE_FREQ_17000
  89. config EXAMPLE_LOG_VOLTAGE
  90. bool "Enable output voltage log"
  91. default n
  92. help
  93. If enabled, the output voltage(in mV) will show in log.
  94. endmenu