tests: drivers: dac_loopback: add twr_ke18f board support

Add support for running the DAC loopback test case on the NXP
TWR-KE18F development board.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
This commit is contained in:
Henrik Brix Andersen 2020-02-17 21:40:54 +01:00 committed by Maureen Helm
parent 6fecee6229
commit e53ae4d41a
2 changed files with 16 additions and 1 deletions

View file

@ -44,6 +44,21 @@
#define ADC_REFERENCE ADC_REF_INTERNAL
#define ADC_ACQUISITION_TIME ADC_ACQ_TIME_DEFAULT
#elif defined(CONFIG_BOARD_TWR_KE18F)
/* DAC0 output on PTE9, ADC input read from ADC0_SE12 */
#define DAC_DEVICE_NAME DT_LABEL(DT_NODELABEL(dac0))
#define DAC_RESOLUTION 12
#define DAC_CHANNEL_ID 0
#define ADC_DEVICE_NAME DT_LABEL(DT_NODELABEL(adc0))
#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_CHANNEL_ID 12
#else
#error "Unsupported board."
#endif

View file

@ -2,5 +2,5 @@ common:
tags: dac drivers userspace
tests:
drivers.dac:
platform_whitelist: nucleo_l073rz
platform_whitelist: nucleo_l073rz twr_ke18f
depends_on: dac