mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 21:25:19 -05:00
Remove int_prio argument from timer_register, and move the only use for it into alpine_cdc plugin, since this plugin is only built on SH7034
Also remove it from TIMER_START() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21558 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b955dff268
commit
89ccd5c145
25 changed files with 42 additions and 68 deletions
|
|
@ -30,7 +30,7 @@ void __timer_stop(void);
|
|||
#define __TIMER_SET(cycles, set) \
|
||||
__timer_set(cycles, set)
|
||||
|
||||
#define __TIMER_START(int_prio) \
|
||||
#define __TIMER_START() \
|
||||
__timer_start()
|
||||
|
||||
#define __TIMER_STOP(...) \
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ void __timer_stop(void);
|
|||
#define __TIMER_SET(cycles, set) \
|
||||
__timer_set(cycles, set)
|
||||
|
||||
#define __TIMER_START(int_prio) \
|
||||
#define __TIMER_START() \
|
||||
__timer_start()
|
||||
|
||||
#define __TIMER_STOP(...) \
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ void _timer_stop(void);
|
|||
#define __TIMER_SET(cycles, set) \
|
||||
_timer_set(cycles, set)
|
||||
|
||||
#define __TIMER_START(int_prio) \
|
||||
#define __TIMER_START() \
|
||||
_timer_start()
|
||||
|
||||
#define __TIMER_STOP(...) \
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ void __timer_stop(void);
|
|||
#define __TIMER_SET(cycles, set) \
|
||||
__timer_set(cycles, set)
|
||||
|
||||
#define __TIMER_START(int_prio) \
|
||||
#define __TIMER_START() \
|
||||
__timer_start()
|
||||
|
||||
#define __TIMER_STOP(...) \
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ void __timer_stop(void);
|
|||
#define __TIMER_SET(cycles, set) \
|
||||
__timer_set(cycles, set)
|
||||
|
||||
#define __TIMER_START(int_prio) \
|
||||
#define __TIMER_START() \
|
||||
__timer_start()
|
||||
|
||||
#define __TIMER_STOP(...) \
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ void __timer_stop(void);
|
|||
#define __TIMER_SET(cycles, set) \
|
||||
__timer_set(cycles, set)
|
||||
|
||||
#define __TIMER_START(int_prio) \
|
||||
#define __TIMER_START() \
|
||||
__timer_start()
|
||||
|
||||
#define __TIMER_STOP(...) \
|
||||
|
|
|
|||
|
|
@ -39,10 +39,10 @@ void __timer_stop(void);
|
|||
__timer_set(cycles, set)
|
||||
|
||||
#if NUM_CORES > 1
|
||||
#define __TIMER_START(int_prio, core) \
|
||||
#define __TIMER_START(core) \
|
||||
__timer_start(core)
|
||||
#else
|
||||
#define __TIMER_START(int_prio) \
|
||||
#define __TIMER_START() \
|
||||
__timer_start()
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ void __timer_stop(void);
|
|||
#define __TIMER_SET(cycles, set) \
|
||||
__timer_set(cycles, set)
|
||||
|
||||
#define __TIMER_START(int_prio) \
|
||||
#define __TIMER_START() \
|
||||
__timer_start()
|
||||
|
||||
#define __TIMER_STOP(...) \
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ void __timer_stop(void);
|
|||
#define __TIMER_SET(cycles, set) \
|
||||
__timer_set(cycles, set)
|
||||
|
||||
#define __TIMER_START(int_prio) \
|
||||
#define __TIMER_START() \
|
||||
__timer_start()
|
||||
|
||||
#define __TIMER_STOP(...) \
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ void __timer_stop(void);
|
|||
#define __TIMER_SET(cycles, set) \
|
||||
__timer_set(cycles, set)
|
||||
|
||||
#define __TIMER_START(int_prio) \
|
||||
#define __TIMER_START() \
|
||||
__timer_start()
|
||||
|
||||
#define __TIMER_STOP(...) \
|
||||
|
|
|
|||
|
|
@ -71,9 +71,9 @@ bool __timer_set(long cycles, bool start)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool __timer_start(int int_prio)
|
||||
bool __timer_start(void)
|
||||
{
|
||||
IPRD = (IPRD & 0xFF0F) | int_prio << 4; /* interrupt priority */
|
||||
IPRD = (IPRD & 0xFF0F) | 1 << 4; /* interrupt priority */
|
||||
or_b(0x10, &TSTR); /* start timer 4 */
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
#include "config.h"
|
||||
|
||||
bool __timer_set(long cycles, bool start);
|
||||
bool __timer_start(int int_prio);
|
||||
bool __timer_start(void);
|
||||
void __timer_stop(void);
|
||||
|
||||
#define TIMER_FREQ CPU_FREQ
|
||||
|
|
@ -32,8 +32,8 @@ void __timer_stop(void);
|
|||
#define __TIMER_SET(cycles, set) \
|
||||
__timer_set(cycles, set)
|
||||
|
||||
#define __TIMER_START(int_prio) \
|
||||
__timer_start(int_prio)
|
||||
#define __TIMER_START() \
|
||||
__timer_start()
|
||||
|
||||
#define __TIMER_STOP(...) \
|
||||
__timer_stop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue