tests: drivers: dac_api: add frdm_k64f board support

Add support for running the DAC API test case on the NXP FRDM-K64F
development board.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
This commit is contained in:
Henrik Brix Andersen 2020-02-17 21:43:31 +01:00 committed by Maureen Helm
parent c517bcd40d
commit 20f941e556
2 changed files with 7 additions and 1 deletions

View file

@ -28,6 +28,12 @@
#define DAC_RESOLUTION 12
#define DAC_CHANNEL_ID 0
#elif defined(CONFIG_BOARD_FRDM_K64F)
#define DAC_DEVICE_NAME DT_LABEL(DT_NODELABEL(dac0))
#define DAC_RESOLUTION 12
#define DAC_CHANNEL_ID 0
#else
#error "Unsupported board."
#endif

View file

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