Rockbox mail archiveSubject: Re: Rombox: won't charge when batteries are dead
Re: Rombox: won't charge when batteries are dead
Date: Wed, 16 Jul 2003 16:09:24 +0200 (MEST)
> > 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).
I think adc_init() should do initial measurements, so after that's been
called you can query the values right away. I'm not concerned about this function
blocking for 8 * ~28 µs, that's still way better that waiting for 8 ticks.
Just my $0.02
-- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Jetzt ein- oder umsteigen und USB-Speicheruhr als Prämie sichern!Received on 2003-07-16