Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Classic holdswitch polling

Re: Classic holdswitch polling

From: Cástor Muñoz <cmvidal_at_gmail.com>
Date: Sat, 10 Mar 2012 23:40:27 +0100

On Sat, Mar 10, 2012 at 11:01 PM, Thomas Martitz <kugel_at_rockbox.org> wrote:
> Am 10.03.2012 22:55, schrieb Michael Sparmann:
>
>> On the other hand this might be responsible for quite a bit of CPU load.
>> Let's say 300us every 10ms, that's a whopping 3% of CPU load for the hold
>> switch polling alone! Does it really need to be done that often? Might cause
>> quite some battery drain.
>
>
>
> That's why I'd vote for offloading to a thread, which can run at a much
> lower rate.

Polling inside the IRQ handler is not a solution for the reasons
Michael is pointing, after a quick look at the async I2C code my first
thinking is it can be implemented easily for the Classic and seems it
could work, but need to look at the code deeply.
Received on 2012-03-10


Page was last modified "Jan 10 2012" The Rockbox Crew
aaa