From e44372ef18cbf30f0e174ed76be4ee4e6206f2cc Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Tue, 26 Jul 2005 20:01:11 +0000 Subject: Moved implementation of user timer to the firmware layer, implemented it for iriver, and made it shareable based on priorities. On iriver, the user timer is shared between the backlight fading and other use, so if a plugin registers the timer, the backlight will resort to simple on/off switching until the plugin releases the timer again. Sorted and bumped the plugin api. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7242 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/oscilloscope.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/plugins/oscilloscope.c') diff --git a/apps/plugins/oscilloscope.c b/apps/plugins/oscilloscope.c index ae77f33..f5e5189 100644 --- a/apps/plugins/oscilloscope.c +++ b/apps/plugins/oscilloscope.c @@ -192,7 +192,7 @@ void cleanup(void *parameter) { (void)parameter; - rb->plugin_unregister_timer(); + rb->timer_unregister(); } enum plugin_status plugin_start(struct plugin_api* api, void* parameter) @@ -205,7 +205,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) (void)parameter; rb = api; - rb->plugin_register_timer(FREQ / 67, 1, timer_isr); + rb->timer_register(1, NULL, FREQ / 67, 1, timer_isr); while (!exit) { -- cgit v1.1