Sonder Design Team / Memory
Revision:
2:5c70c0334ed0
Parent:
1:9d8c932d26ae
Child:
8:6af25b9563df
diff -r 9d8c932d26ae -r 5c70c0334ed0 Memory.h
--- a/Memory.h	Thu May 05 02:54:11 2016 +0000
+++ b/Memory.h	Thu Jun 23 22:31:29 2016 +0000
@@ -4,7 +4,7 @@
 #include "mbed.h"
 
 #define dummy 1              //Set up a dummy byte to send to memory
-#define bufferSize 3840      //The maximmum siz of data in the buffer
+#define bufferSize 256      //The maximmum siz of data in the buffer
 
 
  
@@ -13,7 +13,7 @@
     Memory(PinName cs_mem);
     int readData(SPI my_spi, char value [], int Address, int length);
     void sectorErase(SPI my_spi, long Address);
-    void blockErase(SPI my_spi, int Address);
+    int blockErase(SPI my_spi, int Address);
     int writeData(SPI my_spi, char buffer[], int address, int length);