1
0
Fork 0
forked from len0rd/rockbox

Remove the TIMER_* macros and declare target-specific functions in timer.h

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21559 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2009-06-29 14:29:57 +00:00
parent 89ccd5c145
commit c5dedd7d76
26 changed files with 44 additions and 208 deletions

View file

@ -37,7 +37,7 @@ void TIMER1(void)
TER1 = 0xff; /* clear all events */
}
bool __timer_set(long cycles, bool start)
bool timer_set(long cycles, bool start)
{
int phi = 0; /* bits for the prescaler */
int prescale = 1;
@ -87,7 +87,7 @@ bool __timer_set(long cycles, bool start)
return true;
}
bool __timer_start(void)
bool timer_start(void)
{
ICR2 = 0x90; /* interrupt on level 4.0 */
and_l(~(1<<10), &IMR);
@ -95,7 +95,7 @@ bool __timer_start(void)
return true;
}
void __timer_stop(void)
void timer_stop(void)
{
TMR1 = 0; /* disable timer 1 */
or_l((1<<10), &IMR); /* disable interrupt */