mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Implement __dbg_ports for S5L870X targets (Nano2G and Meizus)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23069 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4fe2ee0221
commit
4ff7666388
2 changed files with 17 additions and 6 deletions
|
|
@ -70,18 +70,28 @@ end:
|
|||
|
||||
bool __dbg_ports(void)
|
||||
{
|
||||
char buf[50];
|
||||
char buf[32];
|
||||
int line;
|
||||
|
||||
lcd_clear_display();
|
||||
lcd_setfont(FONT_SYSFIXED);
|
||||
|
||||
while(1)
|
||||
{
|
||||
lcd_clear_display();
|
||||
line = 0;
|
||||
|
||||
/* _DEBUG_PRINTF statements can be added here to show debug info */
|
||||
_DEBUG_PRINTF("__dbg_ports");
|
||||
_DEBUG_PRINTF("GPIO 0: %08x",(unsigned int)PDAT0);
|
||||
_DEBUG_PRINTF("GPIO 1: %08x",(unsigned int)PDAT1);
|
||||
_DEBUG_PRINTF("GPIO 2: %08x",(unsigned int)PDAT2);
|
||||
_DEBUG_PRINTF("GPIO 3: %08x",(unsigned int)PDAT3);
|
||||
_DEBUG_PRINTF("GPIO 4: %08x",(unsigned int)PDAT4);
|
||||
_DEBUG_PRINTF("GPIO 5: %08x",(unsigned int)PDAT5);
|
||||
_DEBUG_PRINTF("GPIO 6: %08x",(unsigned int)PDAT6);
|
||||
_DEBUG_PRINTF("GPIO 7: %08x",(unsigned int)PDAT7);
|
||||
_DEBUG_PRINTF("GPIO 10: %08x",(unsigned int)PDAT10);
|
||||
_DEBUG_PRINTF("GPIO 11: %08x",(unsigned int)PDAT11);
|
||||
_DEBUG_PRINTF("GPIO 13: %08x",(unsigned int)PDAT13);
|
||||
_DEBUG_PRINTF("GPIO 14: %08x",(unsigned int)PDAT14);
|
||||
|
||||
lcd_update();
|
||||
if (button_get_w_tmo(HZ/10) == (DEBUG_CANCEL|BUTTON_REL))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue