code to access the AT30TSE75x temperature and E-prom device
Dependents: AT30TSE752TST AT30TSE752TST2
Diff: AT30TSE75x.cpp
- Revision:
- 4:8189e5cb4459
- Parent:
- 3:5944e2454e42
- Child:
- 5:c783703a9e28
diff -r 5944e2454e42 -r 8189e5cb4459 AT30TSE75x.cpp --- a/AT30TSE75x.cpp Tue Jan 31 11:31:22 2017 +0000 +++ b/AT30TSE75x.cpp Wed Mar 15 17:15:53 2017 +0000 @@ -1,4 +1,4 @@ -#include "mbed.h" + #include "AT30TSE75x.h" /* @@ -7,10 +7,11 @@ * some parts of the code are copied * from https://developer.mbed.org/users/akhilpanayam/code/AT30TSE75X/file/0e430cef393b/AT30TSE75X.h + * ver 0.91 removed mbed.h should not be there platform depending */ -#define VERSION_AT30TSE75x_SRC "0.90" +#define VERSION_AT30TSE75x_SRC "0.91" #define RegisterLocDownEnable 0 // set this to one to enable permanent NV register locking , never tested with 1 @@ -228,7 +229,7 @@ (void) read_config(locerr,0); if ( locerr ) { error =locerr ; return;} busy =Creg.NVregBusy; - if(busy) wait_ms(100); + if(busy) _i2c->wait_for_ms(100); } if ( busy ) { error =22; return ;}