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: Use SLEEP instruction for longer (?) runtime
From: Simon ElÚn (simel346_at_student.liu.se)
Date: 2003-01-22


Bj÷rn Stenberg wrote:
> Only for players. The recorders have a working demand interrupt.

Ah, indeed they have! It seems I didn't look close enough at the source. I
assumed they were the same since docs/TECH doesn't mention any difference
between the models.

Then...

Question: In button.c the remote control is polled every tick. The comments
seems to imply that it could work interrupt-driven instead, is it possible?
If not, can the poll frequency be slowed down without problems?

The ADC is also polled every tick, but that could be changed to only poll
the lines for the keypad semi-often and the other ones more seldom.

Other than this, there seems to be nothing left (on the recorder, at least)
that needs polling more often than about 20 times/s. Now a more intelligent
scheduler seems a much better idea.

--
Simon ElÚn



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