tests: drivers: adc: Add support for rpi_pico
Add support for rpi_pico board to adc_api test. At this time, twister couldn't with rpi_pico board, Test it built with west and checked the console output. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
This commit is contained in:
parent
43d8ea1ae6
commit
32735c992a
|
@ -353,6 +353,15 @@
|
|||
#define ADC_1ST_CHANNEL_ID 0
|
||||
#define ADC_2ND_CHANNEL_ID 1
|
||||
|
||||
#elif defined(CONFIG_BOARD_RPI_PICO)
|
||||
#define ADC_DEVICE_NODE DT_INST(0, raspberrypi_pico_adc)
|
||||
#define ADC_RESOLUTION 12
|
||||
#define ADC_GAIN ADC_GAIN_1
|
||||
#define ADC_REFERENCE ADC_REF_INTERNAL
|
||||
#define ADC_ACQUISITION_TIME ADC_ACQ_TIME_DEFAULT
|
||||
#define ADC_1ST_CHANNEL_ID 0
|
||||
#define ADC_2ND_CHANNEL_ID 1
|
||||
|
||||
#elif defined(CONFIG_BOARD_NATIVE_POSIX)
|
||||
#define ADC_DEVICE_NODE DT_INST(0, zephyr_adc_emul)
|
||||
#define ADC_RESOLUTION 10
|
||||
|
|
Loading…
Reference in a new issue