From 33375fb281b05ac493ce3ff34deaf21c15565157 Mon Sep 17 00:00:00 2001 From: Konstantin Oblaukhov Date: Sun, 7 Oct 2018 18:39:36 +0700 Subject: Fix USB HID driver. --- os/hal/src/hal_usb_hid.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'os/hal') diff --git a/os/hal/src/hal_usb_hid.c b/os/hal/src/hal_usb_hid.c index d9d671b..305fe8d 100644 --- a/os/hal/src/hal_usb_hid.c +++ b/os/hal/src/hal_usb_hid.c @@ -128,15 +128,23 @@ static size_t readt(void *ip, uint8_t *bp, size_t n, systime_t timeout) { return ibqReadTimeout(&((USBHIDDriver *)ip)->ibqueue, bp, n, timeout); } +static msg_t ctl(void *ip, unsigned int operation, void *arg) { + (void)ip; + (void)operation; + (void)arg; + return MSG_OK; +} + static void flush(void *ip) { obqFlush(&((USBHIDDriver *)ip)->obqueue); } static const struct USBHIDDriverVMT vmt = { + (size_t)0, write, read, put, get, putt, gett, writet, readt, - flush + ctl, flush }; /** -- cgit v1.2.3