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.cpp
- Revision:
- 184:08ed48f1de7f
- Parent:
- 180:96ed750bd169
diff -r 5166a824ec1a -r 08ed48f1de7f drivers/I2C.cpp
--- a/drivers/I2C.cpp Tue Mar 20 17:01:51 2018 +0000
+++ b/drivers/I2C.cpp Thu Apr 19 17:12:19 2018 +0100
@@ -18,7 +18,7 @@
#if DEVICE_I2C
#if DEVICE_I2C_ASYNCH
-#include "platform/mbed_sleep.h"
+#include "platform/mbed_power_mgmt.h"
#endif
namespace mbed {
@@ -81,7 +81,7 @@
return ret;
}
-// read - Master Reciever Mode
+// read - Master Receiver Mode
int I2C::read(int address, char* data, int length, bool repeated) {
lock();
aquire();
