Skip to content

Commit

Permalink
boards: Adc VREF periph control by KCONFIG
Browse files Browse the repository at this point in the history
  • Loading branch information
CW-75 committed Jul 1, 2022
1 parent 7b6a959 commit 00d24e6
Show file tree
Hide file tree
Showing 3 changed files with 143 additions and 103 deletions.
18 changes: 18 additions & 0 deletions boards/m4a-24g/Kconfig.periph
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
choice
prompt "ADC_VREF"

config ADC_VREF_DEFAULT
bool "Default ADC Reference Voltage - 1V"

config ADC_VREF_INTVCC0
bool "ADC Reference Voltage - 1/1.48 VDDANA"

config ADC_VREF_INTVCC1
bool "ADC Reference Voltage - 1/2 VDDANA"

config ADC_VREF_EXT1
bool "External Voltage ADC ref 1"

config ADC_VREF_EXT2
bool "External Voltage ADC ref 2"
endchoice
Loading

0 comments on commit 00d24e6

Please sign in to comment.