params_test.h 894 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * params_test.h
  3. *
  4. * Created on: May 26, 2013
  5. * Author: petera
  6. */
  7. #ifndef PARAMS_TEST_H_
  8. #define PARAMS_TEST_H_
  9. // total emulated spi flash size
  10. #define PHYS_FLASH_SIZE (16*1024*1024)
  11. // spiffs file system size
  12. #define SPIFFS_FLASH_SIZE (2*1024*1024)
  13. // spiffs file system offset in emulated spi flash
  14. #define SPIFFS_PHYS_ADDR (4*1024*1024)
  15. #define SECTOR_SIZE 65536
  16. #define LOG_BLOCK (SECTOR_SIZE*2)
  17. #define LOG_PAGE (SECTOR_SIZE/256)
  18. #define FD_BUF_SIZE 64*6
  19. #define CACHE_BUF_SIZE (LOG_PAGE + 32)*8
  20. #define ASSERT(c, m) real_assert((c),(m), __FILE__, __LINE__);
  21. typedef signed int s32_t;
  22. typedef unsigned int u32_t;
  23. typedef signed short s16_t;
  24. typedef unsigned short u16_t;
  25. typedef signed char s8_t;
  26. typedef unsigned char u8_t;
  27. void real_assert(int c, const char *n, const char *file, int l);
  28. #endif /* PARAMS_TEST_H_ */