diff options
| author | Michael Sparmann <theseven@rockbox.org> | 2010-11-14 15:08:38 +0000 |
|---|---|---|
| committer | Michael Sparmann <theseven@rockbox.org> | 2010-11-14 15:08:38 +0000 |
| commit | 59d9361f75f61172644032540f7acb3c5066dfb8 (patch) | |
| tree | df3e6a4d6bea05430caf37ac9966b52bda17f9e3 /apps/debug_menu.c | |
| parent | e95bca0f8ee9a17d2eb081e699fef3d6d7bf9dcf (diff) | |
| download | rockbox-59d9361f75f61172644032540f7acb3c5066dfb8.zip rockbox-59d9361f75f61172644032540f7acb3c5066dfb8.tar.gz rockbox-59d9361f75f61172644032540f7acb3c5066dfb8.tar.bz2 rockbox-59d9361f75f61172644032540f7acb3c5066dfb8.tar.xz | |
iPod Nano 2G: Show all PLLPMS and CLKCON values in the battery debug screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28586 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
| -rw-r--r-- | apps/debug_menu.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 7eb3df5..f9f9a29 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -1349,28 +1349,27 @@ static bool view_battery(void) lcd_putsf(17, 1, "RAW: %d.%03d V", y / 1000, y % 1000); 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); + lcd_putsf(0, 3, "PWRCON: %08x %08x", PWRCON, PWRCONEXT); + lcd_putsf(0, 4, "CLKCON: %08x %03x %03x", CLKCON, CLKCON2, CLKCON3); + lcd_putsf(0, 5, "PLL: %06x %06x %06x", PLL0PMS, PLL1PMS, PLL2PMS); x = pmu_read(0x1b) & 0xf; y = pmu_read(0x1a) * 25 + 625; - lcd_putsf(0, 5, "AUTO: %x / %d mV", x, y); + lcd_putsf(0, 6, "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); + lcd_putsf(0, 7, "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); + lcd_putsf(0, 8, "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); + lcd_putsf(0, 9, "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, 10 + 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"); |