dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: adc_init (was Re: Rombox: won't charge when batteries are dead)
From: Magnus Holmgren (
Date: 2003-07-16 wrote:

> 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
> Jörg

Okay, I've added patch 772577 that does this, taking about 100 µs if my
interpretation of the hardware manual is right (it waits for the
conversion to finish, so it should work even if I'm wrong about the
time). :) Seems to work fine on my player...

Magnus Holmgren

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