Rockbox

Tasklist

FS#10811 - USEC_TIMER fix for nano 2G

Attached to Project: Rockbox
Opened by Laurent Papier (papier) - Wednesday, 25 November 2009, 18:21 GMT
Last edited by Michael Chicoine (mc2739) - Tuesday, 01 December 2009, 23:27 GMT
Task Type Patches
Category Operating System/Drivers
Status Closed
Assigned To No-one
Operating System iPod Nano 2G
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The USEC_TIMER does not work on nano 2G.

For the user, this makes the clickwheel 'jumpy'.

TheSeven said : "the nano2g usec timer is actually a 64bit 5usec timer. rockbox only uses the lower 32 bits, but these only seem to get updated when the high part is read."

This patch also enable WHEEL_ACCEL as it seems to work fine.

Note: the macro is a little ugly but the operation (a>>31)&1 is not optimize by gcc. So we read the 64bits and only use the lower 32 bits.

This task depends upon

Closed by  Michael Chicoine (mc2739)
Tuesday, 01 December 2009, 23:27 GMT
Reason for closing:  Accepted
Additional comments about closing:  Committed in r23747, r23748 and r23749

Loading...