#include "spi_flash.h"
#include "bf52x_uart.h"
Include dependency graph for spi_flash.c:
Functions | |
void | flash_SetupSPI (const int) |
void | flash_SPI_OFF (void) |
int | WriteFlash (unsigned long, unsigned char) |
int | ReadFlash (unsigned long, unsigned char *) |
void | SendSingleCommand (const int) |
char | ReadStatusRegister (void) |
void | flash_Wait_For_SPIF (void) |
int | Wait_For_WEL (void) |
int | Wait_For_Status (char) |
int | GetSectorStartEnd (unsigned long *ulStartOff, unsigned long *ulEndOff, int nSector) |
int | GetCodes (unsigned char *pflashId, unsigned char len) |
int | EraseFlash (void) |
int | EraseSector (unsigned long ulAddr) |
int | EraseSectorNum (int nBlock) |
int | memoryPageWrite (unsigned long ulStartAdd, unsigned long length, unsigned char *data_buf) |
int | memoryRead (unsigned long ulStartAdd, unsigned long length, unsigned char *data_buf) |
int EraseFlash | ( | void | ) |
int EraseSector | ( | unsigned long | ulAddr | ) |
int EraseSectorNum | ( | int | nBlock | ) |
void flash_SetupSPI | ( | const | int | ) |
void flash_SPI_OFF | ( | void | ) |
void flash_Wait_For_SPIF | ( | void | ) |
int GetCodes | ( | unsigned char * | pflashId, | |
unsigned char | len | |||
) |
int GetSectorStartEnd | ( | unsigned long * | ulStartOff, | |
unsigned long * | ulEndOff, | |||
int | nSector | |||
) |
int memoryPageWrite | ( | unsigned long | ulStartAdd, | |
unsigned long | length, | |||
unsigned char * | data_buf | |||
) |
int memoryRead | ( | unsigned long | ulStartAdd, | |
unsigned long | length, | |||
unsigned char * | data_buf | |||
) |
int ReadFlash | ( | unsigned | long, | |
unsigned char * | ||||
) |
char ReadStatusRegister | ( | void | ) |
void SendSingleCommand | ( | const | int | ) |
int Wait_For_Status | ( | char | ) |
int Wait_For_WEL | ( | void | ) |
int WriteFlash | ( | unsigned | long, | |
unsigned | char | |||
) |