Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
Diff: drivers/I2C.h
- Revision:
- 180:96ed750bd169
- Parent:
- 174:b96e65c34a4d
- Child:
- 184:08ed48f1de7f
--- a/drivers/I2C.h Thu Dec 07 14:01:42 2017 +0000
+++ b/drivers/I2C.h Wed Jan 17 15:23:54 2018 +0000
@@ -176,11 +176,19 @@
/** Abort the on-going I2C transfer
*/
void abort_transfer();
-protected:
+
+ protected:
+ /** Lock deep sleep only if it is not yet locked */
+ void lock_deep_sleep();
+
+ /** Unlock deep sleep only if it has been locked */
+ void unlock_deep_sleep();
+
void irq_handler_asynch(void);
event_callback_t _callback;
CThunk<I2C> _irq;
DMAUsage _usage;
+ bool _deep_sleep_locked;
#endif
protected:
