Flash handler for M25P* chips with no Device ID.

Dependencies:   RTOS_SPI_Clean

Fork of flash25spi by Klaus Steinhammer

Revision:
4:af870c53c0e9
Parent:
3:318fabd6708c
Child:
5:3fe5c97a223b
--- a/flash25spi.h	Fri Apr 25 12:25:08 2014 +0000
+++ b/flash25spi.h	Fri Apr 25 12:40:20 2014 +0000
@@ -33,8 +33,6 @@
 #pragma once
 #include "mbed.h"
 
-class CDI;
-
 /**
 A class to read and write M25P* serial SPI flash devices.
 */
@@ -47,7 +45,7 @@
         @param spi the SPI port where the flash is connected. Must be set to format(8,3), and with a speed matching the one of your device
         @param enable the pin name for the port where /CS is connected
     */
-    FlashM25PSpi(SPI *spi, PinName enable, CDI *cdi = 0);
+    FlashM25PSpi(SPI *spi, PinName enable);
 
     /**
         Destroy the handler and powers down the flash chip
@@ -86,7 +84,9 @@
     void eraseMem();
     
     //! Read detected flash size
-    size_t flashSize() const {return _size;}
+    size_t flashSize() const {
+        return _size;
+    }
     
     //! Read detected flash sector size
     size_t sectorSize() const {return _sectorSize;}