Skip to content

Commit d5792ab

Browse files
danieldegrassenashif
authored andcommitted
tests: drivers: adc: adc_dma: increase sampling interval for MCUX ADC16
Increase hardware sampling interval to 30ms for MCUX ADC16. The ADC callback in the repeated_samplings test takes roughly 27ms to execute, so a sampling frequency of this interval still allows the ADC test to verify the ADC is being sampled at a given interval, while avoiding the pitfalls that result from a kernel timer shorter than the duration the ADC callback takes to run. Fixes #58467 Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 4375962 commit d5792ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#define ADC_ACQUISITION_TIME ADC_ACQ_TIME_DEFAULT
2424
#define ADC_1ST_CHANNEL_ID 26
2525
#define COUNTER_NODE_NAME pit0
26-
#define HW_TRIGGER_INTERVAL (2U)
26+
#define HW_TRIGGER_INTERVAL (30000U)
2727
#define SAMPLE_INTERVAL_US HW_TRIGGER_INTERVAL
2828

2929
#elif defined(CONFIG_BOARD_FRDM_K82F)
@@ -35,7 +35,7 @@
3535
#define ADC_ACQUISITION_TIME ADC_ACQ_TIME_DEFAULT
3636
#define ADC_1ST_CHANNEL_ID 26
3737
#define COUNTER_NODE_NAME pit0
38-
#define HW_TRIGGER_INTERVAL (2U)
38+
#define HW_TRIGGER_INTERVAL (30000U)
3939
#define SAMPLE_INTERVAL_US HW_TRIGGER_INTERVAL
4040

4141
#elif defined(CONFIG_BOARD_NUCLEO_H743ZI)

0 commit comments

Comments
 (0)