summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233
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 /firmware/target/arm/imx233
parentea8570b48c13b7d86704652cac00934f8831b474 (diff)
imx233: debug raw and mV battery output
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30987 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx233')
-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 @@
#include "font.h"
#include "adc.h"
#include "adc-imx233.h"
+#include "powermgmt.h"
static struct
{
@@ -102,9 +103,11 @@ bool dbg_hw_info_adc(void)
lcd_clear_display();
+ /* add battery readout in mV, this it is not the direct output of a channel */
+ lcd_putsf(0, 0, "Battery(mV) %d", battery_adc_voltage());
for(unsigned i = 0; i < NUM_ADC_CHANNELS; i++)
{
- lcd_putsf(0, i, "%s %d", imx233_adc_channel_name[i],
+ lcd_putsf(0, i + 1, "%s %d", imx233_adc_channel_name[i],
adc_read(i));
}