zephyr/subsys/usb/class/hid/Kconfig

76 lines
1.9 KiB
Plaintext

# USB HID configuration options
# Copyright (c) 2018 Intel Corp.
# SPDX-License-Identifier: Apache-2.0
config USB_DEVICE_HID
bool "USB Human Interface Device support"
help
Enables USB Human Interface Device support. Default device name
is "HID_0".
if USB_DEVICE_HID
config USB_HID_DEVICE_NAME
string "USB HID device name template"
default "HID"
help
Device name template for the HID Devices. First device would have
name $(USB_HID_DEVICE_NAME)_0, etc.
module = USB_HID
default-count = 1
source "subsys/usb/class/Kconfig.template.composite_device_number"
module = USB_HID
module-str = usb hid
source "subsys/logging/Kconfig.template.log_config"
config ENABLE_HID_INT_OUT_EP
bool "Enable USB HID Device Interrupt OUT Endpoint"
help
Enable USB HID Device Interrupt OUT Endpoint.
config HID_INTERRUPT_EP_MPS
int "USB HID Device Interrupt Endpoint size"
default 16
help
USB HID Device interrupt endpoint size
config USB_HID_POLL_INTERVAL_MS
int "Polling interval"
default 9
help
Polling interval in ms selected by the USB HID Device.
config USB_HID_REPORTS
int "HID reports in the instance"
default 1
range 1 256
help
Number of HID reports in the instance.
Must be equal or higher than highest report ID (if they are not consecutive).
config USB_HID_BOOT_PROTOCOL
bool "Enable USB HID Boot Protocol handling"
help
Sets bInterfaceSubClass to 1 and enables Set_Protocol and Get_Protocol
requests handling.
See Chapter 4.2 of Device Class Definition for Human Interface Devices 1.11
for more information.
config USB_HID_PROTOCOL_CODE
int "HID protocol code"
default 0
range 0 2
depends on USB_HID_BOOT_PROTOCOL
help
Sets bIntefaceProtocol in HID instance.
0 = None
1 = Keyboard
2 = Mouse
See Chapter 4.3 of Device Class Definition for Human Interface Devices 1.11
for more information.
endif # USB_DEVICE_HID