hal: fix the compilation of hal_usb_hid.c

Fix the compilation of hal_usb_hid.c that broke because of the changes
in ibqObjectInit() and obqObjectInit() prototypes.

In hidObjectInit() call these functions with the additional suspend
parameter set to true as done in ChibiOS-RT.
This commit is contained in:
funnydog 2016-12-13 12:35:58 +01:00
parent 3abfddc447
commit 328f64069d
1 changed files with 2 additions and 2 deletions

View File

@ -221,10 +221,10 @@ void hidObjectInit(USBHIDDriver *uhdp) {
uhdp->vmt = &vmt;
osalEventObjectInit(&uhdp->event);
uhdp->state = HID_STOP;
ibqObjectInit(&uhdp->ibqueue, uhdp->ib,
ibqObjectInit(&uhdp->ibqueue, true, uhdp->ib,
USB_HID_BUFFERS_SIZE, USB_HID_BUFFERS_NUMBER,
ibnotify, uhdp);
obqObjectInit(&uhdp->obqueue, uhdp->ob,
obqObjectInit(&uhdp->obqueue, true, uhdp->ob,
USB_HID_BUFFERS_SIZE, USB_HID_BUFFERS_NUMBER,
obnotify, uhdp);
}