Hi,

I am porting RIOT to a new platform and I have been having lots of problems with getting the timers working. I have gone through all the timer code and I think I understand how RIOT uses timers and found a few problems/limitations.

*Limitations*
Am I correct in thinking:
- RIOT only supports 32 bit timers?
- RIOT uses multiple timers but they all must run at the same speed and be synchronised. So effectively there must be only one timer but multiple channels/compares.

*Problems*
1) If I set a hwtimer for longer than the maximum period of the timer it will interrupt too soon.
e.g.
Timer overflows every 1000s.
If I set a hwtimer to delay for 1001s it will interrupt in 1s time.

2) vtimers fail if the maximum timer period is less than 4096s (SECONDS_PER_TICK).

3) Currently vtimers do not check if they request a hwtimer and there is not one available.

Regards

Simon
_______________________________________________
devel mailing list
[email protected]
https://lists.riot-os.org/mailman/listinfo/devel

Reply via email to