linguini1 opened a new issue, #17069: URL: https://github.com/apache/nuttx/issues/17069
### Is your feature request related to a problem? Please describe. Many architectures have the same implementation of `up_udelay` using a busy loop, which has code duplication across many files. Ex: `hc_udelay`, `x86_udelay`, `avr_udelay`, etc. ### Describe the solution you'd like The solution I propose is to create a default definition of `up_udelay` relying on `CONFIG_BOARD_LOOPSPERMSEC`, which individual architectures can override if necessary using some timer implementation. Ideally this should be solved before solving #17004, which will make it easier to assert when a bad value of `CONFIG_BOARD_LOOPSPERMSEC` is used in one place. ### Describe alternatives you've considered _No response_ ### Verification - [x] I have verified before submitting the report. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
