2017-09-13 10:33:05 +00:00
|
|
|
menu "Example Configuration"
|
|
|
|
|
2019-05-09 14:43:06 +00:00
|
|
|
choice EXAMPLE_ADC2_CHANNEL
|
2019-01-25 16:10:53 +00:00
|
|
|
bool "ADC2 Channel Num"
|
2019-05-09 14:43:06 +00:00
|
|
|
default EXAMPLE_ADC2_CHANNEL_7
|
2019-01-25 16:10:53 +00:00
|
|
|
help
|
|
|
|
The channel of ADC2 used in this example.
|
2017-09-13 10:33:05 +00:00
|
|
|
|
2019-05-09 14:43:06 +00:00
|
|
|
config EXAMPLE_ADC2_CHANNEL_0
|
2019-01-25 16:10:53 +00:00
|
|
|
bool "ADC2 Channel 0 (GPIO 4)"
|
2019-05-09 14:43:06 +00:00
|
|
|
config EXAMPLE_ADC2_CHANNEL_1
|
2019-01-25 16:10:53 +00:00
|
|
|
bool "ADC2 Channel 1 (GPIO 0)"
|
2019-05-09 14:43:06 +00:00
|
|
|
config EXAMPLE_ADC2_CHANNEL_2
|
2019-01-25 16:10:53 +00:00
|
|
|
bool "ADC2 Channel 2 (GPIO 2)"
|
2019-05-09 14:43:06 +00:00
|
|
|
config EXAMPLE_ADC2_CHANNEL_3
|
2019-01-25 16:10:53 +00:00
|
|
|
bool "ADC2 Channel 3 (GPIO 15)"
|
2019-05-09 14:43:06 +00:00
|
|
|
config EXAMPLE_ADC2_CHANNEL_4
|
2019-01-25 16:10:53 +00:00
|
|
|
bool "ADC2 Channel 4 (GPIO 13)"
|
2019-05-09 14:43:06 +00:00
|
|
|
config EXAMPLE_ADC2_CHANNEL_5
|
2019-01-25 16:10:53 +00:00
|
|
|
bool "ADC2 Channel 5 (GPIO 12)"
|
2019-05-09 14:43:06 +00:00
|
|
|
config EXAMPLE_ADC2_CHANNEL_6
|
2019-01-25 16:10:53 +00:00
|
|
|
bool "ADC2 Channel 6 (GPIO 14)"
|
2019-05-09 14:43:06 +00:00
|
|
|
config EXAMPLE_ADC2_CHANNEL_7
|
2019-01-25 16:10:53 +00:00
|
|
|
bool "ADC2 Channel 7 (GPIO 27)"
|
2019-05-09 14:43:06 +00:00
|
|
|
config EXAMPLE_ADC2_CHANNEL_8
|
2019-01-25 16:10:53 +00:00
|
|
|
bool "ADC2 Channel 8 (GPIO 25)"
|
2019-05-09 14:43:06 +00:00
|
|
|
config EXAMPLE_ADC2_CHANNEL_9
|
2019-01-25 16:10:53 +00:00
|
|
|
bool "ADC2 Channel 9 (GPIO 26)"
|
|
|
|
endchoice
|
2017-09-13 10:33:05 +00:00
|
|
|
|
2019-05-09 14:43:06 +00:00
|
|
|
config EXAMPLE_ADC2_CHANNEL
|
2019-01-25 16:10:53 +00:00
|
|
|
int
|
2019-05-09 14:43:06 +00:00
|
|
|
default 0 if EXAMPLE_ADC2_CHANNEL_0
|
|
|
|
default 1 if EXAMPLE_ADC2_CHANNEL_1
|
|
|
|
default 2 if EXAMPLE_ADC2_CHANNEL_2
|
|
|
|
default 3 if EXAMPLE_ADC2_CHANNEL_3
|
|
|
|
default 4 if EXAMPLE_ADC2_CHANNEL_4
|
|
|
|
default 5 if EXAMPLE_ADC2_CHANNEL_5
|
|
|
|
default 6 if EXAMPLE_ADC2_CHANNEL_6
|
|
|
|
default 7 if EXAMPLE_ADC2_CHANNEL_7
|
|
|
|
default 8 if EXAMPLE_ADC2_CHANNEL_8
|
|
|
|
default 9 if EXAMPLE_ADC2_CHANNEL_9
|
2017-09-13 10:33:05 +00:00
|
|
|
|
2019-05-09 14:43:06 +00:00
|
|
|
choice EXAMPLE_DAC_CHANNEL
|
2019-01-25 16:10:53 +00:00
|
|
|
bool "DAC Channel Num"
|
2019-05-09 14:43:06 +00:00
|
|
|
default EXAMPLE_DAC_CHANNEL_1
|
2019-01-25 16:10:53 +00:00
|
|
|
help
|
|
|
|
The channel of DAC used in this example.
|
2017-09-13 10:33:05 +00:00
|
|
|
|
2019-05-09 14:43:06 +00:00
|
|
|
config EXAMPLE_DAC_CHANNEL_1
|
2019-01-25 16:10:53 +00:00
|
|
|
bool "DAC Channel 1 (GPIO25)"
|
2019-05-09 14:43:06 +00:00
|
|
|
config EXAMPLE_DAC_CHANNEL_2
|
2019-01-25 16:10:53 +00:00
|
|
|
bool "DAC Channel 2 (GPIO26)"
|
|
|
|
endchoice
|
2017-09-13 10:33:05 +00:00
|
|
|
|
2019-05-09 14:43:06 +00:00
|
|
|
config EXAMPLE_DAC_CHANNEL
|
2019-01-25 16:10:53 +00:00
|
|
|
int
|
2019-05-09 14:43:06 +00:00
|
|
|
default 1 if EXAMPLE_DAC_CHANNEL_1
|
|
|
|
default 2 if EXAMPLE_DAC_CHANNEL_2
|
2017-09-13 10:33:05 +00:00
|
|
|
|
|
|
|
endmenu
|