tests: drivers: dac_api: build for all tagged boards
The platform_allow selector is deleted, such that CI is run for all boards tagged with dac support. The board-specific defines had to be fixed/amended. Signed-off-by: Martin Jäger <martin@libre.solar>
This commit is contained in:
parent
afa5d5d363
commit
a7791270e5
|
@ -16,6 +16,7 @@
|
|||
defined(CONFIG_BOARD_NUCLEO_F746ZG) || \
|
||||
defined(CONFIG_BOARD_NUCLEO_F767ZI) || \
|
||||
defined(CONFIG_BOARD_NUCLEO_G071RB) || \
|
||||
defined(CONFIG_BOARD_NUCLEO_G431RB) || \
|
||||
defined(CONFIG_BOARD_NUCLEO_G474RE) || \
|
||||
defined(CONFIG_BOARD_NUCLEO_H743ZI) || \
|
||||
defined(CONFIG_BOARD_NUCLEO_L073RZ) || \
|
||||
|
@ -24,6 +25,7 @@
|
|||
defined(CONFIG_BOARD_NUCLEO_L552ZE_Q) || \
|
||||
defined(CONFIG_BOARD_STM32L562E_DK) || \
|
||||
defined(CONFIG_BOARD_B_U585I_IOT02A) || \
|
||||
defined(CONFIG_BOARD_NUCLEO_U575ZI_Q) || \
|
||||
defined(CONFIG_BOARD_NUCLEO_WL55JC) || \
|
||||
defined(CONFIG_BOARD_RONOTH_LODEV)
|
||||
|
||||
|
@ -31,19 +33,11 @@
|
|||
#define DAC_CHANNEL_ID 1
|
||||
#define DAC_RESOLUTION 12
|
||||
|
||||
#elif defined(CONFIG_BOARD_TWR_KE18F)
|
||||
|
||||
#define DAC_DEVICE_NODE DT_NODELABEL(dac0)
|
||||
#define DAC_RESOLUTION 12
|
||||
#define DAC_CHANNEL_ID 0
|
||||
|
||||
#elif defined(CONFIG_BOARD_FRDM_K64F)
|
||||
|
||||
#define DAC_DEVICE_NODE DT_NODELABEL(dac0)
|
||||
#define DAC_RESOLUTION 12
|
||||
#define DAC_CHANNEL_ID 0
|
||||
|
||||
#elif defined(CONFIG_BOARD_FRDM_K22F)
|
||||
#elif defined(CONFIG_BOARD_TWR_KE18F) || \
|
||||
defined(CONFIG_BOARD_FRDM_K64F) || \
|
||||
defined(CONFIG_BOARD_FRDM_K22F) || \
|
||||
defined(CONFIG_BOARD_ARDUINO_MKRZERO) || \
|
||||
defined(CONFIG_BOARD_ARDUINO_ZERO)
|
||||
|
||||
#define DAC_DEVICE_NODE DT_NODELABEL(dac0)
|
||||
#define DAC_RESOLUTION 12
|
||||
|
@ -61,12 +55,24 @@
|
|||
#define DAC_CHANNEL_ID 0
|
||||
|
||||
#elif defined(CONFIG_BOARD_ESP32) || \
|
||||
defined(CONFIG_BOARD_ESP32S2_SAOLA)
|
||||
defined(CONFIG_BOARD_ESP32S2_SAOLA) || \
|
||||
defined(CONFIG_BOARD_GD32A503V_EVAL) || \
|
||||
defined(CONFIG_BOARD_GD32E103V_EVAL) || \
|
||||
defined(CONFIG_BOARD_GD32F450I_EVAL) || \
|
||||
defined(CONFIG_BOARD_GD32F450Z_EVAL) || \
|
||||
defined(CONFIG_BOARD_GD32F470I_EVAL)
|
||||
|
||||
#define DAC_DEVICE_NODE DT_NODELABEL(dac)
|
||||
#define DAC_RESOLUTION 12
|
||||
#define DAC_CHANNEL_ID 0
|
||||
|
||||
#elif defined(CONFIG_BOARD_SAM_E70_XPLAINED) || \
|
||||
defined(CONFIG_BOARD_SAM_V71_XULT)
|
||||
|
||||
#define DAC_DEVICE_NODE DT_NODELABEL(dacc)
|
||||
#define DAC_RESOLUTION 12
|
||||
#define DAC_CHANNEL_ID 0
|
||||
|
||||
#else
|
||||
#error "Unsupported board."
|
||||
#endif
|
||||
|
|
|
@ -2,12 +2,4 @@ common:
|
|||
tags: dac drivers userspace
|
||||
tests:
|
||||
drivers.dac.api:
|
||||
platform_allow:
|
||||
frdm_k22f frdm_k64f twr_ke18f
|
||||
bl652_dvk bl653_dvk bl654_dvk bl5340_dvk_cpuapp
|
||||
nucleo_f091rc nucleo_f207zg stm32f3_disco nucleo_f429zi nucleo_f746zg
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue