diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-03-21 14:43:04 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-03-21 14:43:04 +0000 |
commit | d5ac4c44e54db85ac18cad08635837399d752afb (patch) | |
tree | 2aa94ebcb59d4d4cdac5cf38c67ea75b3607e485 /apps | |
parent | be384e845129b677e70d877fe914f2cab0900abf (diff) | |
download | rockbox-d5ac4c44e54db85ac18cad08635837399d752afb.tar.gz rockbox-d5ac4c44e54db85ac18cad08635837399d752afb.zip |
Only show PP502x GPIOx_ENABLE on displays with appropriate height.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25275 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/debug_menu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 3a1b25f742..c9b56acb3d 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -1101,6 +1101,7 @@ bool dbg_ports(void) | |||
1101 | while(1) | 1101 | while(1) |
1102 | { | 1102 | { |
1103 | line = 0; | 1103 | line = 0; |
1104 | #if (LCD_HEIGHT / SYSFONT_HEIGHT >= 22) /* Only for displays >= 22 lines */ | ||
1104 | lcd_puts(0, line++, "GPIO ENABLE:"); | 1105 | lcd_puts(0, line++, "GPIO ENABLE:"); |
1105 | lcd_putsf(0, line++, "A: %02x E: %02x I: %02x", | 1106 | lcd_putsf(0, line++, "A: %02x E: %02x I: %02x", |
1106 | (unsigned int)GPIOA_ENABLE, | 1107 | (unsigned int)GPIOA_ENABLE, |
@@ -1119,6 +1120,7 @@ bool dbg_ports(void) | |||
1119 | (unsigned int)GPIOH_ENABLE, | 1120 | (unsigned int)GPIOH_ENABLE, |
1120 | (unsigned int)GPIOL_ENABLE); | 1121 | (unsigned int)GPIOL_ENABLE); |
1121 | line++; | 1122 | line++; |
1123 | #endif | ||
1122 | lcd_puts(0, line++, "GPIO INPUT VAL:"); | 1124 | lcd_puts(0, line++, "GPIO INPUT VAL:"); |
1123 | lcd_putsf(0, line++, "A: %02x E: %02x I: %02x", | 1125 | lcd_putsf(0, line++, "A: %02x E: %02x I: %02x", |
1124 | (unsigned int)GPIOA_INPUT_VAL, | 1126 | (unsigned int)GPIOA_INPUT_VAL, |