tests: drivers: dac: Add Nucleo-L152RE board

Enable DAC tests for Nucleo-L152RE board.

Signed-off-by: Ilya Tagunov <tagunil@gmail.com>
This commit is contained in:
Ilya Tagunov 2020-05-08 01:56:04 +03:00 committed by Carles Cufí
commit 02d673c564
4 changed files with 6 additions and 4 deletions

View file

@ -16,7 +16,8 @@
#include <zephyr.h>
#include <ztest.h>
#if defined(CONFIG_BOARD_NUCLEO_L073RZ)
#if defined(CONFIG_BOARD_NUCLEO_L073RZ) || \
defined(CONFIG_BOARD_NUCLEO_L152RE)
#define DAC_DEVICE_NAME DT_LABEL(DT_ALIAS(dac1))
#define DAC_CHANNEL_ID 1

View file

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

View file

@ -26,7 +26,8 @@
* point is at half of the full scale voltage.
*/
#if defined(CONFIG_BOARD_NUCLEO_L073RZ)
#if defined(CONFIG_BOARD_NUCLEO_L073RZ) || \
defined(CONFIG_BOARD_NUCLEO_L152RE)
/*
* DAC output on PA4 (Arduino A2 pin of Nucleo board)

View file

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