You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "patacongo (via GitHub)" <gi...@apache.org> on 2023/06/15 19:47:33 UTC

[GitHub] [nuttx] patacongo commented on pull request #9546: stm32_tickless: Software prescaller proof-of-consept.

patacongo commented on PR #9546:
URL: https://github.com/apache/nuttx/pull/9546#issuecomment-1593628788

   Doesn't this just sacrifice resolution of the timer in order to enforce a minimum delay?  Do I understand that right?
   
   If so, it seems like there is no reason lose the resolution.  Why not just enforce the minimum delay only.  Wouldn't that be as simple as changing:
   
       if (delay <= 0)
         {
           delay = 1;
         }
   
   to something like:
   
       if (delay <= SOME_MINIMUM_DELAY)
         {
           delay = SOME_MINIMUM_DELAY;
         }
   
   That assures the minimum delay and retains the precision of the timer.


-- 
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-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org