summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-11-03 22:47:27 +0000
committerJens Arnold <amiconn@rockbox.org>2007-11-03 22:47:27 +0000
commit33acc662569ab01e0770b85a6b32c57ed340c351 (patch)
tree57608dcec79578adc0896084f5fe94f5bff87239 /apps/debug_menu.c
parent9784f6b7528e37ff156a694607cdc7b674ac0968 (diff)
downloadrockbox-33acc662569ab01e0770b85a6b32c57ed340c351.zip
rockbox-33acc662569ab01e0770b85a6b32c57ed340c351.tar.gz
rockbox-33acc662569ab01e0770b85a6b32c57ed340c351.tar.bz2
rockbox-33acc662569ab01e0770b85a6b32c57ed340c351.tar.xz
* Add newfound GPO32 register to pp502x.h. * Introduce macros for the PP502x's atomic GPIO bit manipulation feature. * Remove clock setup related registers from debug screen, and add DEV_EN2, DEV_EN3 (to be verified) and GPO32 instead.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15443 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 301fca8..918a969 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -622,7 +622,7 @@ static bool dbg_hw_info(void)
snprintf(buf, sizeof(buf), "Est. clock (kHz): %d", perfcheck());
lcd_puts(0, line++, buf);
-
+
lcd_update();
while (!(action_userabort(TIMEOUT_BLOCK)));
@@ -651,7 +651,7 @@ static bool dbg_hw_info(void)
lcd_puts(0, line++, buf);
snprintf(buf, sizeof(buf), "Est. clock (kHz): %d", perfcheck());
- lcd_puts(0, line++, buf);
+ lcd_puts(0, line++, buf);
lcd_update();
@@ -1201,19 +1201,15 @@ bool dbg_ports(void)
snprintf(buf, sizeof(buf), "GPIO_F: %02x GPIO_L: %02x", gpio_f, gpio_l);
lcd_puts(0, line++, buf);
line++;
-
- snprintf(buf, sizeof(buf), "DEV_EN: %08lx", DEV_EN);
- lcd_puts(0, line++, buf);
- snprintf(buf, sizeof(buf), "CLOCK_SRC: %08lx", CLOCK_SOURCE);
- lcd_puts(0, line++, buf);
- snprintf(buf, sizeof(buf), "CLCD_CLK_SRC: %08lx", CLCD_CLOCK_SRC);
- lcd_puts(0, line++, buf);
- snprintf(buf, sizeof(buf), "PLL_CONTROL: %08lx", PLL_CONTROL);
+
+ snprintf(buf, sizeof(buf), "GPO32: %08lx", GPO32_VAL);
lcd_puts(0, line++, buf);
- snprintf(buf, sizeof(buf), "PLL_STATUS: %08lx", PLL_STATUS);
+ snprintf(buf, sizeof(buf), "DEV_EN: %08lx", DEV_EN);
lcd_puts(0, line++, buf);
- snprintf(buf, sizeof(buf), "DEV_TIMING1: %08lx", DEV_TIMING1);
+ snprintf(buf, sizeof(buf), "DEV_EN2: %08lx", DEV_EN2);
lcd_puts(0, line++, buf);
+ snprintf(buf, sizeof(buf), "DEV_EN3: %08lx", inl(0x60006044));
+ lcd_puts(0, line++, buf); /* to be verified */
#if defined(IRIVER_H10) || defined(IRIVER_H10_5GB)
line++;