1# USB HID configuration options
2
3# Copyright (c) 2018 Intel Corp.
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig USB_DEVICE_HID
7	bool "USB Human Interface Device support"
8	help
9	  Enables USB Human Interface Device support. Default device name
10	  is "HID_0".
11
12if USB_DEVICE_HID
13
14config USB_HID_DEVICE_NAME
15	string "USB HID device name template"
16	default "HID"
17	help
18	  Device name template for the HID Devices. First device would have
19	  name $(USB_HID_DEVICE_NAME)_0, etc.
20
21module = USB_HID
22default-count = 1
23source "subsys/usb/class/Kconfig.template.composite_device_number"
24
25module = USB_HID
26module-str = usb hid
27source "subsys/logging/Kconfig.template.log_config"
28
29config ENABLE_HID_INT_OUT_EP
30	bool "Enable USB HID Device Interrupt OUT Endpoint"
31	help
32	  Enable USB HID Device Interrupt OUT Endpoint.
33
34config HID_INTERRUPT_EP_MPS
35	int "USB HID Device Interrupt Endpoint size"
36	default 16
37	help
38	  USB HID Device interrupt endpoint size
39
40config USB_HID_POLL_INTERVAL_MS
41	int "Polling interval"
42	default 9
43	help
44	  Polling interval in ms selected by the USB HID Device.
45
46config USB_HID_REPORTS
47	int "Number of HID idle reports in the instance"
48	default 1
49	range 1 256
50	help
51	  This configuration is only necessary if the application must
52	  support USB HID idle rate and Set/Get Idle Requests.
53	  The application can use Report ID to identify data fields
54	  in the report descriptor and report itself.
55	  This configuration value should correspond to the number of Input
56	  Report IDs, the gaps and offset in Report IDs can not be supported.
57	  Set this configuration value to 1 if Report IDs are not used but
58	  idle rate must be supported.
59
60config USB_HID_BOOT_PROTOCOL
61	bool "Enable USB HID Boot Protocol handling"
62	help
63	  Sets bInterfaceSubClass to 1 and enables Set_Protocol and Get_Protocol
64	  requests handling.
65	  See Chapter 4.2 of Device Class Definition for Human Interface Devices 1.11
66	  for more information.
67
68config USB_HID_PROTOCOL_CODE
69	int "HID Boot Interface protocol code (DEPRECATED)"
70	default 0
71	range 0 2
72	depends on USB_HID_BOOT_PROTOCOL
73	help
74	  This option is deprecated.
75	  Please use usb_hid_set_proto_code() instead.
76
77endif # USB_DEVICE_HID
78