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/lib/gray_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/plugins/lib/gray_core.c') diff --git a/apps/plugins/lib/gray_core.c b/apps/plugins/lib/gray_core.c index 18b9c3c..361b392 100644 --- a/apps/plugins/lib/gray_core.c +++ b/apps/plugins/lib/gray_core.c @@ -257,11 +257,11 @@ void gray_show(bool enable) if (enable) { _gray_info.flags |= _GRAY_RUNNING; - _gray_rb->plugin_register_timer(FREQ / 67, 1, _timer_isr); + _gray_rb->timer_register(1, NULL, FREQ / 67, 1, _timer_isr); } else { - _gray_rb->plugin_unregister_timer(); + _gray_rb->timer_unregister(); _gray_info.flags &= ~_GRAY_RUNNING; _gray_rb->lcd_update(); /* restore whatever there was before */ } -- cgit v1.1