forked from len0rd/rockbox
rbcodec: Hooks for target specific functions in dsp_process loop
Use them to move tick counting, yielding and coldfire macsr handling code to a rockbox specific file. Change-Id: Id7417dc98c08a342eba45ba56b044a276e50564b Reviewed-on: http://gerrit.rockbox.org/229 Tested-by: Nils Wallménius <nils@rockbox.org> Reviewed-by: Nils Wallménius <nils@rockbox.org>
This commit is contained in:
parent
00cf2ce711
commit
dbe5e5f2df
3 changed files with 74 additions and 47 deletions
|
@ -45,11 +45,6 @@
|
|||
/***************** EXPORTED *****************/
|
||||
|
||||
struct user_settings global_settings;
|
||||
volatile long current_tick = 0;
|
||||
|
||||
void yield(void)
|
||||
{
|
||||
}
|
||||
|
||||
int set_irq_level(int level)
|
||||
{
|
||||
|
@ -601,6 +596,10 @@ static void ci_logf(const char *fmt, ...)
|
|||
}
|
||||
#endif
|
||||
|
||||
static void ci_yield(void)
|
||||
{
|
||||
}
|
||||
|
||||
static void commit_dcache(void) {}
|
||||
static void commit_discard_dcache(void) {}
|
||||
static void commit_discard_idcache(void) {}
|
||||
|
@ -626,7 +625,7 @@ static struct codec_api ci = {
|
|||
ci_should_loop,
|
||||
|
||||
ci_sleep,
|
||||
yield,
|
||||
ci_yield,
|
||||
|
||||
#if NUM_CORES > 1
|
||||
ci_create_thread,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue