tests: drivers: adc testing the adc_api on stm32u585 disco board

This PR configures the test case to run the adc_api on the
b_u585i_iot02a disco board from STMicroelectonics.
Channel 15 is choosen

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2021-10-06 10:13:19 +02:00 committed by Maureen Helm
commit eac10ef384

View file

@ -226,6 +226,14 @@
#define ADC_ACQUISITION_TIME ADC_ACQ_TIME_DEFAULT
#define ADC_1ST_CHANNEL_ID 5
#elif defined(CONFIG_BOARD_B_U585I_IOT02A)
#define ADC_DEVICE_NAME DT_LABEL(DT_INST(0, st_stm32_adc))
#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_1ST_CHANNEL_ID 15
#elif defined(CONFIG_BOARD_NUCLEO_H743ZI) || \
defined(CONFIG_BOARD_NUCLEO_H753ZI)
#define ADC_DEVICE_NAME DT_LABEL(DT_INST(0, st_stm32_adc))