SPI driver for M25P* flash devices.

Dependents:   flash-fs-example Dragonfly_Filesystem_Example Dragonfly_Low_Power_Example STM32F407VET6_SPIFlash ... more

Revision:
1:17246d2dfff3
Parent:
0:137807d94795
Child:
3:b173ba8ad165
--- a/SpiFlash25.h	Thu Dec 04 14:09:10 2014 +0000
+++ b/SpiFlash25.h	Thu Dec 11 14:37:34 2014 -0600
@@ -27,7 +27,7 @@
 
 class SpiFlash25 {
     public:
-        SpiFlash25(PinName mosi, PinName miso, PinName sclk, PinName cs, int page_size = 256);
+        SpiFlash25(PinName mosi, PinName miso, PinName sclk, PinName cs, PinName W = NC, PinName HOLD = NC, int page_size = 256);
 
         /* Set the page size (default 256) */
         void set_page_size(int size);
@@ -95,8 +95,10 @@
 
         SPI _spi;
         DigitalOut _cs;
+        DigitalOut _w;
+        DigitalOut _hold;
         int _mem_size;
         int _page_size;
         char _id[3];
 };
-#endif
\ No newline at end of file
+#endif