Version for FWST0001_v2_00
Fork of 25LCxxx_SPI by
Revision 3:314812139e9c, committed 2017-04-03
- Comitter:
- mandresc
- Date:
- Mon Apr 03 11:59:26 2017 +0000
- Parent:
- 2:3a3404dbd3eb
- Commit message:
- Bug - SPI access timing fixed
Changed in this revision
Ser25lcxxx.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 3a3404dbd3eb -r 314812139e9c Ser25lcxxx.cpp --- a/Ser25lcxxx.cpp Sat Feb 19 18:29:20 2011 +0000 +++ b/Ser25lcxxx.cpp Mon Apr 03 11:59:26 2017 +0000 @@ -73,6 +73,7 @@ } bool Ser25LCxxx::write(unsigned int startAdr, unsigned int len, const char* data) { + enableWrite(); if (startAdr+len>_size) return -1; @@ -89,6 +90,7 @@ // and switch to next page ofs+=pageLen; } + waitForWrite(); return true; }