From e5c815272dc8436f487c3b6ed238d80910f0fde0 Mon Sep 17 00:00:00 2001 From: Michael Sparmann Date: Wed, 17 Feb 2010 15:57:53 +0000 Subject: Add more information to the battery debug screen for Nano2G git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24723 a1c6a512-1295-4272-9138-f99709370657 --- apps/debug_menu.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'apps/debug_menu.c') diff --git a/apps/debug_menu.c b/apps/debug_menu.c index aba3964369..c8f7cf14f0 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -1648,6 +1648,28 @@ static bool view_battery(void) #elif defined(IPOD_NANO2G) y = pmu_read_battery_current(); lcd_putsf(0, 2, "Battery current: %d mA", y); + lcd_putsf(0, 3, "PWRCON: %8x", PWRCON); + lcd_putsf(0, 4, "PWRCONEXT: %8x", PWRCONEXT); + x = pmu_read(0x1b) & 0xf; + y = pmu_read(0x1a) * 25 + 625; + lcd_putsf(0, 5, "AUTO: %x / %d mV", x, y); + x = pmu_read(0x1f) & 0xf; + y = pmu_read(0x1e) * 25 + 625; + lcd_putsf(0, 6, "DOWN1: %x / %d mV", x, y); + x = pmu_read(0x23) & 0xf; + y = pmu_read(0x22) * 25 + 625; + lcd_putsf(0, 7, "DOWN2: %x / %d mV", x, y); + x = pmu_read(0x27) & 0xf; + y = pmu_read(0x26) * 100 + 900; + lcd_putsf(0, 8, "MEMLDO: %x / %d mV", x, y); + for (i = 0; i < 6; i++) + { + x = pmu_read(0x2e + (i << 1)) & 0xf; + y = pmu_read(0x2d + (i << 1)) * 100 + 900; + lcd_putsf(0, 9 + i, "LDO%d: %x / %d mV", i + 1, x, y); + } + lcd_putsf(0, 15, "CLKCON: %8x", CLKCON); + lcd_putsf(17, 15, "PLL0: %6x", PLL0PMS); #else lcd_putsf(0, 3, "Charger: %s", charger_inserted() ? "present" : "absent"); -- cgit v1.2.3