forked from len0rd/rockbox
iPod: Code cleanup - the bootloader now compiles with zero warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7812 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c2a0406e10
commit
d31a32c501
17 changed files with 111 additions and 58 deletions
|
@ -55,7 +55,13 @@ static bool timer_set(long cycles, bool start)
|
|||
{
|
||||
int phi = 0; /* bits for the prescaler */
|
||||
int prescale = 1;
|
||||
|
||||
|
||||
#if CONFIG_CPU==PP5020
|
||||
/* TODO: Implement for iPod */
|
||||
(void)start;
|
||||
(void)phi;
|
||||
#endif
|
||||
|
||||
#ifdef CPU_COLDFIRE
|
||||
cycles >>= 1; /* the coldfire timer works on busclk == cpuclk/2 */
|
||||
#endif
|
||||
|
@ -156,6 +162,11 @@ bool timer_register(int reg_prio, void (*unregister_callback)(void),
|
|||
if (reg_prio <= timer_prio || cycles == 0)
|
||||
return false;
|
||||
|
||||
#if CONFIG_CPU==PP5020
|
||||
/* TODO: Implement for iPod */
|
||||
(void)int_prio;
|
||||
#endif
|
||||
|
||||
#if CONFIG_CPU == SH7034
|
||||
if (int_prio < 1 || int_prio > 15)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue