Add more trace codes

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@999 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2008-10-08 20:16:44 +00:00
parent 8c9fe4533a
commit a97678e7f3
2 changed files with 13 additions and 2 deletions

View File

@ -320,6 +320,14 @@ void usbtrace(uint16 event, uint16 value)
lldbg("Class resume(): %04x\n", value);
break;
case TRACE_CLASSRDCOMPLETE:
lldbg("Class RD request complete: %04x\n", value);
break;
case TRACE_CLASSWRCOMPLETE:
lldbg("Class WR request complete: %04x\n", value);
break;
default:
switch (TRACE_ID(event))
{
@ -369,7 +377,7 @@ void usbtrace(uint16 event, uint16 value)
default:
lldbg("Unrecognized event: %02x:%02x:%04x\n",
TRACE_ID(event), TRACE_DATA(event), value);
TRACE_ID(event) >> 8, TRACE_DATA(event), value);
break;
}
}

View File

@ -109,6 +109,9 @@
#define TRACE_CLASSSUSPEND TRACE_EVENT(TRACE_CLASS_ID, 0x0005)
#define TRACE_CLASSRESUME TRACE_EVENT(TRACE_CLASS_ID, 0x0006)
#define TRACE_CLASSRDCOMPLETE TRACE_EVENT(TRACE_CLASS_ID, 0x0007)
#define TRACE_CLASSWRCOMPLETE TRACE_EVENT(TRACE_CLASS_ID, 0x0008)
#define TRACE_CLASSAPI(id) TRACE_EVENT(TRACE_CLASSAPI_ID, id)
/* USB device controller interrupt events. The 'id' is specific to the driver.
@ -120,7 +123,7 @@
#define TRACE_INTDECODE(id) TRACE_EVENT(TRACE_INTDECODE_ID, id)
#define TRACE_INTEXIT(id) TRACE_EVENT(TRACE_INTEXIT_ID, id)
/* Data Transfer */
/* Controller data transfer */
#define TRACE_OUTREQQUEUED(ep) TRACE_EVENT(TRACE_OUTREQQUEUED_ID, ep)
#define TRACE_INREQQUEUED(ep) TRACE_EVENT(TRACE_INREQQUEUED_ID, ep)