aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/usb_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/templates/usb_lld.h')
-rw-r--r--os/hal/templates/usb_lld.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/os/hal/templates/usb_lld.h b/os/hal/templates/usb_lld.h
index 3d6764bc6..e1c237a6a 100644
--- a/os/hal/templates/usb_lld.h
+++ b/os/hal/templates/usb_lld.h
@@ -93,8 +93,13 @@ typedef struct {
* @brief Pointer to the transmission linear buffer.
*/
const uint8_t *txbuf;
+#if (USB_USE_WAIT == TRUE) || defined(__DOXYGEN__)
+ /**
+ * @brief Waiting thread.
+ */
+ thread_reference_t thread;
+#endif
/* End of the mandatory fields.*/
- } mode;
} USBInEndpointState;
/**
@@ -113,6 +118,12 @@ typedef struct {
* @brief Pointer to the receive linear buffer.
*/
uint8_t *rxbuf;
+#if (USB_USE_WAIT == TRUE) || defined(__DOXYGEN__)
+ /**
+ * @brief Waiting thread.
+ */
+ thread_reference_t thread;
+#endif
/* End of the mandatory fields.*/
} USBOutEndpointState;