This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10811 - USEC_TIMER fix for nano 2G
Attached to Project:
Rockbox
Opened by Laurent Papier (papier) - Wednesday, 25 November 2009, 19:21 GMT+2
Last edited by Michael Chicoine (mc2739) - Wednesday, 02 December 2009, 00:27 GMT+2
Opened by Laurent Papier (papier) - Wednesday, 25 November 2009, 19:21 GMT+2
Last edited by Michael Chicoine (mc2739) - Wednesday, 02 December 2009, 00:27 GMT+2
|
DetailsThe 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)
Wednesday, 02 December 2009, 00:27 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed in r23747, r23748 and r23749
Wednesday, 02 December 2009, 00:27 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed in r23747, r23748 and r23749