I2C EEPROM 24LCXXX Driver, custom to work with tortuga
Fork of _24LCXXX by
Revision 1:f70a5bfaf16b, committed 2016-07-15
- Comitter:
- ptuytsch
- Date:
- Fri Jul 15 12:48:48 2016 +0000
- Parent:
- 0:859387a87312
- Commit message:
- getting rid of the wait statement, caused chrashes
Changed in this revision
| _24LCXXX.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/_24LCXXX.cpp Fri Dec 06 09:34:38 2013 +0000
+++ b/_24LCXXX.cpp Fri Jul 15 12:48:48 2016 +0000
@@ -77,8 +77,8 @@
}
}
- wait_ms(5); // 5mS
-
+ //wait_ms(5); // 5mS
+ for (uint64_t i = 0 ; i<0xFFFF ; i++);
return res;
}
@@ -115,7 +115,8 @@
return res;
}
- wait_ms(5); // 5mS
+ //wait_ms(5); // 5mS
+ for (uint64_t i = 0 ; i<0xFFFF ; i++);
if( ++mem_addr >= MAXADR_24LCXXX ) // Address counter +1
{
@@ -176,7 +177,6 @@
_pc->printf("Failed! nbyte read address send %d.\n", res);
}
}
-
//
res = _i2c->read(_i2c_address, (char *)data, size, false);
if(_debug)
