2016-06-01 19:20:02 +08:00
|
|
|
# Kconfig - USB device stack configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 Wind River Systems, Inc.
|
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-06-01 19:20:02 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig USB_DEVICE_STACK
|
|
|
|
bool
|
|
|
|
prompt "USB device stack"
|
2017-12-08 15:58:35 +08:00
|
|
|
depends on USB_DEVICE_DRIVER
|
2016-06-01 19:20:02 +08:00
|
|
|
default n
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Enable USB device stack.
|
2016-06-01 19:20:02 +08:00
|
|
|
|
|
|
|
if USB_DEVICE_STACK
|
|
|
|
|
2016-07-30 00:34:22 +08:00
|
|
|
config SYS_LOG_USB_LEVEL
|
|
|
|
int
|
|
|
|
prompt "Sets log level for the USB device stack"
|
|
|
|
default 0
|
2017-08-04 20:34:58 +08:00
|
|
|
depends on SYS_LOG
|
2016-06-01 19:20:02 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
This option sets log level for the USB device stack.
|
2016-07-30 00:34:22 +08:00
|
|
|
|
2017-12-13 23:08:21 +08:00
|
|
|
Levels are:
|
2016-07-30 00:34:22 +08:00
|
|
|
|
2017-12-13 23:08:21 +08:00
|
|
|
- 0 OFF, do not write
|
2016-07-30 00:34:22 +08:00
|
|
|
|
2017-12-13 23:08:21 +08:00
|
|
|
- 1 ERROR, only write SYS_LOG_ERR
|
2016-07-30 00:34:22 +08:00
|
|
|
|
2017-12-13 23:08:21 +08:00
|
|
|
- 2 WARNING, write SYS_LOG_WRN in addition to previous level
|
2016-07-30 00:34:22 +08:00
|
|
|
|
2017-12-13 23:08:21 +08:00
|
|
|
- 3 INFO, write SYS_LOG_INF in addition to previous levels
|
2016-07-30 00:34:22 +08:00
|
|
|
|
2017-12-13 23:08:21 +08:00
|
|
|
- 4 DEBUG, write SYS_LOG_DBG in addition to previous levels
|
2016-06-01 19:20:02 +08:00
|
|
|
|
2017-07-06 19:56:28 +08:00
|
|
|
config USB_DEVICE_VID
|
|
|
|
hex
|
2017-10-17 16:42:37 +08:00
|
|
|
prompt "USB Vendor ID"
|
2017-11-08 19:20:40 +08:00
|
|
|
default 0xDEAD
|
2017-07-06 19:56:28 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
USB device vendor ID. MUST be configured by vendor.
|
2017-07-06 19:56:28 +08:00
|
|
|
|
|
|
|
config USB_DEVICE_PID
|
|
|
|
hex
|
2017-10-17 16:42:37 +08:00
|
|
|
prompt "USB Product ID"
|
2017-11-08 19:20:40 +08:00
|
|
|
default 0xBEEF
|
2017-07-06 19:56:28 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
USB device product ID. MUST be configured by vendor.
|
2017-07-06 19:56:28 +08:00
|
|
|
|
|
|
|
config USB_DEVICE_MANUFACTURER
|
|
|
|
string
|
|
|
|
default "ZEPHYR"
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
USB device Manufacturer string
|
2017-07-06 19:56:28 +08:00
|
|
|
|
|
|
|
config USB_DEVICE_PRODUCT
|
|
|
|
string
|
|
|
|
default "USB-DEV"
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
USB device Product string
|
2017-07-06 19:56:28 +08:00
|
|
|
|
|
|
|
config USB_DEVICE_SN
|
|
|
|
string
|
|
|
|
default "0.01"
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
USB device SerialNumber string
|
2017-07-06 19:56:28 +08:00
|
|
|
|
2017-07-06 20:01:17 +08:00
|
|
|
config USB_COMPOSITE_DEVICE
|
|
|
|
bool
|
|
|
|
prompt "Enable composite device driver"
|
|
|
|
depends on USB
|
|
|
|
default n
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Enable composite USB device driver.
|
2017-07-06 20:01:17 +08:00
|
|
|
|
|
|
|
config USB_COMPOSITE_BUFFER_SIZE
|
|
|
|
int
|
|
|
|
depends on USB_COMPOSITE_DEVICE
|
|
|
|
default 64
|
|
|
|
|
2016-10-31 04:33:25 +08:00
|
|
|
source "subsys/usb/class/Kconfig"
|
2016-06-01 19:21:11 +08:00
|
|
|
|
2016-06-01 19:20:02 +08:00
|
|
|
endif # USB_DEVICE_STACK
|