mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-11 06:02:37 -05:00
Working sleep() functionality
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@232 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b3aecff464
commit
9c1299c9c1
2 changed files with 12 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue