mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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:
parent
89ccd5c145
commit
c5dedd7d76
26 changed files with 44 additions and 208 deletions
|
|
@ -48,7 +48,7 @@ static void stop_timer(void)
|
|||
INTPND = TIMER0_MASK;
|
||||
}
|
||||
|
||||
bool __timer_set(long cycles, bool start)
|
||||
bool timer_set(long cycles, bool start)
|
||||
{
|
||||
bool retval = false;
|
||||
|
||||
|
|
@ -87,7 +87,7 @@ bool __timer_set(long cycles, bool start)
|
|||
return retval;
|
||||
}
|
||||
|
||||
bool __timer_start(void)
|
||||
bool timer_start(void)
|
||||
{
|
||||
bool retval = true;
|
||||
|
||||
|
|
@ -122,7 +122,7 @@ bool __timer_start(void)
|
|||
return retval;
|
||||
}
|
||||
|
||||
void __timer_stop(void)
|
||||
void timer_stop(void)
|
||||
{
|
||||
int oldstatus = disable_interrupt_save(IRQ_FIQ_STATUS);
|
||||
stop_timer();
|
||||
|
|
|
|||
|
|
@ -25,17 +25,4 @@
|
|||
#define TIMER_FREQ (49156800/2)
|
||||
#define TIMER234_PRESCALE 21
|
||||
|
||||
bool __timer_set(long cycles, bool set);
|
||||
bool __timer_start(void);
|
||||
void __timer_stop(void);
|
||||
|
||||
#define __TIMER_SET(cycles, set) \
|
||||
__timer_set(cycles, set)
|
||||
|
||||
#define __TIMER_START() \
|
||||
__timer_start()
|
||||
|
||||
#define __TIMER_STOP(...) \
|
||||
__timer_stop()
|
||||
|
||||
#endif /* TIMER_TARGET_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue