tests: drivers: adc: Add support to samv71 soc
Add sam_v71_xult board conf to enable adc driver tests for samv71 soc. Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
parent
c8696293a9
commit
62cda9532c
2 changed files with 5 additions and 1 deletions
3
tests/drivers/adc/adc_api/boards/sam_v71_xult.conf
Normal file
3
tests/drivers/adc/adc_api/boards/sam_v71_xult.conf
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
CONFIG_ADC=y
|
||||||
|
CONFIG_ADC_SAM_AFEC=y
|
||||||
|
CONFIG_ADC_0=y
|
|
@ -105,7 +105,8 @@
|
||||||
#define ADC_ACQUISITION_TIME ADC_ACQ_TIME_DEFAULT
|
#define ADC_ACQUISITION_TIME ADC_ACQ_TIME_DEFAULT
|
||||||
#define ADC_1ST_CHANNEL_ID 1
|
#define ADC_1ST_CHANNEL_ID 1
|
||||||
|
|
||||||
#elif defined(CONFIG_BOARD_SAM_E70_XPLAINED)
|
#elif defined(CONFIG_BOARD_SAM_E70_XPLAINED) || \
|
||||||
|
defined(CONFIG_BOARD_SAM_V71_XULT)
|
||||||
|
|
||||||
#define ADC_DEVICE_NAME DT_ADC_0_NAME
|
#define ADC_DEVICE_NAME DT_ADC_0_NAME
|
||||||
#define ADC_RESOLUTION 12
|
#define ADC_RESOLUTION 12
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue