diff --git a/drivers/usbhost/Kconfig b/drivers/usbhost/Kconfig index a075db674a..7613061193 100644 --- a/drivers/usbhost/Kconfig +++ b/drivers/usbhost/Kconfig @@ -282,6 +282,13 @@ config USBHOST_CDCMBIM Select this option to build in host support for CDC/MBIM network devices. +menuconfig USBHOST_HID + bool "USB Host HID Driver Support" + default n + depends on ALLOW_BSD_COMPONENTS + ---help--- + USB host HID drivers. See also include/nuttx/usb/usbhost.h + config USBHOST_HIDKBD bool "HID Keyboard Class Support" default n diff --git a/drivers/usbhost/Make.defs b/drivers/usbhost/Make.defs index 1d039a5807..668278a277 100644 --- a/drivers/usbhost/Make.defs +++ b/drivers/usbhost/Make.defs @@ -18,7 +18,6 @@ # ############################################################################ -CSRCS += hid_parser.c ifeq ($(CONFIG_USBHOST),y) @@ -47,6 +46,10 @@ ifeq ($(CONFIG_USBHOST_CDCMBIM),y) CSRCS += usbhost_cdcmbim.c endif +ifeq ($(CONFIG_USBHOST_HID),y) +CSRCS += hid_parser.c +endif + ifeq ($(CONFIG_USBHOST_HIDKBD),y) CSRCS += usbhost_hidkbd.c endif