From 22e7c14e2e1c3048c797de0afdc3d42148e5fd91 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 4 Apr 2014 08:56:10 -0600 Subject: [PATCH] Fix a build error when only USB device tracing is enabled (from David Sidrane). Also an update to the USB tracing document --- Documentation/UsbTrace.html | 120 ++++++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) diff --git a/Documentation/UsbTrace.html b/Documentation/UsbTrace.html index e85377756ef..767b587369d 100644 --- a/Documentation/UsbTrace.html +++ b/Documentation/UsbTrace.html @@ -328,5 +328,125 @@ static int pl2303_setup(FAR struct uart_dev_s *dev) And the interrupt returns +

USB Monitor. + The USB monitor is an application in the apps/system/usbmonitor that provides a convenient way to get debug trace output. + If tracing is enabled, the USB device will save encoded trace output in in-memory buffer; + if the USB monitor is also enabled, that trace buffer will be periodically emptied and dumped to the + system logging device (the serial console in most configurations). + The following are some of the relevant configuration options: +

+ +

+ NOTE: If USB debug output is also enabled, both outputs will appear on the serial console. + However, the debug output will be asynchronous with the trace output and, hence, difficult to interpret. +