From b5c1568431d724a1d15476bbc7ac0ae62435b6fc Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Thu, 16 Jun 2016 09:34:09 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9629 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/AVR/hal_usb_lld.h | 4 ++++ os/hal/ports/STM32/LLD/USBv1/hal_usb_lld.h | 4 ++++ os/hal/templates/hal_usb_lld.h | 4 ++++ 3 files changed, 12 insertions(+) (limited to 'os') diff --git a/os/hal/ports/AVR/hal_usb_lld.h b/os/hal/ports/AVR/hal_usb_lld.h index e47d38425..c52e23abb 100644 --- a/os/hal/ports/AVR/hal_usb_lld.h +++ b/os/hal/ports/AVR/hal_usb_lld.h @@ -307,6 +307,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 diff --git a/os/hal/ports/STM32/LLD/USBv1/hal_usb_lld.h b/os/hal/ports/STM32/LLD/USBv1/hal_usb_lld.h index 2cd77dd05..7971189ae 100644 --- a/os/hal/ports/STM32/LLD/USBv1/hal_usb_lld.h +++ b/os/hal/ports/STM32/LLD/USBv1/hal_usb_lld.h @@ -373,6 +373,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 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 -- cgit v1.2.3