linguini1 opened a new pull request, #16459: URL: https://github.com/apache/nuttx/pull/16459
## Summary The ADS1115 driver uses the `nxsig_usleep()` function to sleep for a 65us delay, but with a 1ms tick resolution and the context-switching overhead, this is much more than 1ms. Introducing `up_udelay` (even with a larger duration because of the unreliability of busy-waiting) speeds up sampling noticeably. ## Impact The ADS1115 driver samples more quickly than before, but is dependent on `up_udelay` instead of `nxsig_usleep`. ## Testing This was tested by comparing the speed at which the ADC could be sampled using either sleep implementation, where the `up_udelay` implementation was faster. The delay was increased to 4000us since lower values caused a sampling failure. The busy-wait delay is not very precise. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org