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.
Revision 23:30801b32bc30, committed 2020-07-17
- Comitter:
- evgeniik
- Date:
- Fri Jul 17 09:35:32 2020 +0000
- Parent:
- 22:21096473f63e
- Commit message:
- Changed for AIMergence
Changed in this revision
DevI2C/DevI2C.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/DevI2C/DevI2C.h Tue Aug 08 14:37:26 2017 +0000 +++ b/DevI2C/DevI2C.h Fri Jul 17 09:35:32 2020 +0000 @@ -103,9 +103,12 @@ int i2c_read(uint8_t* pBuffer, uint8_t DeviceAddr, uint8_t RegisterAddr, uint16_t NumByteToRead) { int ret; - + + //Timer t; + //t.start(); /* Send device address, with no STOP condition */ ret = write(DeviceAddr, (const char*)&RegisterAddr, 1, true); + //t.stop(); printf("In bib : t = %f s\n", t.read()); if(!ret) { /* Read data, with STOP condition */ ret = read(DeviceAddr, (char*)pBuffer, NumByteToRead, false);