Functions | |
int | SpiFlashEnable (void) |
Enable SPI device flash programming. | |
void | SpiFlashId (u_char *id) |
int | SpiFlashWriteByte (u_char high, u_short addr, u_char data) |
Write byte to the target's flash memory. | |
int | SpiFlashWriteWord (u_short addr, u_short data) |
Write word to the target's flash memory. | |
void | SpiFlashErase (void) |
Erase target's flash memory. |
|
Enable SPI device flash programming.
|
|
Erase target's flash memory. Sets all bytes on the target's flash memory to 0xFF. In addtion all lock bits are set to 1 (unprogrammed). |
|
Read SPI device ID.
|
|
Write byte to the target's flash memory. The target must have been erased by a previous call to SpiFlashErase().
|
|
Write word to the target's flash memory.
|