1# Copyright (c) 2023 Nordic Semiconductor ASA
2# SPDX-License-Identifier: Apache-2.0
3
4# This file contains Kconfig options and defaults for configuring USB devices
5# using the new experimental USB device support. The scope of these options is
6# limited to USB samples in project tree, you cannot use them in your own
7# application.
8
9menu "USB sample options"
10	depends on USB_DEVICE_STACK_NEXT
11
12config SAMPLE_USBD_MANUFACTURER
13	string "USB device sample manufacturer string"
14	default "Zephyr Project"
15	help
16	  USB device sample manufacturer string.
17
18config SAMPLE_USBD_PRODUCT
19	string "USB device sample product string"
20	default "USBD sample"
21	help
22	  USB device sample product stringa.
23
24config SAMPLE_USBD_VID
25	hex "USB device sample Vendor ID"
26	default 0x2fe3
27	help
28	  USB device sample Vendor ID. The default id (0x2fe3) is associated to
29	  Zephyr Project, you must use your own VID for samples and applications
30	  outside of Zephyr Project.
31
32config SAMPLE_USBD_PID
33	hex "USB device sample Product ID"
34	default 0x0001
35	help
36	  USB device sample Product ID. You must use your own PID for samples
37	  and applications outside of Zephyr Project.
38
39config SAMPLE_USBD_SELF_POWERED
40	bool "USB device sample Self-powered attribute"
41	default y
42	help
43	  Set the Self-powered attribute in the sample configuration.
44
45config SAMPLE_USBD_REMOTE_WAKEUP
46	bool "USB device sample Remote Wakeup attribute"
47	help
48	  Set the Remote Wakeup attribute in the sample configuration.
49
50config SAMPLE_USBD_MAX_POWER
51	int "USB device sample bMaxPower value"
52	default 125
53	range 0 250
54	help
55	  bMaxPower value in the sample configuration in 2 mA units.
56
57config SAMPLE_USBD_20_EXTENSION_DESC
58	bool "Use default USB 2.0 Extension Descriptor"
59	depends on USBD_BOS_SUPPORT
60	help
61	  Set bcdUSB value to 0201 and use default USB 2.0 Extension Descriptor.
62
63endmenu
64