Add USB host trace output to show EP0 configuration
This commit is contained in:
parent
b328c51037
commit
4055b08ded
@ -3663,6 +3663,7 @@ static int sam_ep0configure(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep0,
|
||||
{
|
||||
struct sam_epinfo_s *epinfo = (struct sam_epinfo_s *)ep0;
|
||||
|
||||
usbhost_vtrace2(EHCI_VTRACE2_EP0CONFIG, speed, funcaddr);
|
||||
DEBUGASSERT(drvr != NULL && epinfo != NULL && maxpacketsize < 2048);
|
||||
|
||||
/* We must have exclusive access to the EHCI data structures. */
|
||||
|
@ -2438,6 +2438,7 @@ static int sam_ep0configure(struct usbhost_driver_s *drvr, usbhost_ep_t ep0,
|
||||
struct sam_ed_s *edctrl;
|
||||
uint32_t hwctrl;
|
||||
|
||||
usbhost_vtrace2(OHCI_VTRACE2_EP0CONFIG, speed, funcaddr);
|
||||
DEBUGASSERT(rhport && maxpacketsize < 2048);
|
||||
|
||||
edctrl = ep0list->ed;
|
||||
|
@ -165,6 +165,7 @@ static const struct sam_usbhost_trace_s g_trace2[TRACE2_NSTRINGS] =
|
||||
TRENTRY(OHCI_TRACE2_CLASSENUM_FAILED, TR_OHCI, TR_FMT2, "OHCI Hub port %d usbhost_enumerate() failed: %d\n"),
|
||||
|
||||
#ifdef HAVE_USBHOST_TRACE_VERBOSE
|
||||
TRENTRY(OHCI_VTRACE2_EP0CONFIG, TR_OHCI, TR_FMT2, "OHCI EP0 configure speed=%d funcaddr=%d\n"),
|
||||
TRENTRY(OHCI_VTRACE2_INTERVAL, TR_OHCI, TR_FMT2, "OHCI interval: %d->%d\n"),
|
||||
TRENTRY(OHCI_VTRACE2_MININTERVAL, TR_OHCI, TR_FMT2, "OHCI MIN interval: %d offset: %d\n"),
|
||||
TRENTRY(OHCI_VTRACE2_RHPORTST, TR_OHCI, TR_FMT2, "OHCI RHPORTST%d: %04x\n"),
|
||||
@ -186,6 +187,7 @@ static const struct sam_usbhost_trace_s g_trace2[TRACE2_NSTRINGS] =
|
||||
TRENTRY(EHCI_TRACE2_CLASSENUM_FAILED, TR_EHCI, TR_FMT2, "EHCI Hub port %d usbhost_enumerate() failed: %d\n"),
|
||||
|
||||
#ifdef HAVE_USBHOST_TRACE_VERBOSE
|
||||
TRENTRY(EHCI_VTRACE2_EP0CONFIG, TR_EHCI, TR_FMT2, "EHCI EP0 configure speed=%d funcaddr=%d\n"),
|
||||
TRENTRY(EHCI_VTRACE2_ASYNCXFR, TR_EHCI, TR_FMT2, "EHCI Async transfer EP%d buflen=%d\n"),
|
||||
TRENTRY(EHCI_VTRACE2_INTRXFR, TR_EHCI, TR_FMT2, "EHCI Intr Transfer EP%d buflen=%d\n"),
|
||||
TRENTRY(EHCI_VTRACE2_IOCCHECK, TR_EHCI, TR_FMT2, "EHCI IOC EP%d TOKEN=%04x\n"),
|
||||
|
@ -150,6 +150,7 @@ enum usbhost_trace1codes_e
|
||||
OHCI_TRACE2_CLASSENUM_FAILED, /* OHCI usbhost_enumerate() failed */
|
||||
|
||||
#ifdef HAVE_USBHOST_TRACE_VERBOSE
|
||||
OHCI_VTRACE2_EP0CONFIG, /* OHCI EP0 configuration */
|
||||
OHCI_VTRACE2_INTERVAL, /* OHCI interval */
|
||||
OHCI_VTRACE2_MININTERVAL, /* OHCI MIN interval/offset */
|
||||
OHCI_VTRACE2_RHPORTST, /* OHCI RHPORTST */
|
||||
@ -171,6 +172,7 @@ enum usbhost_trace1codes_e
|
||||
EHCI_TRACE2_CLASSENUM_FAILED, /* EHCI usbhost_enumerate() failed */
|
||||
|
||||
#ifdef HAVE_USBHOST_TRACE_VERBOSE
|
||||
EHCI_VTRACE2_EP0CONFIG, /* EHCI EP0 configuration */
|
||||
EHCI_VTRACE2_ASYNCXFR, /* EHCI Async transfer */
|
||||
EHCI_VTRACE2_INTRXFR, /* EHCI Interrupt Transfer */
|
||||
EHCI_VTRACE2_IOCCHECK, /* EHCI IOC */
|
||||
|
Loading…
Reference in New Issue
Block a user