1234567891011121314151617 |
- #ifndef __SPI_FLASH_H__
- #define __SPI_FLASH_H__
- #include "stdbool.h"
- #define SECTOR_SIZE_BYTE 4096
- #define SPI_FLASH_MAX_SIZE (4*1024*1024)
- #define TEST_SPIFLASH_ON
- #ifdef TEST_SPIFLASH_ON
- typedef struct{
- unsigned int id;
- unsigned char errno;
- }SPIFLASH_INFO;
- bool spiFlashSectorTest(unsigned short sector, SPIFLASH_INFO *spiFlashInfo);
- #endif
- #endif
|