raiden00pl opened a new pull request, #16103: URL: https://github.com/apache/nuttx/pull/16103
## Summary Patch from mailing list https://lists.apache.org/thread/xzor3tjy9jozlmox82frd27v969b37l4 On AVR architecture, the compiler apparently sometimes truncates NSEC_PER_TICK to 16bit value, leading to clock_time2ticks returning incorrect results. This was encountered while attempting to add tickless OS support for AVR architecture but seemed to affect non-tickless mode of operation as well. This patch marks NSEC_PER_USEC (and to be safe, USEC_PER_MSEC and MSEC_PER_SEC too) as long. ## Impact this change needs a thorough review, to make sure it doesn't accidentally break something ## Testing CI -- 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