FS#10274 - Move timer code in target tree

Attached to Project: Rockbox
Opened by Rafaël Carré (funman) - Thursday, 04 June 2009, 00:30 GMT
Last edited by Rafaël Carré (funman) - Monday, 29 June 2009, 14:29 GMT
Task Type Patches
Category Drivers
Status Closed
Assigned To Jens Arnold (amiconn)
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


I have splitted the diff in small patches for easier review/syncing.

- Move target specific code from timer.c into target tree, creating new timer-X.c files ; copyrighted by whoever wrote the code in timer.c

- TIMER_REGISTER / TIMER_UNREGISTER / TIMER_SET macros are removed, and timer_s{top,tart,et} declared in timer.h. The functions themselves are target-specific (in target/*/timer-*.c)

- Remove int_prio argument from timer_register(), and move the only use for it into the SH7034 specific alpine_cdc plugin

- Put TIMER_FREQ definition in CPU-specific headers, and completely remove timer-target.h since it was its only content.

TODO : bump plugin API when it's committed
This task depends upon

Closed by  Rafaël Carré (funman)
Monday, 29 June 2009, 14:29 GMT
Reason for closing:  Accepted