aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/include
diff options
context:
space:
mode:
authorManuel Odendahl <wesen@ruinwesen.com>2013-04-26 11:08:59 +0200
committerManuel Odendahl <wesen@ruinwesen.com>2013-04-26 11:12:03 +0200
commit47d911dc5b675958f554491b7d750899db2c943c (patch)
tree6fcb9e390b55a6a99cca2656a10f1a42e7b21441 /libmaple/include
parentbe005eb7acc1fa08aa92b47d905e5a8ec38f5d6e (diff)
downloadlibrambutan-47d911dc5b675958f554491b7d750899db2c943c.tar.gz
librambutan-47d911dc5b675958f554491b7d750899db2c943c.zip
Preserve previous usb state when suspending / restore on resume
Signed-off-by: Manuel Odendahl <wesen@ruinwesen.com>
Diffstat (limited to 'libmaple/include')
-rw-r--r--libmaple/include/libmaple/usb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmaple/include/libmaple/usb.h b/libmaple/include/libmaple/usb.h
index 2be5971..ea24030 100644
--- a/libmaple/include/libmaple/usb.h
+++ b/libmaple/include/libmaple/usb.h
@@ -151,6 +151,7 @@ typedef struct usblib_dev {
void (**ep_int_in)(void);
void (**ep_int_out)(void);
usb_dev_state state;
+ usb_dev_state prevState;
rcc_clk_id clk_id;
} usblib_dev;