Tick-less mode support for NilRTOS

Discussions and support about ChibiOS/NIL, the almost nil RTOS.
saraben
Posts: 40
Joined: Thu Sep 20, 2012 12:37 am
Location: Australia

Re: Tick-less mode support for NilRTOS

Postby saraben » Thu Apr 17, 2014 2:32 am

Please refer to
viewtopic.php?f=2&t=1852&p=15327#p15327
for an explanation of the last post.
saraben

colin
Posts: 149
Joined: Thu Dec 22, 2011 7:44 pm

Re: Tick-less mode support for NilRTOS

Postby colin » Thu Apr 17, 2014 2:21 pm

Interesting. So is it a bug in the Nil code? Did you fix it by adding a cast?

User avatar
Giovanni
Site Admin
Posts: 11224
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 401 times
Been thanked: 333 times
Contact:

Re: Tick-less mode support for NilRTOS

Postby Giovanni » Thu Apr 17, 2014 4:03 pm

Apparently is a Nil bug when using 16 bits counters, I haven't look into it yet.

Giovanni

saraben
Posts: 40
Joined: Thu Sep 20, 2012 12:37 am
Location: Australia

Re: Tick-less mode support for NilRTOS

Postby saraben » Fri May 09, 2014 4:11 am

Giovanni,
Should I raise a bug for this 16 bit counter issue seeing V3 has gone to trunk?
Regards
Saraben

User avatar
Giovanni
Site Admin
Posts: 11224
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 401 times
Been thanked: 333 times
Contact:

Re: Tick-less mode support for NilRTOS

Postby Giovanni » Fri May 09, 2014 8:10 am

Good idea, now Nil is "official".

Giovanni

User avatar
Giovanni
Site Admin
Posts: 11224
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 401 times
Been thanked: 333 times
Contact:

Re: Tick-less mode support for NilRTOS

Postby Giovanni » Tue May 13, 2014 9:52 pm

I committed a tentative fix along the lines of what you suggested.

Giovanni

Marco
Posts: 126
Joined: Tue Apr 16, 2013 8:22 pm
Has thanked: 4 times
Been thanked: 11 times

Re: Tick-less mode support for NilRTOS

Postby Marco » Tue Aug 19, 2014 6:02 pm

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

User avatar
Giovanni
Site Admin
Posts: 11224
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 401 times
Been thanked: 333 times
Contact:

Re: Tick-less mode support for NilRTOS

Postby Giovanni » Tue Aug 19, 2014 6:29 pm

You have to make it appear as an increment counter so mostly subtractions.

Giovanni


Return to “ChibiOS/NIL”

Who is online

Users browsing this forum: No registered users and 2 guests