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 2021/06/14 21:51:30 UTC
[GitHub] [mynewt-core] kasjer opened a new pull request #2617: pic32: Fix tick timer handling
kasjer opened a new pull request #2617:
URL: https://github.com/apache/mynewt-core/pull/2617
Tick timer interrupt handler assumed it was execute before
next tick interrupt should be fired.
In case when interrupt was handled late (due to other interrupts
or just blocked interrupt for some time) next computed tick time
was already in the past and system time stopped for a very long time.
Now COMPARE register when set is compared to current COUNT register
and if it is in the past next tick time is computed until interrupt
is schedule to be ahead of COUNT register.
Also os_time_advance() takes into account what is the difference of
COUNT and COMPARE registers and in case of late interrupt, g_os_time
can advance more then one tick at a time.
--
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
[GitHub] [mynewt-core] kasjer merged pull request #2617: pic32: Fix tick timer handling
Posted by GitBox <gi...@apache.org>.
kasjer merged pull request #2617:
URL: https://github.com/apache/mynewt-core/pull/2617
--
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