From d13065468e170c80e87fa9a0e7458db6defda162 Mon Sep 17 00:00:00 2001 From: Lwazi Dube Date: Thu, 11 Jan 2024 18:43:26 -0500 Subject: [PATCH] boards/sama5d3-xplained: Add USB mouse initialization. --- boards/arm/sama5/sama5d3-xplained/src/sam_usb.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/boards/arm/sama5/sama5d3-xplained/src/sam_usb.c b/boards/arm/sama5/sama5d3-xplained/src/sam_usb.c index f15c79a1d8..94c9ac27d5 100644 --- a/boards/arm/sama5/sama5d3-xplained/src/sam_usb.c +++ b/boards/arm/sama5/sama5d3-xplained/src/sam_usb.c @@ -332,6 +332,16 @@ int sam_usbhost_initialize(void) } #endif +#ifdef CONFIG_USBHOST_HIDMOUSE + /* Initialize the HID mouse class */ + + ret = usbhost_mouse_init(); + if (ret != OK) + { + uerr("ERROR: Failed to register the HID mouse class\n"); + } +#endif + /* Then get an instance of the USB host interface. */ #ifdef CONFIG_SAMA5_OHCI