Skip to content

Commit 29047f1

Browse files
petejohansoncarlescufi
authored andcommitted
drivers: adc: Fix ADC tests for new RP2040 board.
Fix ADC tests now that we have more than one RP2040 board. Signed-off-by: Peter Johanson <[email protected]>
1 parent 52b5ad0 commit 29047f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/drivers/adc/adc_api/src/test_adc.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,8 @@
354354
#define ADC_1ST_CHANNEL_ID 0
355355
#define ADC_2ND_CHANNEL_ID 1
356356

357-
#elif defined(CONFIG_BOARD_RPI_PICO)
357+
#elif defined(CONFIG_BOARD_RPI_PICO) || \
358+
defined(CONFIG_BOARD_ADAFRUIT_KB2040)
358359
#define ADC_DEVICE_NODE DT_INST(0, raspberrypi_pico_adc)
359360
#define ADC_RESOLUTION 12
360361
#define ADC_GAIN ADC_GAIN_1

0 commit comments

Comments
 (0)