zephyr/subsys/usb/class/hid/Kconfig
Aurelien Jarno 819e749ccd usb: move the request handler buffer to the USB device code
In order to unify the legacy and composite code, move the class and
vendor request handler buffer into the USB device code, just like in
composite mode. The option is renamed from USB_COMPOSITE_BUFFER_SIZE
into USB_REQUEST_BUFFER_SIZE and also replaces the USB_DFU_MAX_XFER_SIZE
and USB_HID_MAX_PAYLOAD_SIZE options.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2019-05-27 09:25:06 -04:00

78 lines
1.8 KiB
Plaintext

# Kconfig - 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"
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.
if USB_HID_BOOT_PROTOCOL
config USB_HID_PROTOCOL_CODE
int "HID protocol code"
default 0
range 0 2
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_HID_BOOT_PROTOCOL
endif # USB_DEVICE_HID