Skip to content
Permalink
Browse files

tests: drivers: adc_api: add support for the twr_ke18f board

Add ADC configuration for the NXP TWR-KE18F development board.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
  • Loading branch information...
henrikbrixandersen authored and MaureenHelm committed Jun 5, 2019
1 parent ac42942 commit 98627ccc201a27ef2e4f0ab687428639972f41d4
Showing with 9 additions and 0 deletions.
  1. +9 −0 tests/drivers/adc/adc_api/src/test_adc.c
@@ -161,6 +161,15 @@
#define ADC_ACQUISITION_TIME ADC_ACQ_TIME_DEFAULT
#define ADC_1ST_CHANNEL_ID 1

#elif defined(CONFIG_BOARD_TWR_KE18F)
#define ADC_DEVICE_NAME DT_ADC_0_NAME
#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

#else
#error "Unsupported board."
#endif

0 comments on commit 98627cc

Please sign in to comment.
You can’t perform that action at this time.