aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/OTGv1/usb_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/ports/STM32/LLD/OTGv1/usb_lld.h')
-rw-r--r--os/hal/ports/STM32/LLD/OTGv1/usb_lld.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/OTGv1/usb_lld.h b/os/hal/ports/STM32/LLD/OTGv1/usb_lld.h
index d1609e069..689d607a5 100644
--- a/os/hal/ports/STM32/LLD/OTGv1/usb_lld.h
+++ b/os/hal/ports/STM32/LLD/OTGv1/usb_lld.h
@@ -226,6 +226,10 @@ typedef struct {
output_queue_t *txqueue;
} queue;
} mode;
+ /**
+ * @brief Total transmit transfer size.
+ */
+ size_t totsize;
} USBInEndpointState;
/**
@@ -450,6 +454,16 @@ struct USBDriver {
* @brief Pointer to the thread when it is sleeping or @p NULL.
*/
thread_reference_t wait;
+#if defined(_CHIBIOS_RT_)
+ /**
+ * @brief Pointer to the thread.
+ */
+ thread_reference_t tr;
+ /**
+ * @brief Working area for the dedicated data pump thread;
+ */
+ THD_WORKING_AREA(wa_pump, STM32_USB_OTG_THREAD_STACK_SIZE);
+#endif
};
/*===========================================================================*/