1# Copyright (c) 2021-2022 Nordic Semiconductor ASA
2# SPDX-License-Identifier: Apache-2.0
3
4
5menuconfig UDC_DRIVER
6	bool "USB device controller drivers [EXPERIMENTAL]"
7	select EXPERIMENTAL
8	select NET_BUF
9	help
10	  USB device controller driver.
11
12if UDC_DRIVER
13
14config UDC_BUF_COUNT
15	int "Number of buffers in the pool"
16	range 16 256
17	default 16
18	help
19	  Number of UDC request buffers in the pool.
20
21config UDC_BUF_POOL_SIZE
22	int "Memory available for requests"
23	range 64 32768
24	default 1024
25	help
26	  Total amount of memory available for UDC requests.
27
28config UDC_WORKQUEUE
29	bool "Use a dedicate work queue for UDC drivers"
30	help
31	  This option provides a dedicated work queue for UDC drivers.
32
33config UDC_WORKQUEUE_STACK_SIZE
34	int "UDC workqueue stack size"
35	depends on UDC_WORKQUEUE
36	default 512
37
38config UDC_WORKQUEUE_PRIORITY
39	int "UDC workqueue priority"
40	depends on UDC_WORKQUEUE
41	default SYSTEM_WORKQUEUE_PRIORITY
42	help
43	  By default, UDC work queue priority is the same as
44	  System workqueue priority.
45
46module = UDC_DRIVER
47module-str = usb drv
48source "subsys/logging/Kconfig.template.log_config"
49
50source "drivers/usb/udc/Kconfig.nrf"
51source "drivers/usb/udc/Kconfig.kinetis"
52source "drivers/usb/udc/Kconfig.skeleton"
53source "drivers/usb/udc/Kconfig.virtual"
54source "drivers/usb/udc/Kconfig.stm32"
55
56endif # UDC_DRIVER
57