aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorKonstantin Oblaukhov <oblaukhov.konstantin@gmail.com>2018-10-07 18:39:36 +0700
committerKonstantin K. Oblaukhov <oblaukhov.konstantin@gmail.com>2018-11-20 09:53:46 +0700
commit33375fb281b05ac493ce3ff34deaf21c15565157 (patch)
tree1e5951e232bf1d35488344f78a5776fab6b0cec2 /os
parenta6bb21d05b4dd7299de9a632cf55bda7c058164e (diff)
downloadChibiOS-Contrib-33375fb281b05ac493ce3ff34deaf21c15565157.tar.gz
ChibiOS-Contrib-33375fb281b05ac493ce3ff34deaf21c15565157.tar.bz2
ChibiOS-Contrib-33375fb281b05ac493ce3ff34deaf21c15565157.zip
Fix USB HID driver.
Diffstat (limited to 'os')
-rw-r--r--os/hal/src/hal_usb_hid.c10
1 files changed, 9 insertions, 1 deletions
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
};
/**