mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Simplification for user timer on coldfire. We define TIMER_FREQ separately anyway.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9479 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
fcab617331
commit
295ec69717
2 changed files with 7 additions and 8 deletions
|
@ -25,12 +25,15 @@
|
|||
|
||||
#ifndef SIMULATOR
|
||||
|
||||
/* Assume timer base freq. is CPU clock base freq. Portalplayer chips use a
|
||||
microsecond timer instead. */
|
||||
|
||||
#if CONFIG_CPU == PP5020 || CONFIG_CPU == PP5002
|
||||
#define TIMER_FREQ 1000000
|
||||
/* Portalplayer chips use a microsecond timer. */
|
||||
#define TIMER_FREQ 1000000
|
||||
#elif defined(CPU_COLDFIRE)
|
||||
/* timer is based on busclk == cpuclk/2 */
|
||||
#define TIMER_FREQ (CPU_FREQ/2)
|
||||
#else
|
||||
#define TIMER_FREQ CPU_FREQ
|
||||
#define TIMER_FREQ CPU_FREQ
|
||||
#endif
|
||||
|
||||
bool timer_register(int reg_prio, void (*unregister_callback)(void),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue