Move apps/system/usbmonitor to nuttx/drivers/usbmonitor

This commit is contained in:
Gregory Nutt
2016-06-30 12:24:33 -06:00
parent 378b22ec07
commit 7c34a77b54
66 changed files with 575 additions and 189 deletions
+9 -9
View File
@@ -396,7 +396,7 @@ static int pl2303_setup(FAR struct uart_dev_s *dev)
</tr> </tr>
<tr> <tr>
<td width="30%" align="left" valign="top"> <td width="30%" align="left" valign="top">
<code>CONFIG_SYSTEM_USBMONITOR=y</code> <code>CONFIG_USBMONITOR=y</code>
</td> </td>
<td align="left" valign="top"> <td align="left" valign="top">
Enable the USB monitor daemon Enable the USB monitor daemon
@@ -404,7 +404,7 @@ static int pl2303_setup(FAR struct uart_dev_s *dev)
</tr> </tr>
<tr> <tr>
<td width="30%" align="left" valign="top"> <td width="30%" align="left" valign="top">
<code>CONFIG_SYSTEM_USBMONITOR_STACKSIZE=<i>nnnn</i></code> <code>CONFIG_USBMONITOR_STACKSIZE=<i>nnnn</i></code>
</td> </td>
<td align="left" valign="top"> <td align="left" valign="top">
Sets the USB monitor daemon stack size to <i>nnnn</i>. Sets the USB monitor daemon stack size to <i>nnnn</i>.
@@ -413,7 +413,7 @@ static int pl2303_setup(FAR struct uart_dev_s *dev)
</tr> </tr>
<tr> <tr>
<td width="30%" align="left" valign="top"> <td width="30%" align="left" valign="top">
<code>CONFIG_SYSTEM_USBMONITOR_PRIORITY=50</code> <code>CONFIG_USBMONITOR_PRIORITY=50</code>
</td> </td>
<td align="left" valign="top"> <td align="left" valign="top">
Sets the USB monitor daemon priority to <i>nnnn</i>. Sets the USB monitor daemon priority to <i>nnnn</i>.
@@ -423,7 +423,7 @@ static int pl2303_setup(FAR struct uart_dev_s *dev)
</tr> </tr>
<tr> <tr>
<td width="30%" align="left" valign="top"> <td width="30%" align="left" valign="top">
<code>CONFIG_SYSTEM_USBMONITOR_INTERVAL=<i>nnnn</i></code> <code>CONFIG_USBMONITOR_INTERVAL=<i>nnnn</i></code>
</td> </td>
<td align="left" valign="top"> <td align="left" valign="top">
Dump the buffered USB data every <i>nnnn</i> seconds. Dump the buffered USB data every <i>nnnn</i> seconds.
@@ -432,11 +432,11 @@ static int pl2303_setup(FAR struct uart_dev_s *dev)
</tr> </tr>
<tr> <tr>
<td width="30%" align="left" valign="top"> <td width="30%" align="left" valign="top">
<code>CONFIG_SYSTEM_USBMONITOR_TRACEINIT=y</code><br> <code>CONFIG_USBMONITOR_TRACEINIT=y</code><br>
<code>CONFIG_SYSTEM_USBMONITOR_TRACECLASS=y</code><br> <code>CONFIG_USBMONITOR_TRACECLASS=y</code><br>
<code>CONFIG_SYSTEM_USBMONITOR_TRACETRANSFERS=y</code><br> <code>CONFIG_USBMONITOR_TRACETRANSFERS=y</code><br>
<code>CONFIG_SYSTEM_USBMONITOR_TRACECONTROLLER=y</code><br> <code>CONFIG_USBMONITOR_TRACECONTROLLER=y</code><br>
<code>CONFIG_SYSTEM_USBMONITOR_TRACEINTERRUPTS=y</code><br> <code>CONFIG_USBMONITOR_TRACEINTERRUPTS=y</code><br>
</td> </td>
<td align="left" valign="top"> <td align="left" valign="top">
Selects which USB event(s) that you want to be traced. Selects which USB event(s) that you want to be traced.
+1 -1
View File
@@ -785,6 +785,6 @@ CONFIG_EXAMPLES_USBSERIAL_BUFSIZE=512
# CONFIG_SYSTEM_READLINE is not set # CONFIG_SYSTEM_READLINE is not set
# CONFIG_SYSTEM_SUDOKU is not set # CONFIG_SYSTEM_SUDOKU is not set
# CONFIG_SYSTEM_UBLOXMODEM is not set # CONFIG_SYSTEM_UBLOXMODEM is not set
# CONFIG_SYSTEM_USBMONITOR is not set # CONFIG_USBMONITOR is not set
# CONFIG_SYSTEM_VI is not set # CONFIG_SYSTEM_VI is not set
# CONFIG_SYSTEM_ZMODEM is not set # CONFIG_SYSTEM_ZMODEM is not set
+9 -9
View File
@@ -667,16 +667,16 @@ Where <subdir> is one of the following:
CONFIG_USBDEV_TRACE_NRECORDS=128 : Buffer 128 records in memory CONFIG_USBDEV_TRACE_NRECORDS=128 : Buffer 128 records in memory
CONFIG_NSH_USBDEV_TRACE=n : No builtin tracing from NSH CONFIG_NSH_USBDEV_TRACE=n : No builtin tracing from NSH
CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor
CONFIG_SYSTEM_USBMONITOR=y : Enable the USB monitor daemon CONFIG_USBMONITOR=y : Enable the USB monitor daemon
CONFIG_SYSTEM_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size CONFIG_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size
CONFIG_SYSTEM_USBMONITOR_PRIORITY=50 : USB monitor daemon priority CONFIG_USBMONITOR_PRIORITY=50 : USB monitor daemon priority
CONFIG_SYSTEM_USBMONITOR_INTERVAL=2 : Dump trace data every 2 seconds CONFIG_USBMONITOR_INTERVAL=2 : Dump trace data every 2 seconds
CONFIG_SYSTEM_USBMONITOR_TRACEINIT=y : Enable TRACE output CONFIG_USBMONITOR_TRACEINIT=y : Enable TRACE output
CONFIG_SYSTEM_USBMONITOR_TRACECLASS=y CONFIG_USBMONITOR_TRACECLASS=y
CONFIG_SYSTEM_USBMONITOR_TRACETRANSFERS=y CONFIG_USBMONITOR_TRACETRANSFERS=y
CONFIG_SYSTEM_USBMONITOR_TRACECONTROLLER=y CONFIG_USBMONITOR_TRACECONTROLLER=y
CONFIG_SYSTEM_USBMONITOR_TRACEINTERRUPTS=y CONFIG_USBMONITOR_TRACEINTERRUPTS=y
Using the Prolifics PL2303 Emulation Using the Prolifics PL2303 Emulation
+1 -1
View File
@@ -1426,7 +1426,7 @@ CONFIG_READLINE_ECHO=y
# CONFIG_READLINE_CMD_HISTORY is not set # CONFIG_READLINE_CMD_HISTORY is not set
# CONFIG_SYSTEM_SUDOKU is not set # CONFIG_SYSTEM_SUDOKU is not set
# CONFIG_SYSTEM_UBLOXMODEM is not set # CONFIG_SYSTEM_UBLOXMODEM is not set
# CONFIG_SYSTEM_USBMONITOR is not set # CONFIG_USBMONITOR is not set
CONFIG_SYSTEM_USBMSC=y CONFIG_SYSTEM_USBMSC=y
CONFIG_SYSTEM_USBMSC_NLUNS=1 CONFIG_SYSTEM_USBMSC_NLUNS=1
CONFIG_SYSTEM_USBMSC_DEVMINOR1=0 CONFIG_SYSTEM_USBMSC_DEVMINOR1=0
+1 -1
View File
@@ -1129,6 +1129,6 @@ CONFIG_READLINE_ECHO=y
# CONFIG_READLINE_CMD_HISTORY is not set # CONFIG_READLINE_CMD_HISTORY is not set
# CONFIG_SYSTEM_SUDOKU is not set # CONFIG_SYSTEM_SUDOKU is not set
# CONFIG_SYSTEM_UBLOXMODEM is not set # CONFIG_SYSTEM_UBLOXMODEM is not set
# CONFIG_SYSTEM_USBMONITOR is not set # CONFIG_USBMONITOR is not set
# CONFIG_SYSTEM_VI is not set # CONFIG_SYSTEM_VI is not set
# CONFIG_SYSTEM_ZMODEM is not set # CONFIG_SYSTEM_ZMODEM is not set
+1 -1
View File
@@ -1345,6 +1345,6 @@ CONFIG_READLINE_ECHO=y
# CONFIG_READLINE_CMD_HISTORY is not set # CONFIG_READLINE_CMD_HISTORY is not set
# CONFIG_SYSTEM_SUDOKU is not set # CONFIG_SYSTEM_SUDOKU is not set
# CONFIG_SYSTEM_UBLOXMODEM is not set # CONFIG_SYSTEM_UBLOXMODEM is not set
# CONFIG_SYSTEM_USBMONITOR is not set # CONFIG_USBMONITOR is not set
# CONFIG_SYSTEM_VI is not set # CONFIG_SYSTEM_VI is not set
# CONFIG_SYSTEM_ZMODEM is not set # CONFIG_SYSTEM_ZMODEM is not set
+1 -1
View File
@@ -1166,6 +1166,6 @@ CONFIG_READLINE_ECHO=y
# CONFIG_READLINE_CMD_HISTORY is not set # CONFIG_READLINE_CMD_HISTORY is not set
# CONFIG_SYSTEM_SUDOKU is not set # CONFIG_SYSTEM_SUDOKU is not set
# CONFIG_SYSTEM_UBLOXMODEM is not set # CONFIG_SYSTEM_UBLOXMODEM is not set
# CONFIG_SYSTEM_USBMONITOR is not set # CONFIG_USBMONITOR is not set
# CONFIG_SYSTEM_VI is not set # CONFIG_SYSTEM_VI is not set
# CONFIG_SYSTEM_ZMODEM is not set # CONFIG_SYSTEM_ZMODEM is not set
+1 -1
View File
@@ -853,7 +853,7 @@ CONFIG_SYSTEM_COMPOSITE_BUFSIZE=256
# CONFIG_SYSTEM_READLINE is not set # CONFIG_SYSTEM_READLINE is not set
# CONFIG_SYSTEM_SUDOKU is not set # CONFIG_SYSTEM_SUDOKU is not set
# CONFIG_SYSTEM_UBLOXMODEM is not set # CONFIG_SYSTEM_UBLOXMODEM is not set
# CONFIG_SYSTEM_USBMONITOR is not set # CONFIG_USBMONITOR is not set
# CONFIG_SYSTEM_USBMSC is not set # CONFIG_SYSTEM_USBMSC is not set
# CONFIG_SYSTEM_VI is not set # CONFIG_SYSTEM_VI is not set
# CONFIG_SYSTEM_ZMODEM is not set # CONFIG_SYSTEM_ZMODEM is not set
+1 -1
View File
@@ -800,7 +800,7 @@ CONFIG_ARCH_HAVE_TLS=y
# CONFIG_SYSTEM_READLINE is not set # CONFIG_SYSTEM_READLINE is not set
# CONFIG_SYSTEM_SUDOKU is not set # CONFIG_SYSTEM_SUDOKU is not set
# CONFIG_SYSTEM_UBLOXMODEM is not set # CONFIG_SYSTEM_UBLOXMODEM is not set
# CONFIG_SYSTEM_USBMONITOR is not set # CONFIG_USBMONITOR is not set
CONFIG_SYSTEM_USBMSC=y CONFIG_SYSTEM_USBMSC=y
CONFIG_SYSTEM_USBMSC_NLUNS=1 CONFIG_SYSTEM_USBMSC_NLUNS=1
CONFIG_SYSTEM_USBMSC_DEVMINOR1=0 CONFIG_SYSTEM_USBMSC_DEVMINOR1=0
+9 -9
View File
@@ -925,16 +925,16 @@ Where <subdir> is one of the following:
CONFIG_USBDEV_TRACE_NRECORDS=128 : Buffer 128 records in memory CONFIG_USBDEV_TRACE_NRECORDS=128 : Buffer 128 records in memory
CONFIG_NSH_USBDEV_TRACE=n : No builtin tracing from NSH CONFIG_NSH_USBDEV_TRACE=n : No builtin tracing from NSH
CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor
CONFIG_SYSTEM_USBMONITOR=y : Enable the USB monitor daemon CONFIG_USBMONITOR=y : Enable the USB monitor daemon
CONFIG_SYSTEM_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size CONFIG_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size
CONFIG_SYSTEM_USBMONITOR_PRIORITY=50 : USB monitor daemon priority CONFIG_USBMONITOR_PRIORITY=50 : USB monitor daemon priority
CONFIG_SYSTEM_USBMONITOR_INTERVAL=2 : Dump trace data every 2 seconds CONFIG_USBMONITOR_INTERVAL=2 : Dump trace data every 2 seconds
CONFIG_SYSTEM_USBMONITOR_TRACEINIT=y : Enable TRACE output CONFIG_USBMONITOR_TRACEINIT=y : Enable TRACE output
CONFIG_SYSTEM_USBMONITOR_TRACECLASS=y CONFIG_USBMONITOR_TRACECLASS=y
CONFIG_SYSTEM_USBMONITOR_TRACETRANSFERS=y CONFIG_USBMONITOR_TRACETRANSFERS=y
CONFIG_SYSTEM_USBMONITOR_TRACECONTROLLER=y CONFIG_USBMONITOR_TRACECONTROLLER=y
CONFIG_SYSTEM_USBMONITOR_TRACEINTERRUPTS=y CONFIG_USBMONITOR_TRACEINTERRUPTS=y
5. By default, this project assumes that you are *NOT* using the DFU 5. By default, this project assumes that you are *NOT* using the DFU
bootloader. bootloader.
+2 -2
View File
@@ -55,7 +55,7 @@
# include <nuttx/mtd/mtd.h> # include <nuttx/mtd/mtd.h>
#endif #endif
#ifdef CONFIG_SYSTEM_USBMONITOR #ifdef CONFIG_USBMONITOR
# include <apps/usbmonitor.h> # include <apps/usbmonitor.h>
#endif #endif
@@ -110,7 +110,7 @@
/* Check if we should enable the USB monitor before starting NSH */ /* Check if we should enable the USB monitor before starting NSH */
#if !defined(CONFIG_USBDEV_TRACE) || !defined(CONFIG_SYSTEM_USBMONITOR) #if !defined(CONFIG_USBDEV_TRACE) || !defined(CONFIG_USBMONITOR)
# undef HAVE_USBMONITOR # undef HAVE_USBMONITOR
#endif #endif
+2 -2
View File
@@ -827,8 +827,8 @@ Configurations
CONFIG_USBHOST_TRACE_VERBOSE=y CONFIG_USBHOST_TRACE_VERBOSE=y
Application Configuration -> System Add-Ons Application Configuration -> System Add-Ons
CONFIG_SYSTEM_USBMONITOR=y CONFIG_USBMONITOR=y
CONFIG_SYSTEM_USBMONITOR_INTERVAL=1 CONFIG_USBMONITOR_INTERVAL=1
NOTE: I have found that if you enable USB DEBUG and/or USB tracing, NOTE: I have found that if you enable USB DEBUG and/or USB tracing,
the resulting image requires to much memory to execute out of the resulting image requires to much memory to execute out of
+1 -1
View File
@@ -46,7 +46,7 @@
#include <nuttx/board.h> #include <nuttx/board.h>
#ifdef CONFIG_SYSTEM_USBMONITOR #ifdef CONFIG_USBMONITOR
# include <apps/usbmonitor.h> # include <apps/usbmonitor.h>
#endif #endif
+1 -1
View File
@@ -82,7 +82,7 @@
# undef CONFIG_USBHOST_TRACE # undef CONFIG_USBHOST_TRACE
#endif #endif
#if !defined(CONFIG_SYSTEM_USBMONITOR) || !defined(CONFIG_USBHOST_TRACE) #if !defined(CONFIG_USBMONITOR) || !defined(CONFIG_USBHOST_TRACE)
# undef HAVE_USBMONITOR # undef HAVE_USBMONITOR
#endif #endif
@@ -84,7 +84,7 @@
/* Check if we should enable the USB monitor before starting NSH */ /* Check if we should enable the USB monitor before starting NSH */
#if !defined(CONFIG_USBDEV_TRACE) || !defined(CONFIG_SYSTEM_USBMONITOR) #if !defined(CONFIG_USBDEV_TRACE) || !defined(CONFIG_USBMONITOR)
# undef HAVE_USBMONITOR # undef HAVE_USBMONITOR
#endif #endif
@@ -46,7 +46,7 @@
#include <nuttx/board.h> #include <nuttx/board.h>
#ifdef CONFIG_SYSTEM_USBMONITOR #ifdef CONFIG_USBMONITOR
# include <apps/usbmonitor.h> # include <apps/usbmonitor.h>
#endif #endif
@@ -91,7 +91,7 @@
/* Check if we should enable the USB monitor before starting NSH */ /* Check if we should enable the USB monitor before starting NSH */
#if !defined(CONFIG_USBDEV_TRACE) || !defined(CONFIG_SYSTEM_USBMONITOR) #if !defined(CONFIG_USBDEV_TRACE) || !defined(CONFIG_USBMONITOR)
# undef HAVE_USBMONITOR # undef HAVE_USBMONITOR
#endif #endif
@@ -46,7 +46,7 @@
#include <nuttx/board.h> #include <nuttx/board.h>
#ifdef CONFIG_SYSTEM_USBMONITOR #ifdef CONFIG_USBMONITOR
# include <apps/usbmonitor.h> # include <apps/usbmonitor.h>
#endif #endif
@@ -78,7 +78,7 @@
/* Check if we should enable the USB monitor before starting NSH */ /* Check if we should enable the USB monitor before starting NSH */
#if !defined(CONFIG_USBDEV_TRACE) || !defined(CONFIG_SYSTEM_USBMONITOR) #if !defined(CONFIG_USBDEV_TRACE) || !defined(CONFIG_USBMONITOR)
# undef HAVE_USBMONITOR # undef HAVE_USBMONITOR
#endif #endif
@@ -46,7 +46,7 @@
#include <nuttx/board.h> #include <nuttx/board.h>
#ifdef CONFIG_SYSTEM_USBMONITOR #ifdef CONFIG_USBMONITOR
# include <apps/usbmonitor.h> # include <apps/usbmonitor.h>
#endif #endif
@@ -46,7 +46,7 @@
#include <nuttx/board.h> #include <nuttx/board.h>
#ifdef CONFIG_SYSTEM_USBMONITOR #ifdef CONFIG_USBMONITOR
# include <apps/usbmonitor.h> # include <apps/usbmonitor.h>
#endif #endif
@@ -46,7 +46,7 @@
#include <nuttx/board.h> #include <nuttx/board.h>
#ifdef CONFIG_SYSTEM_USBMONITOR #ifdef CONFIG_USBMONITOR
# include <apps/usbmonitor.h> # include <apps/usbmonitor.h>
#endif #endif
@@ -90,7 +90,7 @@
/* Check if we should enable the USB monitor before starting NSH */ /* Check if we should enable the USB monitor before starting NSH */
#if !defined(CONFIG_USBDEV_TRACE) || !defined(CONFIG_SYSTEM_USBMONITOR) #if !defined(CONFIG_USBDEV_TRACE) || !defined(CONFIG_USBMONITOR)
# undef HAVE_USBMONITOR # undef HAVE_USBMONITOR
#endif #endif
+1 -1
View File
@@ -49,7 +49,7 @@
#include <nuttx/kmalloc.h> #include <nuttx/kmalloc.h>
#include <nuttx/mmcsd.h> #include <nuttx/mmcsd.h>
#ifdef CONFIG_SYSTEM_USBMONITOR #ifdef CONFIG_USBMONITOR
# include <apps/usbmonitor.h> # include <apps/usbmonitor.h>
#endif #endif
+9 -9
View File
@@ -837,15 +837,15 @@ USB Full-Speed Device
CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor
Application Configuration -> System NSH Add-Ons: Application Configuration -> System NSH Add-Ons:
CONFIG_SYSTEM_USBMONITOR=y : Enable the USB monitor daemon CONFIG_USBMONITOR=y : Enable the USB monitor daemon
CONFIG_SYSTEM_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size CONFIG_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size
CONFIG_SYSTEM_USBMONITOR_PRIORITY=50 : USB monitor daemon priority CONFIG_USBMONITOR_PRIORITY=50 : USB monitor daemon priority
CONFIG_SYSTEM_USBMONITOR_INTERVAL=1 : Dump trace data every second CONFIG_USBMONITOR_INTERVAL=1 : Dump trace data every second
CONFIG_SYSTEM_USBMONITOR_TRACEINIT=y : Enable TRACE output CONFIG_USBMONITOR_TRACEINIT=y : Enable TRACE output
CONFIG_SYSTEM_USBMONITOR_TRACECLASS=y CONFIG_USBMONITOR_TRACECLASS=y
CONFIG_SYSTEM_USBMONITOR_TRACETRANSFERS=y CONFIG_USBMONITOR_TRACETRANSFERS=y
CONFIG_SYSTEM_USBMONITOR_TRACECONTROLLER=y CONFIG_USBMONITOR_TRACECONTROLLER=y
CONFIG_SYSTEM_USBMONITOR_TRACEINTERRUPTS=y CONFIG_USBMONITOR_TRACEINTERRUPTS=y
NOTE: If USB debug output is also enabled, both outputs will appear on the 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 serial console. However, the debug output will be asynchronous with the
+1 -1
View File
@@ -130,7 +130,7 @@
# undef CONFIG_USBDEV_TRACE # undef CONFIG_USBDEV_TRACE
#endif #endif
#if !defined(CONFIG_SYSTEM_USBMONITOR) || !defined(CONFIG_USBDEV_TRACE) #if !defined(CONFIG_USBMONITOR) || !defined(CONFIG_USBDEV_TRACE)
# undef HAVE_USBMONITOR # undef HAVE_USBMONITOR
#endif #endif
+1 -1
View File
@@ -48,7 +48,7 @@
#include <nuttx/board.h> #include <nuttx/board.h>
#ifdef CONFIG_SYSTEM_USBMONITOR #ifdef CONFIG_USBMONITOR
# include <apps/usbmonitor.h> # include <apps/usbmonitor.h>
#endif #endif
@@ -106,7 +106,7 @@
# undef CONFIG_USBDEV_TRACE # undef CONFIG_USBDEV_TRACE
#endif #endif
#if !defined(CONFIG_SYSTEM_USBMONITOR) && !defined(CONFIG_USBDEV_TRACE) #if !defined(CONFIG_USBMONITOR) && !defined(CONFIG_USBDEV_TRACE)
# undef HAVE_USBMONITOR # undef HAVE_USBMONITOR
#endif #endif
+1 -1
View File
@@ -63,7 +63,7 @@
# include <nuttx/timers/timer.h> # include <nuttx/timers/timer.h>
#endif #endif
#ifdef CONFIG_SYSTEM_USBMONITOR #ifdef CONFIG_USBMONITOR
# include <apps/usbmonitor.h> # include <apps/usbmonitor.h>
#endif #endif
+13 -13
View File
@@ -1374,15 +1374,15 @@ USB High-Speed Device
CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor
Application Configuration -> System NSH Add-Ons: Application Configuration -> System NSH Add-Ons:
CONFIG_SYSTEM_USBMONITOR=y : Enable the USB monitor daemon CONFIG_USBMONITOR=y : Enable the USB monitor daemon
CONFIG_SYSTEM_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size CONFIG_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size
CONFIG_SYSTEM_USBMONITOR_PRIORITY=50 : USB monitor daemon priority CONFIG_USBMONITOR_PRIORITY=50 : USB monitor daemon priority
CONFIG_SYSTEM_USBMONITOR_INTERVAL=1 : Dump trace data every second CONFIG_USBMONITOR_INTERVAL=1 : Dump trace data every second
CONFIG_SYSTEM_USBMONITOR_TRACEINIT=y : Enable TRACE output CONFIG_USBMONITOR_TRACEINIT=y : Enable TRACE output
CONFIG_SYSTEM_USBMONITOR_TRACECLASS=y CONFIG_USBMONITOR_TRACECLASS=y
CONFIG_SYSTEM_USBMONITOR_TRACETRANSFERS=y CONFIG_USBMONITOR_TRACETRANSFERS=y
CONFIG_SYSTEM_USBMONITOR_TRACECONTROLLER=y CONFIG_USBMONITOR_TRACECONTROLLER=y
CONFIG_SYSTEM_USBMONITOR_TRACEINTERRUPTS=y CONFIG_USBMONITOR_TRACEINTERRUPTS=y
NOTE: If USB debug output is also enabled, both outputs will appear on the 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 serial console. However, the debug output will be asynchronous with the
@@ -1568,10 +1568,10 @@ file1: CONFIG_USBHOST_ISOC_DISABLE=y
CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor
Application Configuration -> System NSH Add-Ons: Application Configuration -> System NSH Add-Ons:
CONFIG_SYSTEM_USBMONITOR=y : Enable the USB monitor daemon CONFIG_USBMONITOR=y : Enable the USB monitor daemon
CONFIG_SYSTEM_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size CONFIG_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size
CONFIG_SYSTEM_USBMONITOR_PRIORITY=50 : USB monitor daemon priority CONFIG_USBMONITOR_PRIORITY=50 : USB monitor daemon priority
CONFIG_SYSTEM_USBMONITOR_INTERVAL=1 : Dump trace data every second CONFIG_USBMONITOR_INTERVAL=1 : Dump trace data every second
NOTE: If USB debug output is also enabled, both outpus will appear on the NOTE: If USB debug output is also enabled, both outpus will appear on the
serial console. However, the debug output will be asynchronous with the serial console. However, the debug output will be asynchronous with the
+1 -1
View File
@@ -48,7 +48,7 @@
#include <nuttx/board.h> #include <nuttx/board.h>
#ifdef CONFIG_SYSTEM_USBMONITOR #ifdef CONFIG_USBMONITOR
# include <apps/usbmonitor.h> # include <apps/usbmonitor.h>
#endif #endif
@@ -237,7 +237,7 @@
/* Check if we should enable the USB monitor before starting NSH */ /* Check if we should enable the USB monitor before starting NSH */
#ifndef CONFIG_SYSTEM_USBMONITOR #ifndef CONFIG_USBMONITOR
# undef HAVE_USBMONITOR # undef HAVE_USBMONITOR
#endif #endif
+13 -13
View File
@@ -1552,15 +1552,15 @@ USB High-Speed Device
CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor
Application Configuration -> System NSH Add-Ons: Application Configuration -> System NSH Add-Ons:
CONFIG_SYSTEM_USBMONITOR=y : Enable the USB monitor daemon CONFIG_USBMONITOR=y : Enable the USB monitor daemon
CONFIG_SYSTEM_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size CONFIG_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size
CONFIG_SYSTEM_USBMONITOR_PRIORITY=50 : USB monitor daemon priority CONFIG_USBMONITOR_PRIORITY=50 : USB monitor daemon priority
CONFIG_SYSTEM_USBMONITOR_INTERVAL=1 : Dump trace data every second CONFIG_USBMONITOR_INTERVAL=1 : Dump trace data every second
CONFIG_SYSTEM_USBMONITOR_TRACEINIT=y : Enable TRACE output CONFIG_USBMONITOR_TRACEINIT=y : Enable TRACE output
CONFIG_SYSTEM_USBMONITOR_TRACECLASS=y CONFIG_USBMONITOR_TRACECLASS=y
CONFIG_SYSTEM_USBMONITOR_TRACETRANSFERS=y CONFIG_USBMONITOR_TRACETRANSFERS=y
CONFIG_SYSTEM_USBMONITOR_TRACECONTROLLER=y CONFIG_USBMONITOR_TRACECONTROLLER=y
CONFIG_SYSTEM_USBMONITOR_TRACEINTERRUPTS=y CONFIG_USBMONITOR_TRACEINTERRUPTS=y
NOTE: If USB debug output is also enabled, both outputs will appear on the 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 serial console. However, the debug output will be asynchronous with the
@@ -1736,10 +1736,10 @@ USB High-Speed Host
CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor
Application Configuration -> System NSH Add-Ons: Application Configuration -> System NSH Add-Ons:
CONFIG_SYSTEM_USBMONITOR=y : Enable the USB monitor daemon CONFIG_USBMONITOR=y : Enable the USB monitor daemon
CONFIG_SYSTEM_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size CONFIG_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size
CONFIG_SYSTEM_USBMONITOR_PRIORITY=50 : USB monitor daemon priority CONFIG_USBMONITOR_PRIORITY=50 : USB monitor daemon priority
CONFIG_SYSTEM_USBMONITOR_INTERVAL=1 : Dump trace data every second CONFIG_USBMONITOR_INTERVAL=1 : Dump trace data every second
NOTE: If USB debug output is also enabled, both outpus will appear on the NOTE: If USB debug output is also enabled, both outpus will appear on the
serial console. However, the debug output will be asynchronous with the serial console. However, the debug output will be asynchronous with the
+1 -1
View File
@@ -48,7 +48,7 @@
#include <nuttx/board.h> #include <nuttx/board.h>
#ifdef CONFIG_SYSTEM_USBMONITOR #ifdef CONFIG_USBMONITOR
# include <apps/usbmonitor.h> # include <apps/usbmonitor.h>
#endif #endif
+1 -1
View File
@@ -297,7 +297,7 @@
/* Check if we should enable the USB monitor before starting NSH */ /* Check if we should enable the USB monitor before starting NSH */
#ifndef CONFIG_SYSTEM_USBMONITOR #ifndef CONFIG_USBMONITOR
# undef HAVE_USBMONITOR # undef HAVE_USBMONITOR
#endif #endif
+13 -13
View File
@@ -1928,15 +1928,15 @@ USB High-Speed Device
CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor
Application Configuration -> System NSH Add-Ons: Application Configuration -> System NSH Add-Ons:
CONFIG_SYSTEM_USBMONITOR=y : Enable the USB monitor daemon CONFIG_USBMONITOR=y : Enable the USB monitor daemon
CONFIG_SYSTEM_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size CONFIG_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size
CONFIG_SYSTEM_USBMONITOR_PRIORITY=50 : USB monitor daemon priority CONFIG_USBMONITOR_PRIORITY=50 : USB monitor daemon priority
CONFIG_SYSTEM_USBMONITOR_INTERVAL=1 : Dump trace data every second CONFIG_USBMONITOR_INTERVAL=1 : Dump trace data every second
CONFIG_SYSTEM_USBMONITOR_TRACEINIT=y : Enable TRACE output CONFIG_USBMONITOR_TRACEINIT=y : Enable TRACE output
CONFIG_SYSTEM_USBMONITOR_TRACECLASS=y CONFIG_USBMONITOR_TRACECLASS=y
CONFIG_SYSTEM_USBMONITOR_TRACETRANSFERS=y CONFIG_USBMONITOR_TRACETRANSFERS=y
CONFIG_SYSTEM_USBMONITOR_TRACECONTROLLER=y CONFIG_USBMONITOR_TRACECONTROLLER=y
CONFIG_SYSTEM_USBMONITOR_TRACEINTERRUPTS=y CONFIG_USBMONITOR_TRACEINTERRUPTS=y
NOTE: If USB debug output is also enabled, both outputs will appear on the 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 serial console. However, the debug output will be asynchronous with the
@@ -2120,10 +2120,10 @@ USB High-Speed Host
CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor
Application Configuration -> System NSH Add-Ons: Application Configuration -> System NSH Add-Ons:
CONFIG_SYSTEM_USBMONITOR=y : Enable the USB monitor daemon CONFIG_USBMONITOR=y : Enable the USB monitor daemon
CONFIG_SYSTEM_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size CONFIG_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size
CONFIG_SYSTEM_USBMONITOR_PRIORITY=50 : USB monitor daemon priority CONFIG_USBMONITOR_PRIORITY=50 : USB monitor daemon priority
CONFIG_SYSTEM_USBMONITOR_INTERVAL=1 : Dump trace data every second CONFIG_USBMONITOR_INTERVAL=1 : Dump trace data every second
NOTE: If USB debug output is also enabled, both outpus will appear on the NOTE: If USB debug output is also enabled, both outpus will appear on the
serial console. However, the debug output will be asynchronous with the serial console. However, the debug output will be asynchronous with the
+1 -1
View File
@@ -46,7 +46,7 @@
#include <errno.h> #include <errno.h>
#include <debug.h> #include <debug.h>
#ifdef CONFIG_SYSTEM_USBMONITOR #ifdef CONFIG_USBMONITOR
# include <apps/usbmonitor.h> # include <apps/usbmonitor.h>
#endif #endif
+1 -1
View File
@@ -352,7 +352,7 @@
/* Check if we should enable the USB monitor before starting NSH */ /* Check if we should enable the USB monitor before starting NSH */
#ifndef CONFIG_SYSTEM_USBMONITOR #ifndef CONFIG_USBMONITOR
# undef HAVE_USBMONITOR # undef HAVE_USBMONITOR
#endif #endif
+1 -1
View File
@@ -46,7 +46,7 @@
#include <errno.h> #include <errno.h>
#include <debug.h> #include <debug.h>
#ifdef CONFIG_SYSTEM_USBMONITOR #ifdef CONFIG_USBMONITOR
# include <apps/usbmonitor.h> # include <apps/usbmonitor.h>
#endif #endif
@@ -157,7 +157,7 @@
# undef CONFIG_USBDEV_TRACE # undef CONFIG_USBDEV_TRACE
#endif #endif
#if !defined(CONFIG_SYSTEM_USBMONITOR) || !defined(CONFIG_USBDEV_TRACE) #if !defined(CONFIG_USBMONITOR) || !defined(CONFIG_USBDEV_TRACE)
# undef HAVE_USBMONITOR # undef HAVE_USBMONITOR
#endif #endif
+1 -1
View File
@@ -46,7 +46,7 @@
#include <errno.h> #include <errno.h>
#include <debug.h> #include <debug.h>
#ifdef CONFIG_SYSTEM_USBMONITOR #ifdef CONFIG_USBMONITOR
# include <apps/usbmonitor.h> # include <apps/usbmonitor.h>
#endif #endif
+1 -1
View File
@@ -166,7 +166,7 @@
# undef CONFIG_USBDEV_TRACE # undef CONFIG_USBDEV_TRACE
#endif #endif
#if !defined(CONFIG_SYSTEM_USBMONITOR) || !defined(CONFIG_USBDEV_TRACE) #if !defined(CONFIG_USBMONITOR) || !defined(CONFIG_USBDEV_TRACE)
# undef HAVE_USBMONITOR # undef HAVE_USBMONITOR
#endif #endif
+1 -1
View File
@@ -1305,7 +1305,7 @@ CONFIG_READLINE_ECHO=y
# CONFIG_READLINE_CMD_HISTORY is not set # CONFIG_READLINE_CMD_HISTORY is not set
# CONFIG_SYSTEM_SUDOKU is not set # CONFIG_SYSTEM_SUDOKU is not set
# CONFIG_SYSTEM_UBLOXMODEM is not set # CONFIG_SYSTEM_UBLOXMODEM is not set
# CONFIG_SYSTEM_USBMONITOR is not set # CONFIG_USBMONITOR is not set
# CONFIG_SYSTEM_USBMSC is not set # CONFIG_SYSTEM_USBMSC is not set
# CONFIG_SYSTEM_VI is not set # CONFIG_SYSTEM_VI is not set
# CONFIG_SYSTEM_ZMODEM is not set # CONFIG_SYSTEM_ZMODEM is not set
+1 -1
View File
@@ -1291,7 +1291,7 @@ CONFIG_READLINE_ECHO=y
# CONFIG_READLINE_CMD_HISTORY is not set # CONFIG_READLINE_CMD_HISTORY is not set
# CONFIG_SYSTEM_SUDOKU is not set # CONFIG_SYSTEM_SUDOKU is not set
# CONFIG_SYSTEM_UBLOXMODEM is not set # CONFIG_SYSTEM_UBLOXMODEM is not set
# CONFIG_SYSTEM_USBMONITOR is not set # CONFIG_USBMONITOR is not set
# CONFIG_SYSTEM_USBMSC is not set # CONFIG_SYSTEM_USBMSC is not set
# CONFIG_SYSTEM_VI is not set # CONFIG_SYSTEM_VI is not set
# CONFIG_SYSTEM_ZMODEM is not set # CONFIG_SYSTEM_ZMODEM is not set
+2 -2
View File
@@ -54,7 +54,7 @@
# include <sys/mount.h> # include <sys/mount.h>
#endif #endif
#ifdef CONFIG_SYSTEM_USBMONITOR #ifdef CONFIG_USBMONITOR
# include <apps/usbmonitor.h> # include <apps/usbmonitor.h>
#endif #endif
@@ -112,7 +112,7 @@
/* Check if we should enable the USB monitor before starting NSH */ /* Check if we should enable the USB monitor before starting NSH */
#if !defined(CONFIG_USBDEV_TRACE) || !defined(CONFIG_SYSTEM_USBMONITOR) #if !defined(CONFIG_USBDEV_TRACE) || !defined(CONFIG_USBMONITOR)
# undef HAVE_USBMONITOR # undef HAVE_USBMONITOR
#endif #endif
+2 -2
View File
@@ -54,7 +54,7 @@
# include <sys/mount.h> # include <sys/mount.h>
#endif #endif
#ifdef CONFIG_SYSTEM_USBMONITOR #ifdef CONFIG_USBMONITOR
# include <apps/usbmonitor.h> # include <apps/usbmonitor.h>
#endif #endif
@@ -112,7 +112,7 @@
/* Check if we should enable the USB monitor before starting NSH */ /* Check if we should enable the USB monitor before starting NSH */
#if !defined(CONFIG_USBDEV_TRACE) || !defined(CONFIG_SYSTEM_USBMONITOR) #if !defined(CONFIG_USBDEV_TRACE) || !defined(CONFIG_USBMONITOR)
# undef HAVE_USBMONITOR # undef HAVE_USBMONITOR
#endif #endif
+1 -1
View File
@@ -1253,7 +1253,7 @@ CONFIG_READLINE_ECHO=y
# CONFIG_READLINE_CMD_HISTORY is not set # CONFIG_READLINE_CMD_HISTORY is not set
# CONFIG_SYSTEM_SUDOKU is not set # CONFIG_SYSTEM_SUDOKU is not set
# CONFIG_SYSTEM_UBLOXMODEM is not set # CONFIG_SYSTEM_UBLOXMODEM is not set
# CONFIG_SYSTEM_USBMONITOR is not set # CONFIG_USBMONITOR is not set
CONFIG_SYSTEM_USBMSC=y CONFIG_SYSTEM_USBMSC=y
CONFIG_SYSTEM_USBMSC_NLUNS=1 CONFIG_SYSTEM_USBMSC_NLUNS=1
CONFIG_SYSTEM_USBMSC_DEVMINOR1=0 CONFIG_SYSTEM_USBMSC_DEVMINOR1=0
+1 -1
View File
@@ -1236,6 +1236,6 @@ CONFIG_READLINE_ECHO=y
# CONFIG_READLINE_CMD_HISTORY is not set # CONFIG_READLINE_CMD_HISTORY is not set
# CONFIG_SYSTEM_SUDOKU is not set # CONFIG_SYSTEM_SUDOKU is not set
# CONFIG_SYSTEM_UBLOXMODEM is not set # CONFIG_SYSTEM_UBLOXMODEM is not set
# CONFIG_SYSTEM_USBMONITOR is not set # CONFIG_USBMONITOR is not set
# CONFIG_SYSTEM_VI is not set # CONFIG_SYSTEM_VI is not set
# CONFIG_SYSTEM_ZMODEM is not set # CONFIG_SYSTEM_ZMODEM is not set
+1 -1
View File
@@ -1169,6 +1169,6 @@ CONFIG_EXAMPLES_USBSERIAL_TRACEINTERRUPTS=y
# CONFIG_SYSTEM_READLINE is not set # CONFIG_SYSTEM_READLINE is not set
# CONFIG_SYSTEM_SUDOKU is not set # CONFIG_SYSTEM_SUDOKU is not set
# CONFIG_SYSTEM_UBLOXMODEM is not set # CONFIG_SYSTEM_UBLOXMODEM is not set
# CONFIG_SYSTEM_USBMONITOR is not set # CONFIG_USBMONITOR is not set
# CONFIG_SYSTEM_VI is not set # CONFIG_SYSTEM_VI is not set
# CONFIG_SYSTEM_ZMODEM is not set # CONFIG_SYSTEM_ZMODEM is not set
+10 -10
View File
@@ -624,7 +624,7 @@ Where <subdir> is one of the following:
infinite loops and deadlocks: Debug output generates USB debug infinite loops and deadlocks: Debug output generates USB debug
output which generatates USB debug output, etc. If you want USB output which generatates USB debug output, etc. If you want USB
debug output, you should consider enabling USB trace debug output, you should consider enabling USB trace
(CONFIG_USBDEV_TRACE) and perhaps the USB monitor (CONFIG_SYSTEM_USBMONITOR). (CONFIG_USBDEV_TRACE) and perhaps the USB monitor (CONFIG_USBMONITOR).
See the usbnsh configuration below for more information on configuring See the usbnsh configuration below for more information on configuring
USB trace output and the USB monitor. USB trace output and the USB monitor.
@@ -674,16 +674,16 @@ Where <subdir> is one of the following:
CONFIG_USBDEV_TRACE_NRECORDS=128 : Buffer 128 records in memory CONFIG_USBDEV_TRACE_NRECORDS=128 : Buffer 128 records in memory
CONFIG_NSH_USBDEV_TRACE=n : No builtin tracing from NSH CONFIG_NSH_USBDEV_TRACE=n : No builtin tracing from NSH
CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor
CONFIG_SYSTEM_USBMONITOR=y : Enable the USB monitor daemon CONFIG_USBMONITOR=y : Enable the USB monitor daemon
CONFIG_SYSTEM_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size CONFIG_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size
CONFIG_SYSTEM_USBMONITOR_PRIORITY=50 : USB monitor daemon priority CONFIG_USBMONITOR_PRIORITY=50 : USB monitor daemon priority
CONFIG_SYSTEM_USBMONITOR_INTERVAL=2 : Dump trace data every 2 seconds CONFIG_USBMONITOR_INTERVAL=2 : Dump trace data every 2 seconds
CONFIG_SYSTEM_USBMONITOR_TRACEINIT=y : Enable TRACE output CONFIG_USBMONITOR_TRACEINIT=y : Enable TRACE output
CONFIG_SYSTEM_USBMONITOR_TRACECLASS=y CONFIG_USBMONITOR_TRACECLASS=y
CONFIG_SYSTEM_USBMONITOR_TRACETRANSFERS=y CONFIG_USBMONITOR_TRACETRANSFERS=y
CONFIG_SYSTEM_USBMONITOR_TRACECONTROLLER=y CONFIG_USBMONITOR_TRACECONTROLLER=y
CONFIG_SYSTEM_USBMONITOR_TRACEINTERRUPTS=y CONFIG_USBMONITOR_TRACEINTERRUPTS=y
5. By default, this project assumes that you are *NOT* using the DFU 5. By default, this project assumes that you are *NOT* using the DFU
bootloader. bootloader.
+1 -1
View File
@@ -1154,6 +1154,6 @@ CONFIG_READLINE_ECHO=y
# CONFIG_READLINE_CMD_HISTORY is not set # CONFIG_READLINE_CMD_HISTORY is not set
# CONFIG_SYSTEM_SUDOKU is not set # CONFIG_SYSTEM_SUDOKU is not set
# CONFIG_SYSTEM_UBLOXMODEM is not set # CONFIG_SYSTEM_UBLOXMODEM is not set
# CONFIG_SYSTEM_USBMONITOR is not set # CONFIG_USBMONITOR is not set
# CONFIG_SYSTEM_VI is not set # CONFIG_SYSTEM_VI is not set
# CONFIG_SYSTEM_ZMODEM is not set # CONFIG_SYSTEM_ZMODEM is not set
+9 -9
View File
@@ -607,16 +607,16 @@ Where <subdir> is one of the following:
CONFIG_USBDEV_TRACE_NRECORDS=128 : Buffer 128 records in memory CONFIG_USBDEV_TRACE_NRECORDS=128 : Buffer 128 records in memory
CONFIG_NSH_USBDEV_TRACE=n : No builtin tracing from NSH CONFIG_NSH_USBDEV_TRACE=n : No builtin tracing from NSH
CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor
CONFIG_SYSTEM_USBMONITOR=y : Enable the USB monitor daemon CONFIG_USBMONITOR=y : Enable the USB monitor daemon
CONFIG_SYSTEM_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size CONFIG_USBMONITOR_STACKSIZE=2048 : USB monitor daemon stack size
CONFIG_SYSTEM_USBMONITOR_PRIORITY=50 : USB monitor daemon priority CONFIG_USBMONITOR_PRIORITY=50 : USB monitor daemon priority
CONFIG_SYSTEM_USBMONITOR_INTERVAL=2 : Dump trace data every 2 seconds CONFIG_USBMONITOR_INTERVAL=2 : Dump trace data every 2 seconds
CONFIG_SYSTEM_USBMONITOR_TRACEINIT=y : Enable TRACE output CONFIG_USBMONITOR_TRACEINIT=y : Enable TRACE output
CONFIG_SYSTEM_USBMONITOR_TRACECLASS=y CONFIG_USBMONITOR_TRACECLASS=y
CONFIG_SYSTEM_USBMONITOR_TRACETRANSFERS=y CONFIG_USBMONITOR_TRACETRANSFERS=y
CONFIG_SYSTEM_USBMONITOR_TRACECONTROLLER=y CONFIG_USBMONITOR_TRACECONTROLLER=y
CONFIG_SYSTEM_USBMONITOR_TRACEINTERRUPTS=y CONFIG_USBMONITOR_TRACEINTERRUPTS=y
5. By default, this project assumes that you are *NOT* using the DFU 5. By default, this project assumes that you are *NOT* using the DFU
bootloader. bootloader.

Some files were not shown because too many files have changed in this diff Show More