mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -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
|
|
@ -103,7 +103,8 @@
|
|||
#include "appevents.h"
|
||||
|
||||
#if CONFIG_CPU == DM320 || CONFIG_CPU == S3C2440 || CONFIG_CPU == TCC7801 \
|
||||
|| CONFIG_CPU == IMX31L || CONFIG_CPU == AS3525 || CONFIG_CPU == JZ4732
|
||||
|| CONFIG_CPU == IMX31L || CONFIG_CPU == AS3525 || CONFIG_CPU == JZ4732 \
|
||||
|| defined(CPU_S5L870X)
|
||||
#include "debug-target.h"
|
||||
#endif
|
||||
|
||||
|
|
@ -2705,7 +2706,7 @@ static const struct the_menu_item menuitems[] = {
|
|||
#endif
|
||||
#if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || defined(CPU_PP) \
|
||||
|| CONFIG_CPU == S3C2440 || CONFIG_CPU == IMX31L || CONFIG_CPU == AS3525 \
|
||||
|| CONFIG_CPU == DM320
|
||||
|| CONFIG_CPU == DM320 || defined(CPU_S5L870X)
|
||||
{ "View I/O ports", dbg_ports },
|
||||
#endif
|
||||
#if (CONFIG_RTC == RTC_PCF50605) && !defined(SIMULATOR)
|
||||
|
|
|
|||
|
|
@ -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