spiFlash.h 355 B

1234567891011121314151617
  1. #ifndef __SPI_FLASH_H__
  2. #define __SPI_FLASH_H__
  3. #include "stdbool.h"
  4. #define SECTOR_SIZE_BYTE 4096
  5. #define SPI_FLASH_MAX_SIZE (4*1024*1024)
  6. #define TEST_SPIFLASH_ON
  7. #ifdef TEST_SPIFLASH_ON
  8. typedef struct{
  9. unsigned int id;
  10. unsigned char errno;
  11. }SPIFLASH_INFO;
  12. bool spiFlashSectorTest(unsigned short sector, SPIFLASH_INFO *spiFlashInfo);
  13. #endif
  14. #endif