repo2/firmware_eclairexl/spiflash.h @ 1475
662 | markw | #ifndef SPIFLASH_H
|
|
#define SPIFLASH_H
|
|||
#include "integer.h"
|
|||
702 | markw | int flashSectorSize();
|
|
void readFlashId(int * id1, int * id2);
|
|||
662 | markw | void readFlash(int address, int bytes, u08 * dest);
|
|
668 | markw | void eraseFlash(int address, int bytes); // erase enough sectors to clear this many bytes (rounds up to 256KB blocks for EPCS128...)
|
|
void writeFlash(int address, int bytes, u08 * dest); // must erase first
|
|||
662 | markw | ||
#endif
|