Driver for SST 64Mbit flash (8Mbyte) model 25VF064C including higher level methods for rewrite and buffered read/write to help optimize I/O. Can also work with other 25 series flash and eeprom devices, requiring minor revisions for their capabilities.

Dependencies:   SPIDebug

Revision:
1:bf7d00887342
Parent:
0:332d4b991d16
Child:
2:33d8a5ea4a80
--- a/SST25VF064C.h	Tue Apr 10 07:17:51 2012 +0000
+++ b/SST25VF064C.h	Tue Apr 10 07:34:10 2012 +0000
@@ -34,8 +34,6 @@
     static const int PAGE_LEN = 256;
     static const int MAX_ADDR = 0x7FFFFF;
 
-    static uint8 sector_buffer[SECTOR_LEN]; // TODO: private
-
 private:
 #ifdef SPIDEBUG
     SPIDebug* spi;
@@ -47,6 +45,7 @@
     int frequency;
     
     static uint8 SID_buffer[SID_LEN];
+    static uint8 sector_buffer[SECTOR_LEN];
     static int32 buffered_addr;
     static bool buffered_erased;