#1358 closed defect (fixed)

Fix time-access bug in uc5282 BSP.

Reported by: Eric Norum Owned by: Joel Sherrill
Priority: normal Milestone: 4.10
Component: bsps Version: 4.9
Severity: major Keywords:
Cc: Blocked By:
Blocking:

Description

The fine-timing routine bsp_clock_nanoseconds_since_last_tick() in c/src/lib/libbsp/m68k/uC5282/clock/clock.c is wrong.
The PCNTR counts down, not up.

The attached patch fixes the problem and should be applied to both the CVS head and the 4.9 branch.

Attachments (1)

patch (2.2 KB) - added by Eric Norum on Jan 20, 2009 at 7:25:43 PM.
Account for the fact that PCNTR counts down, not up.

Download all attachments as: .zip

Change History (2)

Changed on Jan 20, 2009 at 7:25:43 PM by Eric Norum

Attachment: patch added

Account for the fact that PCNTR counts down, not up.

comment:1 Changed on Jan 21, 2009 at 3:51:21 PM by Joel Sherrill

Resolution: fixed
Status: newclosed

Patch applied to 4.9 branch and CVS head.

The patch fails to apply to 4.8. I am assuming this problem was
introduced post 4.8. If 4.8 requires a variation on this patch,
please reopen with a 4.8 patch.

Note: See TracTickets for help on using tickets.