forked from len0rd/rockbox
Initial commit of work-in-progress iPod port
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7781 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3cd5c646d0
commit
77372d1218
24 changed files with 2178 additions and 21 deletions
|
@ -25,7 +25,9 @@
|
|||
#include "system.h"
|
||||
#include "panic.h"
|
||||
|
||||
#if (CONFIG_CPU != PP5020)
|
||||
long current_tick = 0;
|
||||
#endif
|
||||
|
||||
static void (*tick_funcs[MAX_NUM_TICK_TASKS])(void);
|
||||
|
||||
|
@ -65,6 +67,11 @@ void sleep(int ticks)
|
|||
|
||||
void yield(void)
|
||||
{
|
||||
#if CONFIG_CPU == PP5020
|
||||
/* Threading not yet implemented */
|
||||
#warning Enable yield()
|
||||
return;
|
||||
#endif
|
||||
switch_thread();
|
||||
wake_up_thread();
|
||||
}
|
||||
|
@ -315,6 +322,12 @@ void tick_start(unsigned int interval_in_ms)
|
|||
IMR0 |= (1<<2);
|
||||
}
|
||||
|
||||
#elif CONFIG_CPU == PP5020
|
||||
|
||||
void tick_start(unsigned int interval_in_ms) {
|
||||
#warning Implement tick_start
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
int tick_add_task(void (*f)(void))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue