mbed library sources. Supersedes mbed-src.

Fork of mbed-dev by mbed official

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: