Nut/OS  4.10.3
API Reference
spiflash.c File Reference
#include <string.h>
#include <sys/atom.h>
#include <sys/event.h>
#include <sys/timer.h>
#include <sys/heap.h>
#include <sys/device.h>
#include <dev/spiflash.h>
Include dependency graph for spiflash.c:

Go to the source code of this file.

Functions

int SpiFlashEnable (void)
 Enable SPI device flash programming.
void SpiFlashId (uint8_t *id)
int SpiFlashWriteByte (uint8_t high, uint16_t addr, uint8_t data)
 Write byte to the target's flash memory.
int SpiFlashWriteWord (uint16_t addr, uint16_t data)
 Write word to the target's flash memory.
void SpiFlashErase (void)
 Erase target's flash memory.