ERC32 clock counter incorrect
Manuel
manuel.coutinho at edisoft.pt
Fri Mar 6 15:29:38 UTC 2009
Hi
We have discovered a bug in the ERC32 clock driver (at least for the RTEMS
4.8.0 version).
Currently, the RTC counter is being initialized with (on the ckinit.c file)
ERC32_MEC.Real_Time_Clock_Counter = \
BSP_Configuration.microseconds_per_tick;
This way it is adding an extra microsecond for each clock tick.
The correct set value should be
ERC32_MEC.Real_Time_Clock_Counter = \
BSP_Configuration.microseconds_per_tick - 1;
the other SPARC BSPs (leon2 and leon3) clocks seam ok :)
Kind regards
Manuel Coutinho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20090306/f2145f66/attachment.html>
More information about the users
mailing list