2013-09-05 16:07:03 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:14:53 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2013-09-05 16:07:03 +02:00
|
|
|
#
|
|
|
|
|
2015-04-07 21:23:39 +02:00
|
|
|
menuconfig SYSTEM_USBMSC
|
2018-09-03 17:29:56 +02:00
|
|
|
tristate "USB Mass Storage Device Commands"
|
2013-09-05 16:07:03 +02:00
|
|
|
default n
|
2020-04-29 11:14:04 +02:00
|
|
|
depends on LIB_BOARDCTL && USBMSC && BUILD_FLAT
|
2016-03-26 14:13:57 +01:00
|
|
|
select BOARDCTL_USBDEVCTRL
|
2013-09-05 16:07:03 +02:00
|
|
|
---help---
|
2013-09-26 00:54:39 +02:00
|
|
|
Enable the USB mass storage class controls. These controls include:
|
2013-09-05 16:07:03 +02:00
|
|
|
|
2013-09-26 00:54:39 +02:00
|
|
|
msconn: Connect the mass storage device to the host
|
|
|
|
msdis : Disconnect the mass storage device to the host
|
2013-09-05 16:07:03 +02:00
|
|
|
|
2013-09-26 00:54:39 +02:00
|
|
|
if SYSTEM_USBMSC
|
|
|
|
|
|
|
|
config SYSTEM_USBMSC_NLUNS
|
2013-09-05 16:07:03 +02:00
|
|
|
int "Number of LUNs"
|
|
|
|
default 1
|
|
|
|
---help---
|
|
|
|
Defines the number of logical units (LUNs) exported by the USB
|
|
|
|
storage driver. Each LUN corresponds to one exported block driver
|
|
|
|
(or partition of a block driver). May be 1, 2, or 3. Default is 1.
|
|
|
|
|
2013-09-26 00:54:39 +02:00
|
|
|
config SYSTEM_USBMSC_DEVMINOR1
|
2013-09-05 16:07:03 +02:00
|
|
|
int "LUN1 Minor Device Number"
|
|
|
|
default 0
|
|
|
|
---help---
|
|
|
|
The minor device number of the block driver for the first LUN. For
|
|
|
|
example, N in /dev/mmcsdN. Used for registering the block driver.
|
|
|
|
Default is zero.
|
|
|
|
|
2013-09-26 00:54:39 +02:00
|
|
|
config SYSTEM_USBMSC_DEVPATH1
|
2013-09-05 16:07:03 +02:00
|
|
|
string "LUN1 Device Path"
|
|
|
|
default "/dev/mmcsd0"
|
|
|
|
---help---
|
|
|
|
The full path to the registered block driver. Default is
|
|
|
|
"/dev/mmcsd0"
|
|
|
|
|
2018-01-15 00:11:32 +01:00
|
|
|
config SYSTEM_USBMSC_WRITEPROTECT1
|
|
|
|
bool "LUN1 Write-protected"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable this if you want to write-protect the first LUN. Default is
|
|
|
|
off.
|
|
|
|
|
2013-09-26 00:54:39 +02:00
|
|
|
config SYSTEM_USBMSC_DEVMINOR2
|
2013-09-05 16:07:03 +02:00
|
|
|
int "LUN2 Minor Device Number"
|
|
|
|
default 1
|
|
|
|
---help---
|
|
|
|
The minor device number of the block driver for the second LUN. For
|
|
|
|
example, N in /dev/mmcsdN. Used for registering the block driver.
|
2013-09-26 00:54:39 +02:00
|
|
|
Ignored if SYSTEM_USBMSC_NLUNS < 2. Default is one.
|
2013-09-05 16:07:03 +02:00
|
|
|
|
2013-09-26 00:54:39 +02:00
|
|
|
config SYSTEM_USBMSC_DEVPATH2
|
2013-09-05 16:07:03 +02:00
|
|
|
string "LUN2 Device Path"
|
|
|
|
default "/dev/mmcsd1"
|
|
|
|
---help---
|
|
|
|
The full path to the registered block driver. Ignored if
|
2013-09-26 00:54:39 +02:00
|
|
|
SYSTEM_USBMSC_NLUNS < 2. Default is "/dev/mmcsd1"
|
2013-09-05 16:07:03 +02:00
|
|
|
|
2018-01-15 00:11:32 +01:00
|
|
|
config SYSTEM_USBMSC_WRITEPROTECT2
|
|
|
|
bool "LUN2 Write-protected"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable this if you want to write-protect the second LUN. Ignored if
|
|
|
|
SYSTEM_USBMSC_NLUNS < 2. Default is off.
|
|
|
|
|
2013-09-26 00:54:39 +02:00
|
|
|
config SYSTEM_USBMSC_DEVMINOR3
|
2013-09-05 16:07:03 +02:00
|
|
|
int "LUN3 Minor Device Number"
|
|
|
|
default 2
|
|
|
|
---help---
|
|
|
|
The minor device number of the block driver for the third LUN. For
|
|
|
|
example, N in /dev/mmcsdN. Used for registering the block driver.
|
2018-01-15 00:11:32 +01:00
|
|
|
Ignored if SYSTEM_USBMSC_NLUNS < 3. Default is two.
|
2013-09-05 16:07:03 +02:00
|
|
|
|
2013-09-26 00:54:39 +02:00
|
|
|
config SYSTEM_USBMSC_DEVPATH3
|
2013-09-05 16:07:03 +02:00
|
|
|
string "LUN3 Device Path"
|
|
|
|
default "/dev/mmcsd2"
|
|
|
|
---help---
|
|
|
|
The full path to the registered block driver. Ignored if
|
2018-01-15 00:11:32 +01:00
|
|
|
SYSTEM_USBMSC_NLUNS < 3. Default is "/dev/mmcsd2"
|
|
|
|
|
|
|
|
config SYSTEM_USBMSC_WRITEPROTECT3
|
|
|
|
bool "LUN3 Write-protected"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable this if you want to write-protect the third LUN. Ignored if
|
|
|
|
SYSTEM_USBMSC_NLUNS < 3. Default is off.
|
2013-09-05 16:07:03 +02:00
|
|
|
|
2013-09-26 00:54:39 +02:00
|
|
|
config SYSTEM_USBMSC_DEBUGMM
|
2013-09-05 16:07:03 +02:00
|
|
|
bool "USB MSC MM Debug"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enables some debug tests to check for memory usage and memory leaks.
|
|
|
|
|
2013-09-26 00:54:39 +02:00
|
|
|
config SYSTEM_USBMSC_TRACE
|
2013-09-07 01:21:57 +02:00
|
|
|
bool "Trace USB activity"
|
|
|
|
default n
|
2019-10-06 14:14:39 +02:00
|
|
|
depends on USBDEV_TRACE || DEBUG_USB
|
2013-09-07 01:21:57 +02:00
|
|
|
---help---
|
2013-09-26 00:54:39 +02:00
|
|
|
If this add-on is built as a standalone task and if USB device tracing is
|
|
|
|
enabled, then this add-on can be configured to unobtrusively monitor
|
2013-09-07 01:21:57 +02:00
|
|
|
USB activity by selecting this option.
|
|
|
|
|
2013-09-26 00:54:39 +02:00
|
|
|
if SYSTEM_USBMSC_TRACE
|
2013-09-07 01:21:57 +02:00
|
|
|
|
2013-09-26 00:54:39 +02:00
|
|
|
config SYSTEM_USBMSC_TRACEINIT
|
2013-09-05 16:07:03 +02:00
|
|
|
bool "USB Trace Initialization"
|
|
|
|
default n
|
|
|
|
---help---
|
2016-06-11 22:13:39 +02:00
|
|
|
If USBDEV_TRACE is enabled (or CONFIG_DEBUG_FEATURES and CONFIG_DEBUG_USB),
|
2013-09-26 00:54:39 +02:00
|
|
|
then the add-on code will also manage the USB trace output. The
|
2013-09-05 16:07:03 +02:00
|
|
|
amount of trace output can be controlled this configuration value:
|
|
|
|
This setting will show USB initialization events
|
|
|
|
|
2013-09-26 00:54:39 +02:00
|
|
|
config SYSTEM_USBMSC_TRACECLASS
|
2013-09-05 16:07:03 +02:00
|
|
|
bool "USB Trace Class"
|
|
|
|
default n
|
|
|
|
---help---
|
2016-06-11 22:13:39 +02:00
|
|
|
If USBDEV_TRACE is enabled (or CONFIG_DEBUG_FEATURES and CONFIG_DEBUG_USB),
|
2013-09-26 00:54:39 +02:00
|
|
|
then the add-on code will also manage the USB trace output. The
|
2013-09-05 16:07:03 +02:00
|
|
|
amount of trace output can be controlled this configuration value:
|
|
|
|
This setting will show USB class driver events
|
|
|
|
|
2013-09-26 00:54:39 +02:00
|
|
|
config SYSTEM_USBMSC_TRACETRANSFERS
|
2013-09-05 16:07:03 +02:00
|
|
|
bool "USB Trace Transfers"
|
|
|
|
default n
|
|
|
|
---help---
|
2016-06-11 22:13:39 +02:00
|
|
|
If USBDEV_TRACE is enabled (or CONFIG_DEBUG_FEATURES and CONFIG_DEBUG_USB),
|
2013-09-26 00:54:39 +02:00
|
|
|
then the add-on code will also manage the USB trace output. The
|
2013-09-05 16:07:03 +02:00
|
|
|
amount of trace output can be controlled this configuration value:
|
|
|
|
This setting will show USB data transfer events
|
|
|
|
|
2013-09-26 00:54:39 +02:00
|
|
|
config SYSTEM_USBMSC_TRACECONTROLLER
|
2013-09-05 16:07:03 +02:00
|
|
|
bool "USB Trace Device Controller Events"
|
|
|
|
default n
|
|
|
|
---help---
|
2016-06-11 22:13:39 +02:00
|
|
|
If USBDEV_TRACE is enabled (or CONFIG_DEBUG_FEATURES and CONFIG_DEBUG_USB),
|
2013-09-26 00:54:39 +02:00
|
|
|
then the add-on code will also manage the USB trace output. The
|
2013-09-05 16:07:03 +02:00
|
|
|
amount of trace output can be controlled this configuration value:
|
|
|
|
This setting will show USB device controller events
|
|
|
|
|
2013-09-26 00:54:39 +02:00
|
|
|
config SYSTEM_USBMSC_TRACEINTERRUPTS
|
2013-09-05 16:07:03 +02:00
|
|
|
bool "USB Trace Device Controller Interrupt Events"
|
|
|
|
default n
|
|
|
|
---help---
|
2016-06-11 22:13:39 +02:00
|
|
|
If USBDEV_TRACE is enabled (or CONFIG_DEBUG_FEATURES and CONFIG_DEBUG_USB),
|
2013-09-26 00:54:39 +02:00
|
|
|
then the add-on code will also manage the USB trace output. The
|
2013-09-05 16:07:03 +02:00
|
|
|
amount of trace output can be controlled this configuration value:
|
|
|
|
This setting will show USB device controller interrupt-related events.
|
|
|
|
|
2013-09-26 00:54:39 +02:00
|
|
|
endif # SYSTEM_USBMSC_TRACE
|
2013-09-07 18:09:52 +02:00
|
|
|
|
2013-09-26 00:54:39 +02:00
|
|
|
config SYSTEM_USBMSC_CMD_STACKSIZE
|
2013-09-07 18:09:52 +02:00
|
|
|
int "Stacksize of msconn and msdis commands"
|
|
|
|
default 768
|
|
|
|
---help---
|
|
|
|
Size of the stack used by the small 'msconn' and 'msdis' command
|
|
|
|
applications. Warning, just because the applications are small,
|
|
|
|
the stack usage could still be deep!
|
|
|
|
|
2013-09-26 00:54:39 +02:00
|
|
|
config SYSTEM_USBMSC_CMD_PRIORITY
|
2013-09-07 18:09:52 +02:00
|
|
|
int "Priority of the msconn and msdis commands"
|
|
|
|
default 100
|
|
|
|
---help---
|
|
|
|
Priority of the small 'msconn' and 'msdis' command applications.
|
|
|
|
|
2013-09-26 00:54:39 +02:00
|
|
|
endif # SYSTEM_USBMSC
|