From 9e8fe0e4c662d3d5c26ea2f1f64c7da66cf3ce04 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 30 Oct 2006 11:33:38 +0000 Subject: General: changed local adc to voltage conversions in several places to use battery_voltage. Added battery_read_info function for unfiltered battery information. x5: removed adc_read as a distinct function. Removed adc tick task. adc_init is empty inline. Adjusted battery scale, voltage to level array and read 10 bits from the ADC for battery since 255 levels is not enough for true centivolt resolution. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11396 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/coldfire/iaudio/x5/pcf50606-x5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/target/coldfire/iaudio/x5/pcf50606-x5.c') diff --git a/firmware/target/coldfire/iaudio/x5/pcf50606-x5.c b/firmware/target/coldfire/iaudio/x5/pcf50606-x5.c index 3443d1e567..59140667ef 100644 --- a/firmware/target/coldfire/iaudio/x5/pcf50606-x5.c +++ b/firmware/target/coldfire/iaudio/x5/pcf50606-x5.c @@ -128,8 +128,8 @@ void GPI0(void) if (data[2] & 0x06) { /* ACDINS/ACDREM */ - /* Check if adc_scan should actually scan main buttons or not - - bias towards "yes" out of paranoia. */ + /* Check if main buttons should be actually be scanned or not + - bias towards "yes" out of paranoia. */ button_enable_scan((data[2] & 0x02) != 0 || (pcf50606_read(0x33) & 0x01) != 0); } -- cgit v1.2.3