summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-11-14 21:45:18 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-11-14 21:45:18 +0000
commit4359b40cf1aa352abfc724f89161e4cd8ed8888c (patch)
treec7892bd9ea79c6a3e81812c26cb7780aff24bd9b
parentea8570b48c13b7d86704652cac00934f8831b474 (diff)
downloadrockbox-4359b40cf1aa352abfc724f89161e4cd8ed8888c.tar.gz
rockbox-4359b40cf1aa352abfc724f89161e4cd8ed8888c.zip
imx233: debug raw and mV battery output
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30987 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/imx233/debug-imx233.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/debug-imx233.c b/firmware/target/arm/imx233/debug-imx233.c
index d4f5170f7e..fdd3de695b 100644
--- a/firmware/target/arm/imx233/debug-imx233.c
+++ b/firmware/target/arm/imx233/debug-imx233.c
@@ -27,6 +27,7 @@
27#include "font.h" 27#include "font.h"
28#include "adc.h" 28#include "adc.h"
29#include "adc-imx233.h" 29#include "adc-imx233.h"
30#include "powermgmt.h"
30 31
31static struct 32static struct
32{ 33{
@@ -102,9 +103,11 @@ bool dbg_hw_info_adc(void)
102 103
103 lcd_clear_display(); 104 lcd_clear_display();
104 105
106 /* add battery readout in mV, this it is not the direct output of a channel */
107 lcd_putsf(0, 0, "Battery(mV) %d", battery_adc_voltage());
105 for(unsigned i = 0; i < NUM_ADC_CHANNELS; i++) 108 for(unsigned i = 0; i < NUM_ADC_CHANNELS; i++)
106 { 109 {
107 lcd_putsf(0, i, "%s %d", imx233_adc_channel_name[i], 110 lcd_putsf(0, i + 1, "%s %d", imx233_adc_channel_name[i],
108 adc_read(i)); 111 adc_read(i));
109 } 112 }
110 113