1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Andree Buschmann 2010-03-21 14:43:04 +00:00
parent be384e8451
commit d5ac4c44e5

View file

@ -1101,6 +1101,7 @@ bool dbg_ports(void)
while(1)
{
line = 0;
#if (LCD_HEIGHT / SYSFONT_HEIGHT >= 22) /* Only for displays >= 22 lines */
lcd_puts(0, line++, "GPIO ENABLE:");
lcd_putsf(0, line++, "A: %02x E: %02x I: %02x",
(unsigned int)GPIOA_ENABLE,
@ -1119,6 +1120,7 @@ bool dbg_ports(void)
(unsigned int)GPIOH_ENABLE,
(unsigned int)GPIOL_ENABLE);
line++;
#endif
lcd_puts(0, line++, "GPIO INPUT VAL:");
lcd_putsf(0, line++, "A: %02x E: %02x I: %02x",
(unsigned int)GPIOA_INPUT_VAL,