Please refer to
viewtopic.php?f=2&t=1852&p=15327#p15327
for an explanation of the last post.
saraben
Tick-less mode support for NilRTOS
Re: Tick-less mode support for NilRTOS
Interesting. So is it a bug in the Nil code? Did you fix it by adding a cast?
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Re: Tick-less mode support for NilRTOS
Apparently is a Nil bug when using 16 bits counters, I haven't look into it yet.
Giovanni
Giovanni
Re: Tick-less mode support for NilRTOS
Giovanni,
Should I raise a bug for this 16 bit counter issue seeing V3 has gone to trunk?
Regards
Saraben
Should I raise a bug for this 16 bit counter issue seeing V3 has gone to trunk?
Regards
Saraben
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Re: Tick-less mode support for NilRTOS
I committed a tentative fix along the lines of what you suggested.
Giovanni
Giovanni
Re: Tick-less mode support for NilRTOS
Hello Giovanni,
On the first page of this thread you mentioned the following about the requirement of the timer for tickless mode:
What extra math is exactly needed to use a down counter for the tickless mode instead of an up counter?
Marco
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
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Re: Tick-less mode support for NilRTOS
You have to make it appear as an increment counter so mostly subtractions.
Giovanni
Giovanni
Who is online
Users browsing this forum: No registered users and 1 guest