diff options
| author | Michael Sparmann <theseven@rockbox.org> | 2010-02-17 15:57:53 +0000 |
|---|---|---|
| committer | Michael Sparmann <theseven@rockbox.org> | 2010-02-17 15:57:53 +0000 |
| commit | e5c815272dc8436f487c3b6ed238d80910f0fde0 (patch) | |
| tree | 9aaec54573b7abe28b5d0b4db98d36abdf3e39d5 /apps/debug_menu.c | |
| parent | b3c18aeb4da93fe07a5021ad0405c2349d7d793e (diff) | |
| download | rockbox-e5c815272dc8436f487c3b6ed238d80910f0fde0.zip rockbox-e5c815272dc8436f487c3b6ed238d80910f0fde0.tar.gz rockbox-e5c815272dc8436f487c3b6ed238d80910f0fde0.tar.bz2 rockbox-e5c815272dc8436f487c3b6ed238d80910f0fde0.tar.xz | |
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
Diffstat (limited to 'apps/debug_menu.c')
| -rw-r--r-- | apps/debug_menu.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index aba3964..c8f7cf1 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"); |