forked from len0rd/rockbox
Add GPIOx_ENABLE to debug screen for PP502x.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25272 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4160fd91a7
commit
7eafef09a6
1 changed files with 19 additions and 1 deletions
|
|
@ -1101,7 +1101,25 @@ bool dbg_ports(void)
|
||||||
while(1)
|
while(1)
|
||||||
{
|
{
|
||||||
line = 0;
|
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",
|
lcd_putsf(0, line++, "A: %02x E: %02x I: %02x",
|
||||||
(unsigned int)GPIOA_INPUT_VAL,
|
(unsigned int)GPIOA_INPUT_VAL,
|
||||||
(unsigned int)GPIOE_INPUT_VAL,
|
(unsigned int)GPIOE_INPUT_VAL,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue