21aef0dd68
This commit does two things: 1. First, it reorganizes the driver Kconfig files so that each is self contained. Before, a part of the driver configuration was in drivers/Kconfig and the rest was in in drivers/xyz/Konfig. Now, all of the driver configuration is consolitated in the latter. 2. Second, this commit correct numerous serious errors introduced in a previous reorganization of the driver Kconfig files. This was first noted by Nicholas Chin in PR270 for the case of the drivers/i2c/Kconfig but some examination indicates that the error was introduced into several other Kconfig files as well. The nature of the introduced error was basically this: - Nothing must intervene between the menuconfig selection and the following conditional configuration otpions. - A previous PR erroneously introduced unconditional options between the menuconfig and the following confditional logic, thus corrupting the driver menus. This error was easy to make because the driver Kconfig files were not well modularized. Making them fully self-contained should eliminate this kind of error in the future.
76 lines
1.7 KiB
Plaintext
76 lines
1.7 KiB
Plaintext
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config HAVE_USBTRACE
|
|
bool
|
|
default n
|
|
|
|
menuconfig USBMONITOR
|
|
bool "USB Monitor"
|
|
default n
|
|
depends on HAVE_USBTRACE
|
|
---help---
|
|
If USB device tracing (USBDEV_TRACE) AND/OR USB host tracing
|
|
(USBHOST_TRACE) are enabled then this option will select the USB
|
|
monitor. The USB monitor is a daemon that will periodically collect
|
|
the buffered USB trace data and dump it to the SYSLOG device.
|
|
|
|
if USBMONITOR
|
|
|
|
config USBMONITOR_STACKSIZE
|
|
int "USB Monitor daemon stack size"
|
|
default 2048
|
|
---help---
|
|
The stack size to use the USB monitor daemon. Default: 2048
|
|
|
|
config USBMONITOR_PRIORITY
|
|
int "USB Monitor daemon priority"
|
|
default 50
|
|
---help---
|
|
The priority to use the USB monitor daemon. Default: 50
|
|
|
|
config USBMONITOR_INTERVAL
|
|
int "USB Monitor dump frequency"
|
|
default 2
|
|
---help---
|
|
The rate in seconds that the USB monitor will wait before dumping
|
|
the next set of buffered USB trace data. Default: 2 seconds.
|
|
|
|
if USBDEV && USBDEV_TRACE
|
|
|
|
config USBMONITOR_TRACEINIT
|
|
bool "Show USB device initialization events"
|
|
default n
|
|
---help---
|
|
Show initialization events
|
|
|
|
config USBMONITOR_TRACECLASS
|
|
bool "Show USB device class driver events"
|
|
default n
|
|
---help---
|
|
Show class driver events
|
|
|
|
config USBMONITOR_TRACETRANSFERS
|
|
bool "Show USB device data transfer events"
|
|
default n
|
|
---help---
|
|
Show data transfer events
|
|
|
|
config USBMONITOR_TRACECONTROLLER
|
|
bool "Show USB device controller events"
|
|
default n
|
|
---help---
|
|
Show controller events
|
|
|
|
config USBMONITOR_TRACEINTERRUPTS
|
|
bool "Show USB device interrupt-related events"
|
|
default n
|
|
---help---
|
|
Show interrupt-related events
|
|
|
|
endif # USBDEV && USBDEV_TRACE
|
|
|
|
endif # USBMONITOR
|