summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-03-21 13:48:17 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-03-21 13:48:17 +0000
commit7eafef09a66b7030f54e2c033c4b00eb612e1b30 (patch)
treeb853071f0f292632d293336a0ef42fadeb2ac30a
parent4160fd91a76c34152fe40fc6c9b37354ff799a27 (diff)
downloadrockbox-7eafef09a66b7030f54e2c033c4b00eb612e1b30.zip
rockbox-7eafef09a66b7030f54e2c033c4b00eb612e1b30.tar.gz
rockbox-7eafef09a66b7030f54e2c033c4b00eb612e1b30.tar.bz2
rockbox-7eafef09a66b7030f54e2c033c4b00eb612e1b30.tar.xz
Add GPIOx_ENABLE to debug screen for PP502x.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25272 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/debug_menu.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 3e54f99..3a1b25f 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1101,7 +1101,25 @@ bool dbg_ports(void)
while(1)
{
line = 0;
- lcd_puts(0, line++, "GPIO STATES:");
+ lcd_puts(0, line++, "GPIO ENABLE:");
+ lcd_putsf(0, line++, "A: %02x E: %02x I: %02x",
+ (unsigned int)GPIOA_ENABLE,
+ (unsigned int)GPIOE_ENABLE,
+ (unsigned int)GPIOI_ENABLE);
+ lcd_putsf(0, line++, "B: %02x F: %02x J: %02x",
+ (unsigned int)GPIOB_ENABLE,
+ (unsigned int)GPIOF_ENABLE,
+ (unsigned int)GPIOJ_ENABLE);
+ lcd_putsf(0, line++, "C: %02x G: %02x K: %02x",
+ (unsigned int)GPIOC_ENABLE,
+ (unsigned int)GPIOG_ENABLE,
+ (unsigned int)GPIOK_ENABLE);
+ lcd_putsf(0, line++, "D: %02x H: %02x L: %02x",
+ (unsigned int)GPIOD_ENABLE,
+ (unsigned int)GPIOH_ENABLE,
+ (unsigned int)GPIOL_ENABLE);
+ line++;
+ lcd_puts(0, line++, "GPIO INPUT VAL:");
lcd_putsf(0, line++, "A: %02x E: %02x I: %02x",
(unsigned int)GPIOA_INPUT_VAL,
(unsigned int)GPIOE_INPUT_VAL,