diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-04-25 13:30:41 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-04-25 13:30:41 +0000 |
| commit | 9c1299c9c1892efc67c75f8cd551ffe9f2863156 (patch) | |
| tree | 56fbd7a85b1d04a2392dd73a03db6a80df7837bf /firmware/test/kernel/timer.c | |
| parent | b3aecff464e83ae3ab7245f323687aec78544533 (diff) | |
| download | rockbox-9c1299c9c1892efc67c75f8cd551ffe9f2863156.zip rockbox-9c1299c9c1892efc67c75f8cd551ffe9f2863156.tar.gz rockbox-9c1299c9c1892efc67c75f8cd551ffe9f2863156.tar.bz2 rockbox-9c1299c9c1892efc67c75f8cd551ffe9f2863156.tar.xz | |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/test/kernel/timer.c b/firmware/test/kernel/timer.c index 31c6f82..a0d180a 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) IPRC = (IPRC & ~0x00f0) | 0x0010; TSR0 &= ~0x01; - TIER0 |= 0x01; /* Enable GRA match interrupt */ + TIER0 = 0xf9; /* Enable GRA match interrupt */ TSTR |= 0x01; /* Start timer 1 */ } @@ -59,5 +59,6 @@ void IMIA0(void) { current_tick++; +// debugf("t\n"); TSR0 &= ~0x01; } |