zephyr/subsys/usb/device_next/class/Kconfig.cdc_acm
Johann Fischer 8457f50278 usb: device_next: use common UDC pool on full-speed devices for CDC ACM
The required buffer is 128 bytes per instance on a full-speed device.
Use common (UDC) buffer, as this results in a smaller footprint.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-06-03 14:48:29 +01:00

46 lines
1.2 KiB
Plaintext

# Copyright (c) 2022 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: Apache-2.0
config USBD_CDC_ACM_CLASS
bool "USB CDC ACM implementation [EXPERIMENTAL]"
depends on SERIAL
depends on DT_HAS_ZEPHYR_CDC_ACM_UART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
select RING_BUFFER
select UART_INTERRUPT_DRIVEN
default y
help
USB device CDC ACM class implementation.
if USBD_CDC_ACM_CLASS
config USBD_CDC_ACM_WORKQUEUE
bool "Use dedicated workqueue in CDC ACM"
help
Use the dedicated queue in CDC ACM implementation if the systemwork
queue cannot be used due to performance issues or other conflicts.
config USBD_CDC_ACM_STACK_SIZE
int "USB CDC ACM workqueue stack size"
depends on USBD_CDC_ACM_WORKQUEUE
default 1024
help
USB CDC ACM workqueue stack size.
config USBD_CDC_ACM_BUF_POOL
bool "Use dedicated buffer pool"
default y if !USBD_MAX_SPEED_FULL
help
Use a dedicated buffer pool whose size is based on the number of CDC
ACM instances and the size of the bulk endpoints. When disabled, the
implementation uses the UDC driver's pool.
module = USBD_CDC_ACM
module-str = usbd cdc_acm
default-count = 1
source "subsys/logging/Kconfig.template.log_config"
endif