USB monitor extended so that it can also be used with USB host trace data

This commit is contained in:
Gregory Nutt 2013-09-09 15:02:33 -06:00
parent be3dc67338
commit f78fc42cf0

View File

@ -172,8 +172,19 @@
/* Check if we should enable the USB monitor before starting NSH */ /* Check if we should enable the USB monitor before starting NSH */
#if !defined(HAVE_USBDEV) || !defined(CONFIG_USBDEV_TRACE) || \ #ifndef CONFIG_SYSTEM_USBMONITOR
!defined(CONFIG_SYSTEM_USBMONITOR) # undef HAVE_USBMONITOR
#endif
#ifndef HAVE_USBDEV
# undef CONFIG_USBDEV_TRACE
#endif
#ifndef HAVE_USBHOST
# undef CONFIG_USBHOST_TRACE
#endif
#if !defined(CONFIG_USBDEV_TRACE) && !defined(CONFIG_USBHOST_TRACE)
# undef HAVE_USBMONITOR # undef HAVE_USBMONITOR
#endif #endif