Data Structures | |
struct | _FLASHDCB |
struct | _FLASHICB |
Defines | |
#define | FLASH 13 |
#define | SPI_CS_FLASH1 PORT5 |
#define | SPI_CS_FLASH2 PORT6 |
#define | PAGE_SIZE 0x0108 |
Functions | |
int | FlashInit (NUTDEVICE *dev) |
void | flashWritePage (NUTDEVICE *dev, u_int pageNumber, u_char *page) |
int | flashReadPage (NUTDEVICE *dev, u_int pageNumber, u_char *page) |
int | FlashIOCtl (NUTDEVICE *dev, int req, void *conf) |
void | FlashFlush (NUTDEVICE *dev) |
Variables | |
NUTDEVICE | devFlashSpi |
|
Unique device number. |
|
Flash page size. This is size of physical page in chip. |
|
Pin number for CS of first flash chip. |
|
Pin number for CS of second flash chip. |
|
Wait until output buffer isn't empty. (not implemented yet).
|
|
Method for initialize driver. Call it first.
|
|
Sets driver parameters (not implemented yet).
|
|
Read data from flash.
|
|
Write data to flash. Non blocking function. Copy data to write buffer, and return. Buffer will be written in background thread.
|
|
Driver control structure. |