diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2008-04-04 19:38:46 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2008-04-04 19:38:46 +0000 |
| commit | ac9b92716a11cf7699f6ce9668b1ca5cd4171cf9 (patch) | |
| tree | b327ea00d2320464d5022b63690032ec31b55f47 /apps/plugins | |
| parent | 3183b9e534eba4ca07ffaa68895e63177b5d8761 (diff) | |
| download | rockbox-ac9b92716a11cf7699f6ce9668b1ca5cd4171cf9.zip rockbox-ac9b92716a11cf7699f6ce9668b1ca5cd4171cf9.tar.gz rockbox-ac9b92716a11cf7699f6ce9668b1ca5cd4171cf9.tar.bz2 rockbox-ac9b92716a11cf7699f6ce9668b1ca5cd4171cf9.tar.xz | |
Allow to select the core for running the user timer on portalplayer targets. * Incompatible plugin API change -> sorted API.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16965 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/alpine_cdc.c | 4 | ||||
| -rw-r--r-- | apps/plugins/doom/i_system.c | 2 | ||||
| -rw-r--r-- | apps/plugins/lib/grey_core.c | 2 | ||||
| -rw-r--r-- | apps/plugins/metronome.c | 2 | ||||
| -rw-r--r-- | apps/plugins/test_scanrate.c | 3 | ||||
| -rw-r--r-- | apps/plugins/video.c | 6 |
6 files changed, 11 insertions, 8 deletions
diff --git a/apps/plugins/alpine_cdc.c b/apps/plugins/alpine_cdc.c index 919ce18..f781509 100644 --- a/apps/plugins/alpine_cdc.c +++ b/apps/plugins/alpine_cdc.c @@ -231,11 +231,11 @@ void timer_set_mode(int mode) if (mode == TM_RX_TIMEOUT) { - rb->timer_register(1, NULL, gTimer.timeout, 11, timer4_isr); + rb->timer_register(1, NULL, gTimer.timeout, 11, timer4_isr IF_COP(, CPU)); } else if (mode == TM_TRANSMIT) { - rb->timer_register(1, NULL, gTimer.transmit, 14, timer4_isr); + rb->timer_register(1, NULL, gTimer.transmit, 14, timer4_isr IF_COP(, CPU)); } else { diff --git a/apps/plugins/doom/i_system.c b/apps/plugins/doom/i_system.c index 4a22743..09a6180 100644 --- a/apps/plugins/doom/i_system.c +++ b/apps/plugins/doom/i_system.c @@ -109,7 +109,7 @@ int I_GetTime (void) void I_Init (void) { #if defined(HAVE_LCD_COLOR) && !defined(SIMULATOR) && !defined(RB_PROFILE) - rb->timer_register(1, NULL, TIMER_FREQ/TICRATE, 1, doomtime); + rb->timer_register(1, NULL, TIMER_FREQ/TICRATE, 1, doomtime IF_COP(, CPU)); #endif I_InitSound(); } diff --git a/apps/plugins/lib/grey_core.c b/apps/plugins/lib/grey_core.c index 5125d77..20c33a6 100644 --- a/apps/plugins/lib/grey_core.c +++ b/apps/plugins/lib/grey_core.c @@ -603,7 +603,7 @@ void grey_show(bool enable) _grey_info.rb->cpu_boost(true); #endif _grey_info.rb->timer_register(1, NULL, TIMER_FREQ / LCD_SCANRATE, 1, - _timer_isr); + _timer_isr IF_COP(, CPU)); #endif /* !SIMULATOR */ _grey_info.rb->screen_dump_set_hook(grey_screendump_hook); } diff --git a/apps/plugins/metronome.c b/apps/plugins/metronome.c index 571e085..d05e881 100644 --- a/apps/plugins/metronome.c +++ b/apps/plugins/metronome.c @@ -322,7 +322,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter){ #endif /* CONFIG_CODEC != SWCODEC */ calc_period(); - rb->timer_register(1, NULL, TIMER_FREQ/1024, 1, timer_callback); + rb->timer_register(1, NULL, TIMER_FREQ/1024, 1, timer_callback IF_COP(, CPU)); draw_display(); diff --git a/apps/plugins/test_scanrate.c b/apps/plugins/test_scanrate.c index aabc623..e88ac99 100644 --- a/apps/plugins/test_scanrate.c +++ b/apps/plugins/test_scanrate.c @@ -150,7 +150,8 @@ int plugin_main(void) rb->cpu_boost(true); #endif /* The actual frequency is twice the displayed value */ - rb->timer_register(1, NULL, TIMER_FREQ * 5 / scan_rate, 1, timer_isr); + rb->timer_register(1, NULL, TIMER_FREQ * 5 / scan_rate, 1, + timer_isr IF_COP(, CPU)); while (!done) { diff --git a/apps/plugins/video.c b/apps/plugins/video.c index fa1646d..3e7e53a 100644 --- a/apps/plugins/video.c +++ b/apps/plugins/video.c @@ -540,9 +540,11 @@ int SeekTo(int fd, int nPos) gPlay.bVideoUnderrun = false; /* start display interrupt */ #if FREQ == 12000000 /* Ondio speed kludge */ - rb->timer_register(1, NULL, gPlay.nFrameTimeAdjusted, 1, timer4_isr); + rb->timer_register(1, NULL, gPlay.nFrameTimeAdjusted, 1, + timer4_isr IF_COP(, CPU)); #else - rb->timer_register(1, NULL, gFileHdr.video_frametime, 1, timer4_isr); + rb->timer_register(1, NULL, gFileHdr.video_frametime, 1, + timer4_isr IF_COP(, CPU)); #endif } |