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: Rombox: won't charge when batteries are dead

Re: Rombox: won't charge when batteries are dead

From: Magnus Holmgren <lear_at_algonet.se>
Date: Wed, 16 Jul 2003 15:42:53 +0200

Nix wrote:

>> So adc.c could be moved quite high up, it doesn't seem to depend on just
>>about anything except the kernel, then power_init() could be moved a bit
>>higher up?
>
>
> Alternatively, you could initialize current_channel to 7, not 0; or read
> the lot at once in adc_init() to initialize properly without an 8 tick
> delay.

Nope, you can't read it directly. The ADC needs some time to convert the
value (I think it takes about ~28 Ás with the current code). That's one
reason for doing one conversion per tick (which is a simple, and for
most purposes, good enough solution).

-- 
Magnus Holmgren
Received on 2003-07-16

Page was last modified "Sat May 23 08:12:40 2020" The Rockbox Crew