summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorTorne Wuff <torne@wolfpuppy.org.uk>2010-06-06 08:46:09 +0000
committerTorne Wuff <torne@wolfpuppy.org.uk>2010-06-06 08:46:09 +0000
commit6778fa8608565c44cfc2a27dd115da0d400879cc (patch)
tree363fffb3f15e2def798b2e9dd4ab4734498260fd /apps
parent1445c3b8c5a88e5f6e5540c266ffb5ee5bf4a3f7 (diff)
downloadrockbox-6778fa8608565c44cfc2a27dd115da0d400879cc.tar.gz
rockbox-6778fa8608565c44cfc2a27dd115da0d400879cc.tar.bz2
rockbox-6778fa8608565c44cfc2a27dd115da0d400879cc.zip
Add the GPIO output-enable bits to the debug screen on PP502x
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26614 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/debug_menu.c30
1 files changed, 21 insertions, 9 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 1814bfbb7c..fce3e7aaf8 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1118,23 +1118,35 @@ bool dbg_ports(void)
{
line = 0;
#if (LCD_HEIGHT >= 176) /* Only for displays with appropriate height. */
- lcd_puts(0, line++, "GPIO ENABLE:");
- lcd_putsf(0, line++, "A: %02x E: %02x I: %02x",
+ lcd_puts(0, line++, "GPIO ENABLE: GPIO OUTPUT ENABLE:");
+ lcd_putsf(0, line++, "A: %02x E: %02x I: %02x 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)GPIOI_ENABLE,
+ (unsigned int)GPIOA_OUTPUT_EN,
+ (unsigned int)GPIOE_OUTPUT_EN,
+ (unsigned int)GPIOI_OUTPUT_EN);
+ lcd_putsf(0, line++, "B: %02x F: %02x J: %02x 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)GPIOJ_ENABLE,
+ (unsigned int)GPIOB_OUTPUT_EN,
+ (unsigned int)GPIOF_OUTPUT_EN,
+ (unsigned int)GPIOJ_OUTPUT_EN);
+ lcd_putsf(0, line++, "C: %02x G: %02x K: %02x 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)GPIOK_ENABLE,
+ (unsigned int)GPIOC_OUTPUT_EN,
+ (unsigned int)GPIOG_OUTPUT_EN,
+ (unsigned int)GPIOK_OUTPUT_EN);
+ lcd_putsf(0, line++, "D: %02x H: %02x L: %02x D: %02x H: %02x L: %02x",
(unsigned int)GPIOD_ENABLE,
(unsigned int)GPIOH_ENABLE,
- (unsigned int)GPIOL_ENABLE);
+ (unsigned int)GPIOL_ENABLE,
+ (unsigned int)GPIOD_OUTPUT_EN,
+ (unsigned int)GPIOH_OUTPUT_EN,
+ (unsigned int)GPIOL_OUTPUT_EN);
line++;
#endif
lcd_puts(0, line++, "GPIO INPUT VAL:");