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:
parent
9d3ff71ae5
commit
eac10ef384
1 changed files with 8 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue