aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/hal_usb_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/templates/hal_usb_lld.h')
-rw-r--r--os/hal/templates/hal_usb_lld.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/templates/hal_usb_lld.h b/os/hal/templates/hal_usb_lld.h
index 2bb1bc494..a57214a37 100644
--- a/os/hal/templates/hal_usb_lld.h
+++ b/os/hal/templates/hal_usb_lld.h
@@ -281,6 +281,10 @@ struct USBDriver {
* @brief Current USB device configuration.
*/
uint8_t configuration;
+ /**
+ * @brief State of the driver when a suspend happened.
+ */
+ usbstate_t saved_state;
#if defined(USB_DRIVER_EXT_FIELDS)
USB_DRIVER_EXT_FIELDS
#endif