You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/12/10 16:25:09 UTC

[GitHub] [mynewt-core] andrzej-kaczmarek opened a new pull request #2126: hw/mcu/nordic: Fix hal_timer firing too early

andrzej-kaczmarek opened a new pull request #2126: hw/mcu/nordic: Fix hal_timer firing too early
URL: https://github.com/apache/mynewt-core/pull/2126
 
 
   In hal_timer there is a workaround for an RTC compare issue which in
   some cases fires timer callback too early. The problem with this code
   is that timer value read in a callback will be *before* what was set
   on timer and this is not what callback expects.
   
   To fix this, in case we detect that new compare is too close to current
   timer value we should not trigger timer too early but instead enable
   TICK interrupt which occurs on every counter change and disable it once
   condition for a workaround is no longer valid. This can cause an extra
   interrupt on a tick with no timers being handled, but this is ok.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services