diff options
author | funnydog <funnydog@users.noreply.github.com> | 2016-12-13 12:35:58 +0100 |
---|---|---|
committer | funnydog <funnydog@users.noreply.github.com> | 2016-12-13 12:35:58 +0100 |
commit | 328f64069dce8e38f8107e0da5f419d2ebb031aa (patch) | |
tree | 3c84d6782072675eb1a85645e74557a610575668 | |
parent | 3abfddc447d57ac77a20a4f1d7c107c55c512eb3 (diff) | |
download | ChibiOS-Contrib-328f64069dce8e38f8107e0da5f419d2ebb031aa.tar.gz ChibiOS-Contrib-328f64069dce8e38f8107e0da5f419d2ebb031aa.tar.bz2 ChibiOS-Contrib-328f64069dce8e38f8107e0da5f419d2ebb031aa.zip |
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.
-rw-r--r-- | os/hal/src/hal_usb_hid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/src/hal_usb_hid.c b/os/hal/src/hal_usb_hid.c index 56be9b7..d9d671b 100644 --- a/os/hal/src/hal_usb_hid.c +++ b/os/hal/src/hal_usb_hid.c @@ -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);
}
|