Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Stolyarov <i.stolyarov@thirdpin.ru>2018-11-23 19:43:22 +0300
committerIlya Stolyarov <i.stolyarov@thirdpin.ru>2019-07-07 01:09:03 +0300
commit184f9e4e6d8ea1030580bd2595b4828a0f93a41e (patch)
tree0ff68c820fe66c8a76a3cd727f016a89659db0cd
parentf2f3d0abb98f0a609d26a32c6337732f4932afd4 (diff)
FIX: [usb] usbd_dev->doeptsiz[] using 8 fields but has only 4
Signed-off-by: Ilya Stolyarov <i.stolyarov@thirdpin.ru>
-rw-r--r--lib/usb/usb_private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/usb/usb_private.h b/lib/usb/usb_private.h
index 3aa3f9ee..0bd15d7f 100644
--- a/lib/usb/usb_private.h
+++ b/lib/usb/usb_private.h
@@ -96,12 +96,12 @@ struct _usbd_device {
uint16_t fifo_mem_top;
uint16_t fifo_mem_top_ep0;
- uint8_t force_nak[4];
+ uint8_t force_nak[8];
/*
* We keep a backup copy of the out endpoint size registers to restore
* them after a transaction.
*/
- uint32_t doeptsiz[4];
+ uint32_t doeptsiz[8];
/*
* Received packet size for each endpoint. This is assigned in
* stm32f107_poll() which reads the packet status push register GRXSTSP