1# Copyright (c) 2024 Nordic Semiconductor ASA
2# SPDX-License-Identifier: Apache-2.0
3
4# This file contains Kconfig options and defaults for configuring the USB
5# device stack and CDC ACM instance to be used as the default serial backend
6# for logging or shell.
7
8
9menuconfig CDC_ACM_SERIAL_INITIALIZE_AT_BOOT
10	bool "Initialize USB device and CDC ACM UART at boot"
11	depends on USBD_CDC_ACM_CLASS
12	help
13	  This is intended for use with cdc-acm-snippet or as a default serial
14	  backend only in applications where no other USB features are
15	  required, configured, and enabled.
16
17if CDC_ACM_SERIAL_INITIALIZE_AT_BOOT
18
19config CDC_ACM_SERIAL_ENABLE_AT_BOOT
20	bool "USB device will be enabled at boot"
21	default y
22	help
23	  When disabled, the application is responsible for enabling/disabling
24	  the USB device.
25
26config CDC_ACM_SERIAL_MANUFACTURER_STRING
27	string "USB device manufacturer string descriptor"
28	default "Zephyr Project"
29	help
30	  USB device manufacturer string descriptor.
31
32config CDC_ACM_SERIAL_PRODUCT_STRING
33	string "USB device product string descriptor"
34	default "CDC ACM serial backend"
35	help
36	  USB device product string descriptor.
37
38config CDC_ACM_SERIAL_VID
39	hex "USB device Vendor ID"
40	default 0x2fe3
41	help
42	  You must use your own VID for samples and applications outside of
43	  Zephyr Project.
44
45config CDC_ACM_SERIAL_PID
46	hex "USB device Product ID"
47	default 0x0004
48	help
49	  You must use your own PID for samples and applications outside of
50	  Zephyr Project.
51
52config CDC_ACM_SERIAL_SELF_POWERED
53	bool "USB device Self-powered attribute"
54	help
55	  Set the Self-powered attribute in the configuration.
56
57config CDC_ACM_SERIAL_MAX_POWER
58	int "USB device bMaxPower value"
59	default 125
60	range 0 250
61	help
62	  bMaxPower value in the configuration in 2 mA units.
63
64endif #CDC_ACM_SERIAL_INITIALIZE_AT_BOOT
65