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

Re: Use SLEEP instruction for longer (?) runtime

From: (wrong string) Ún <simel346_at_student.liu.se>
Date: Wed, 22 Jan 2003 22:50:24 +0100

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
Received on 2003-01-22

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy