Skip to content

Commit 83da959

Browse files
talih0carlescufi
authored andcommitted
tests: adc_api: Add xmc45_relax_kit config
Adds xmc45_relax_kit configuration. Signed-off-by: Andriy Gelman <[email protected]>
1 parent 2d3493b commit 83da959

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
&adc0 {
2+
status = "okay";
3+
};

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,16 @@
384384
#define ADC_1ST_CHANNEL_ID 0
385385
#define ADC_2ND_CHANNEL_ID 1
386386

387+
#elif defined(CONFIG_BOARD_XMC45_RELAX_KIT)
388+
389+
#define ADC_DEVICE_NODE DT_INST(0, infineon_xmc4xxx_adc)
390+
#define ADC_RESOLUTION 12
391+
#define ADC_GAIN ADC_GAIN_1
392+
#define ADC_REFERENCE ADC_REF_INTERNAL
393+
#define ADC_ACQUISITION_TIME ADC_ACQ_TIME_DEFAULT
394+
#define ADC_1ST_CHANNEL_ID 0
395+
#define ADC_2ND_CHANNEL_ID 1
396+
387397
#else
388398
#error "Unsupported board."
389399
#endif

0 commit comments

Comments
 (0)