summaryrefslogtreecommitdiff
path: root/firmware/test/kernel/timer.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-04-25 13:30:41 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-04-25 13:30:41 +0000
commit9c1299c9c1892efc67c75f8cd551ffe9f2863156 (patch)
tree56fbd7a85b1d04a2392dd73a03db6a80df7837bf /firmware/test/kernel/timer.c
parentb3aecff464e83ae3ab7245f323687aec78544533 (diff)
downloadrockbox-9c1299c9c1892efc67c75f8cd551ffe9f2863156.tar.gz
rockbox-9c1299c9c1892efc67c75f8cd551ffe9f2863156.zip
Working sleep() functionality
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@232 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/test/kernel/timer.c')
-rw-r--r--firmware/test/kernel/timer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/test/kernel/timer.c b/firmware/test/kernel/timer.c
index 31c6f82baa..a0d180ab51 100644
--- a/firmware/test/kernel/timer.c
+++ b/firmware/test/kernel/timer.c
@@ -49,7 +49,7 @@ void tick_start(unsigned int interval_in_ms)
49 IPRC = (IPRC & ~0x00f0) | 0x0010; 49 IPRC = (IPRC & ~0x00f0) | 0x0010;
50 50
51 TSR0 &= ~0x01; 51 TSR0 &= ~0x01;
52 TIER0 |= 0x01; /* Enable GRA match interrupt */ 52 TIER0 = 0xf9; /* Enable GRA match interrupt */
53 53
54 TSTR |= 0x01; /* Start timer 1 */ 54 TSTR |= 0x01; /* Start timer 1 */
55} 55}
@@ -59,5 +59,6 @@ void IMIA0(void)
59{ 59{
60 current_tick++; 60 current_tick++;
61 61
62// debugf("t\n");
62 TSR0 &= ~0x01; 63 TSR0 &= ~0x01;
63} 64}