Commit 984b2467 authored by Marek Matej's avatar Marek Matej Committed by Fabio Baltieri
Browse files

tests: dac: esp32: API test for CI



Add base DAC test used during CI.

Signed-off-by: default avatarMarek Matej <marek.matej@espressif.com>
parent 85b87959
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
/*
 * Copyright 2022 Espressif (Shanghai)
 *
 * SPDX-License-Identifier: Apache-2.0
 */

&dac {
	status = "okay";
};
+9 −0
Original line number Diff line number Diff line
/*
 * Copyright 2022 Espressif (Shanghai)
 *
 * SPDX-License-Identifier: Apache-2.0
 */

&dac {
	status = "okay";
};
+7 −0
Original line number Diff line number Diff line
@@ -60,6 +60,13 @@
#define DAC_RESOLUTION		12
#define DAC_CHANNEL_ID		0

#elif defined(CONFIG_BOARD_ESP32) || \
	defined(CONFIG_BOARD_ESP32S2_SAOLA)

#define DAC_DEVICE_NODE		DT_NODELABEL(dac)
#define DAC_RESOLUTION		12
#define DAC_CHANNEL_ID		0

#else
#error "Unsupported board."
#endif
+1 −0
Original line number Diff line number Diff line
@@ -9,4 +9,5 @@ tests:
      nucleo_f767zi nucleo_g071rb nucleo_g474re nucleo_h743zi nucleo_l073rz
      nucleo_l152re disco_l475_iot1 nucleo_l552ze_q stm32l562e_dk
      b_u585i_iot02a nucleo_wl55jc
      esp32 esp32s2_saola
    depends_on: dac