Introduce new USB Mass Storage Bulk-Only Transport implementation written from scratch. Main goal behind new implementation was to separate USB and SCSI parts as clearly as possible. Limited set of SCSI disk commands is implemented in separate source code file that is internal to USB device stack. While it should be possible to use the SCSI implementation by other components there is currently no other user besides USB MSC and therefore SCSI header is kept private. Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
40 lines
879 B
Plaintext
40 lines
879 B
Plaintext
# Copyright (c) 2022 Nordic Semiconductor ASA
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config USBD_MSC_CLASS
|
|
bool "USB Mass Storage Device class support [EXPERIMENTAL]"
|
|
select DISK_ACCESS
|
|
help
|
|
USB Mass Storage device class support.
|
|
|
|
if USBD_MSC_CLASS
|
|
|
|
config USBD_MSC_STACK_SIZE
|
|
int "USB MSC thread stack size"
|
|
default 1024
|
|
help
|
|
USB MSC thread stack size.
|
|
|
|
config USBD_MSC_LUNS_PER_INSTANCE
|
|
int "Number of LUNs"
|
|
default 1
|
|
range 1 16
|
|
help
|
|
Maximum number of Logical Units that can be registered per instance.
|
|
|
|
config USBD_MSC_SCSI_BUFFER_SIZE
|
|
int "SCSI Buffer size"
|
|
default 512
|
|
help
|
|
Buffer size must be able to hold at least one sector. All LUNs within
|
|
single instance share the SCSI buffer.
|
|
|
|
module = USBD_MSC
|
|
module-str = usbd msc
|
|
default-count = 1
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
rsource "Kconfig.template.instances_count"
|
|
endif
|