Compile error in 16.1.8 hal_usb_hid.c Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
alexoos
Posts: 1
Joined: Thu Jun 29, 2017 6:33 pm

Compile error in 16.1.8 hal_usb_hid.c

Postby alexoos » Thu Jun 29, 2017 6:54 pm

- ChibiOS 16.1.8
- gcc-arm-none-eabi-4_9-2015q3

Code: Select all

--- a/community/os/hal/src/hal_usb_hid.c   Thu Jun 29 17:56:33 2017 +0300
+++ b/community/os/hal/src/hal_usb_hid.c   Thu Jun 29 20:44:43 2017 +0300
@@ -221,10 +221,10 @@
   uhdp->vmt = &vmt;
   osalEventObjectInit(&uhdp->event);
   uhdp->state = HID_STOP;
-  ibqObjectInit(&uhdp->ibqueue, true, uhdp->ib,
+  ibqObjectInit(&uhdp->ibqueue, uhdp->ib,
                 USB_HID_BUFFERS_SIZE, USB_HID_BUFFERS_NUMBER,
                 ibnotify, uhdp);
-  obqObjectInit(&uhdp->obqueue, true, uhdp->ob,
+  obqObjectInit(&uhdp->obqueue, uhdp->ob,
                 USB_HID_BUFFERS_SIZE, USB_HID_BUFFERS_NUMBER,
                 obnotify, uhdp);
 }


Also useful and safe extension:

Code: Select all

--- a/community/os/hal/include/hal_usb_hid.h   Thu Jun 29 17:56:33 2017 +0300
+++ b/community/os/hal/include/hal_usb_hid.h   Thu Jun 29 20:44:43 2017 +0300
@@ -534,8 +534,10 @@
   _usb_hid_driver_data
 };
 
+#ifndef USB_DRIVER_EXT_FIELDS

#define USB_DRIVER_EXT_FIELDS                                                 \
   USBHIDDriver hid
+#endif

Thanks,
Alexander.

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Compile error in 16.1.8 hal_usb_hid.c  Topic is solved

Postby Giovanni » Tue Aug 22, 2017 1:15 pm

Hi,

This code is in the community repository, I cannot change it, it is best if you contact the author for a fix.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 8 guests