Page 3 of 3

Re: Tick-less mode support for NilRTOS

Posted: Thu Apr 17, 2014 2:32 am
by saraben
Please refer to
viewtopic.php?f=2&t=1852&p=15327#p15327
for an explanation of the last post.
saraben

Re: Tick-less mode support for NilRTOS

Posted: Thu Apr 17, 2014 2:21 pm
by colin
Interesting. So is it a bug in the Nil code? Did you fix it by adding a cast?

Re: Tick-less mode support for NilRTOS

Posted: Thu Apr 17, 2014 4:03 pm
by Giovanni
Apparently is a Nil bug when using 16 bits counters, I haven't look into it yet.

Giovanni

Re: Tick-less mode support for NilRTOS

Posted: Fri May 09, 2014 4:11 am
by saraben
Giovanni,
Should I raise a bug for this 16 bit counter issue seeing V3 has gone to trunk?
Regards
Saraben

Re: Tick-less mode support for NilRTOS

Posted: Fri May 09, 2014 8:10 am
by Giovanni
Good idea, now Nil is "official".

Giovanni

Re: Tick-less mode support for NilRTOS

Posted: Tue May 13, 2014 9:52 pm
by Giovanni
I committed a tentative fix along the lines of what you suggested.

Giovanni

Re: Tick-less mode support for NilRTOS

Posted: Tue Aug 19, 2014 6:02 pm
by Marco
Hello Giovanni,

On the first page of this thread you mentioned the following about the requirement of the timer for tickless mode:
Giovanni wrote:It is required a 16/32 bits up-counter with a comparator register. A down counter could be used too with extra math.

Giovanni

What extra math is exactly needed to use a down counter for the tickless mode instead of an up counter?

Marco

Re: Tick-less mode support for NilRTOS

Posted: Tue Aug 19, 2014 6:29 pm
by Giovanni
You have to make it appear as an increment counter so mostly subtractions.

Giovanni