Flash handler for M25P* chips with no Device ID.
Fork of flash25spi by
Diff: flash25spi.h
- Revision:
- 1:aa6409c599cb
- Parent:
- 0:d07f90d3c670
- Child:
- 3:318fabd6708c
--- a/flash25spi.h Sun Feb 20 09:19:04 2011 +0000 +++ b/flash25spi.h Sun Feb 20 09:24:11 2011 +0000 @@ -41,14 +41,12 @@ { public: /** - create the handler class + create the handler class. it tries to autodetect your device. If your device is not recognized, add the devices parameters + to the device data structure at the library sources. @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 - @param bytes the size of you flash in bytes (NOT bits) - @param pagesize the size of a single page, to provide overruns - @param sectorsize the size of a single sector, for erasing */ - flash25spi(SPI *spi, PinName enable, unsigned int bytes, unsigned int pagesize, unsigned int sectorsize); + flash25spi(SPI *spi, PinName enable); /** destroys the handler, and frees the /CS pin