From dbe5e5f2df24a0dbe650561c0b42ce982346534c Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Thu, 3 May 2012 15:54:48 +0200 Subject: rbcodec: Hooks for target specific functions in dsp_process loop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Nils Wallménius --- lib/rbcodec/test/warble.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'lib/rbcodec/test') diff --git a/lib/rbcodec/test/warble.c b/lib/rbcodec/test/warble.c index 53d360d..ea8efcf 100644 --- a/lib/rbcodec/test/warble.c +++ b/lib/rbcodec/test/warble.c @@ -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, -- cgit v1.1