aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/KINETIS/LLD
diff options
context:
space:
mode:
authorflabbergast <flabbergast@runbox.com>2016-07-17 20:49:48 +0100
committerflabbergast <flabbergast@runbox.com>2016-07-17 20:49:48 +0100
commitdb3057e1fc46c21be4873542e7781b40aed922cc (patch)
tree74db39abf76e800bacb9b6b0e429e9eb678d00a5 /os/hal/ports/KINETIS/LLD
parentc7afdebe336e148a4e05453324fbbbcf1bb5a399 (diff)
downloadChibiOS-Contrib-db3057e1fc46c21be4873542e7781b40aed922cc.tar.gz
ChibiOS-Contrib-db3057e1fc46c21be4873542e7781b40aed922cc.tar.bz2
ChibiOS-Contrib-db3057e1fc46c21be4873542e7781b40aed922cc.zip
[KINETIS] Add saved_state to USB driver.
Diffstat (limited to 'os/hal/ports/KINETIS/LLD')
-rw-r--r--os/hal/ports/KINETIS/LLD/hal_usb_lld.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/ports/KINETIS/LLD/hal_usb_lld.h b/os/hal/ports/KINETIS/LLD/hal_usb_lld.h
index 593ef16..961490e 100644
--- a/os/hal/ports/KINETIS/LLD/hal_usb_lld.h
+++ b/os/hal/ports/KINETIS/LLD/hal_usb_lld.h
@@ -326,6 +326,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