tlafleur wrote on Thursday, April 20, 2017:
If you don’t understand how FreeRTOS work or don’t like the way it works.
You have full source code, make the changes you need and be done with it!!!
~~ _/) _/) _/) ``` _/) ~~
Tom Lafleur
On Thu, Apr 20, 2017 at 7:49 AM, Vit Bernatik bernatikv@users.sf.net
wrote:
I also looked to nordic “port_cmsis_systick.c” and they enable IRQ only
after tick compensation (so their code behave correctly → same in tickless
enabled or disabled). I measured that their compensation time takes only
6us (partially due to the arm is using faster clock 64MHz) but mostly due
to the fact they are not dividing. Instead of systick timer they used RTC
hardware and it uses prescaler to have 1 counted value same as 1 tick. So
if you have free RTC HW in your ARM that has Compare register and Prescaler
you can write much faster port than is generic free rtos port. The problem
is that generic systick needs division operation which is very slow
operation. Also RTC with Compare register does not need to be stopped so
other benefit of such approach would be that there is not event small time
drift in tickless mode (standard free rtos arm port is stopping for while
systick counter which creates small tick drift).1 tick delayed task start after portSUPPRESS_TICKS_AND_SLEEP
https://sourceforge.net/p/freertos/discussion/382005/thread/237a82ca/?limit=25#47f0Sent from sourceforge.net because you indicated interest in
SourceForge.net: Log In to SourceForge.netTo unsubscribe from further messages, please visit
SourceForge.net: Log In to SourceForge.net