Kconfig.cdc 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Copyright (c) 2016 Wind River Systems, Inc.
  2. # SPDX-License-Identifier: Apache-2.0
  3. DT_COMPAT_ZEPHYR_CDC_ACM_UART := zephyr,cdc-acm-uart
  4. menu "USB CDC ACM Class support"
  5. config USB_CDC_ACM
  6. bool "USB CDC ACM Class support"
  7. depends on SERIAL
  8. default $(dt_compat_enabled,$(DT_COMPAT_ZEPHYR_CDC_ACM_UART))
  9. select SERIAL_HAS_DRIVER
  10. select SERIAL_SUPPORT_INTERRUPT
  11. select RING_BUFFER
  12. select UART_INTERRUPT_DRIVEN
  13. help
  14. USB CDC ACM class support.
  15. if USB_CDC_ACM
  16. config USB_CDC_ACM_RINGBUF_SIZE
  17. int "USB CDC ACM ring buffer size"
  18. default 1024
  19. help
  20. USB CDC ACM ring buffer size
  21. config CDC_ACM_INTERRUPT_EP_MPS
  22. int
  23. default 16
  24. help
  25. CDC ACM class interrupt IN endpoint size
  26. config CDC_ACM_BULK_EP_MPS
  27. int
  28. default 64
  29. help
  30. CDC ACM class bulk endpoints size
  31. config CDC_ACM_IAD
  32. bool "Force using Interface Association Descriptor"
  33. default y
  34. help
  35. IAD should not be required for non-composite CDC ACM device,
  36. but Windows 7 fails to properly enumerate without it.
  37. Enable if you want CDC ACM to work with Windows 7.
  38. config CDC_ACM_DTE_RATE_CALLBACK_SUPPORT
  39. bool "Support callbacks when the USB host changes the virtual baud rate"
  40. default BOOTLOADER_BOSSA
  41. help
  42. If set, enables support for a callback that is invoked when the
  43. remote host changes the virtual baud rate. This is used
  44. by Arduino style programmers to reset the device into the
  45. bootloader.
  46. module = USB_CDC_ACM
  47. module-str = usb cdc acm
  48. source "subsys/logging/Kconfig.template.log_config"
  49. endif # USB_CDC_ACM
  50. endmenu