We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d3493b commit 83da959Copy full SHA for 83da959
tests/drivers/adc/adc_api/boards/xmc45_relax_kit.overlay
@@ -0,0 +1,3 @@
1
+&adc0 {
2
+ status = "okay";
3
+};
tests/drivers/adc/adc_api/src/test_adc.c
@@ -384,6 +384,16 @@
384
#define ADC_1ST_CHANNEL_ID 0
385
#define ADC_2ND_CHANNEL_ID 1
386
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
397
#else
398
#error "Unsupported board."
399
#endif
0 commit comments