summaryrefslogtreecommitdiffstats
path: root/lib/rbcodec/test
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2012-05-03 15:54:48 +0200
committerNils Wallménius <nils@rockbox.org>2012-05-03 23:47:46 +0200
commitdbe5e5f2df24a0dbe650561c0b42ce982346534c (patch)
tree65dffbf75406724b6772c79acaf6e2bff8c2ffcb /lib/rbcodec/test
parent00cf2ce711c87cc6a3d44bce44e3b1b67a188e56 (diff)
downloadrockbox-dbe5e5f2df24a0dbe650561c0b42ce982346534c.tar.gz
rockbox-dbe5e5f2df24a0dbe650561c0b42ce982346534c.tar.bz2
rockbox-dbe5e5f2df24a0dbe650561c0b42ce982346534c.zip
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>
Diffstat (limited to 'lib/rbcodec/test')
-rw-r--r--lib/rbcodec/test/warble.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/rbcodec/test/warble.c b/lib/rbcodec/test/warble.c
index 53d360d89e..ea8efcffca 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,