diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-11-05 03:28:20 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-11-05 03:28:20 +0000 |
commit | 72f98786a0b73722d2688c7509a1acc528b727af (patch) | |
tree | f658cd2f7aca2df217e0d1cfad65e9d56e230ba1 /firmware/timer.c | |
parent | 81411a8226437c0e4cdd95e755a7245314d4edeb (diff) |
Fixup of the MCF5249 memory mapped register definitions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7755 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/timer.c')
-rw-r--r-- | firmware/timer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/timer.c b/firmware/timer.c index 8aff4eb6ee..e5b5b68b11 100644 --- a/firmware/timer.c +++ b/firmware/timer.c @@ -174,8 +174,7 @@ bool timer_register(int reg_prio, void (*unregister_callback)(void), IPRD = (IPRD & 0xFF0F) | int_prio << 4; /* interrupt priority */ or_b(0x10, &TSTR); /* start timer 4 */ #elif defined CPU_COLDFIRE - /* ICR2 (Timer1) */ - ICR0 = (ICR0 & 0xffff00ff) | 0x00009000; /* interrupt on level 4.0 */ + ICR2 = 0x90; /* interrupt on level 4.0 */ and_l(~(1<<10), &IMR); TMR1 |= 1; /* start timer */ #endif |