Rockbox

Tasklist

FS#10317 - Sansa AMS 32-bit timers

Attached to Project: Rockbox
Opened by Bertrik Sikken (bertrik) - Thursday, 11 June 2009, 20:19 GMT
Last edited by Bertrik Sikken (bertrik) - Friday, 12 June 2009, 21:18 GMT
Task Type Patches
Category Drivers
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Version 3.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Attached patch configures the timers in the AMS sansas for 32-bit operation (currently in 16-bit mode). This removes the need for using prescalers and actually makes for less code.

Works fine here on my clip (although I don't know if we ever use something that really needs more than 16 bits).
This task depends upon

Closed by  Bertrik Sikken (bertrik)
Friday, 12 June 2009, 21:18 GMT
Reason for closing:  Accepted
Additional comments about closing:  Committed as svn revision 21266
Comment by Bertrik Sikken (bertrik) - Friday, 12 June 2009, 06:39 GMT
Same patch, but now using #defines from as3525.h
Comment by Bertrik Sikken (bertrik) - Friday, 12 June 2009, 21:08 GMT
I tested this by registering a timer with a period that would not fit in a 16-bit register, it worked as expected.

Loading...