Skip to content

Commit 2017ed5

Browse files
feilongflcarlescufi
authored andcommitted
test: adc: add unit test for gd32a503v_eval
add unit test for gd32a503v_eval Signed-off-by: YuLong Yao <[email protected]>
1 parent 6a8a27e commit 2017ed5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/drivers/adc/adc_api/src/test_adc.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,15 @@
141141
#define ADC_ACQUISITION_TIME ADC_ACQ_TIME_DEFAULT
142142
#define ADC_1ST_CHANNEL_ID 3
143143

144+
#elif defined(CONFIG_BOARD_GD32A503V_EVAL)
145+
146+
#define ADC_DEVICE_NODE DT_INST(0, gd_gd32_adc)
147+
#define ADC_RESOLUTION 12
148+
#define ADC_GAIN ADC_GAIN_1
149+
#define ADC_REFERENCE ADC_REF_INTERNAL
150+
#define ADC_ACQUISITION_TIME ADC_ACQ_TIME_DEFAULT
151+
#define ADC_1ST_CHANNEL_ID 1
152+
144153
#elif defined(CONFIG_BOARD_HEXIWEAR_K64)
145154

146155
#define ADC_DEVICE_NODE DT_INST(0, nxp_kinetis_adc16)

0 commit comments

Comments
 (0)