Kconfig 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # Kconfig - USB STUB configuration options
  2. #
  3. # Copyright (c) 2020 Actions Corp.
  4. #
  5. # SPDX-License-Identifier: Apache-2.0
  6. #
  7. config USB_DEVICE_STUB
  8. bool
  9. prompt "USB STUB Device support"
  10. default n
  11. help
  12. Enables USB STUB Device support.
  13. if USB_DEVICE_STUB
  14. config USB_STUB_DEVICE_MANUFACTURER
  15. string
  16. prompt "USB manufacturer name"
  17. default "Actions"
  18. help
  19. USB stub device manufacturer string, can be configured by vendor.
  20. config USB_STUB_DEVICE_PRODUCT
  21. string
  22. prompt "USB product name"
  23. default "USB-STUB-DEV"
  24. help
  25. USB stub device product string, can be configured by vendor.
  26. config USB_STUB_DEVICE_SN
  27. string
  28. prompt "USB serial number"
  29. default "0123456789AB"
  30. help
  31. USB stub device serialnumber string, can be configured by vendor.
  32. config USB_STUB_DEVICE_SN_NVRAM
  33. string
  34. prompt "get serial number from NVRAM"
  35. default "BT_MAC"
  36. help
  37. get USB stub device serial number string from NVRAM, can be configured by vendor.
  38. config STUB_IN_EP_ADDR
  39. hex "USB STUB bulk-IN endpoint address"
  40. default 0x81
  41. range 0x81 0x8f
  42. help
  43. USB STUB bulk-IN endpoint address.
  44. config STUB_OUT_EP_ADDR
  45. hex "USB STUB bulk-OUT endpoint address"
  46. default 0x02
  47. range 0x01 0x0f
  48. help
  49. USB STUB bulk-OUT endpoint address.
  50. config STUB_EP_MPS
  51. int "Maximum packet length of USB stub device endpoint"
  52. default 64
  53. range 8 512
  54. help
  55. Maximum packet length of USB stub device endpoint.
  56. config SYS_LOG_USB_STUB_LEVEL
  57. int "USB STUB device class driver log level"
  58. depends on LOG
  59. default 0
  60. help
  61. Sets log level for USB STUB device class driver
  62. Levels are:
  63. - 0 OFF, do not write
  64. - 1 ERROR, only write SYS_LOG_ERR
  65. - 2 WARNING, write SYS_LOG_WRN in addition to previous level
  66. - 3 INFO, write SYS_LOG_INF in addition to previous levels
  67. - 4 DEBUG, write SYS_LOG_DBG in addition to previous levels
  68. endif #USB_DEVICE_STUB