-
Notifications
You must be signed in to change notification settings - Fork 7.4k
tests: drivers: adc: adc_dma: increase sampling interval for MCUX ADC16 #58547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: drivers: adc: adc_dma: increase sampling interval for MCUX ADC16 #58547
Conversation
@heinwessels I'd like to understand the changes in #52965 a bit better- particularly the change to use Moreover, on the FRDM-K64F the However, if the sampling interval is set to Is there a particular reason you changed the interval back to |
As mentioned in the commit message, I changed it back due to #56070. The reason is that I will simply reverting things back to how I found it, because it apparently caused issues. I don't work with NXP, nor have devices available, so I'm not really sure which the right approach is. Even though I do believe the |
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]>
After discussing with @hakehuang, I have increased the sampling interval to 30ms. This way the test still verifies that the ADC hardware sampling is triggered on the timer interval, but we do not run into the pitfall of using a kernel timer shorter in duration than the time the ADC callback takes to execute (27ms on the FRDM-K64F) |
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