A library to read and write all 25* serial SPI flash devices from various manufacturers.
Diff: flash25spi.cpp
- Revision:
- 1:aa6409c599cb
- Parent:
- 0:d07f90d3c670
- Child:
- 2:14c5db5e54df
--- a/flash25spi.cpp Sun Feb 20 09:19:04 2011 +0000 +++ b/flash25spi.cpp Sun Feb 20 09:24:11 2011 +0000 @@ -66,7 +66,7 @@ #define MID(x) ((x&0xff00)>>8) #define LOW(x) (x&0xff) -flash25spi::flash25spi(SPI *spi, PinName enable, unsigned int bytes, unsigned int pagesize, unsigned int sectorsize) { +flash25spi::flash25spi(SPI *spi, PinName enable) { unsigned char chipid[3]; unsigned int i = 0; _spi=spi;