14 #define PHYS_FLASH_SIZE (16*1024*1024)
16 #define SPIFFS_FLASH_SIZE (2*1024*1024)
18 #define SPIFFS_PHYS_ADDR (4*1024*1024)
20 #define SECTOR_SIZE 65536
22 #define LOG_BLOCK (SECTOR_SIZE*2)
24 #define LOG_PAGE (SECTOR_SIZE/256)
26 #define DEFAULT_NUM_FD 16
28 #define DEFAULT_NUM_CACHE_PAGES 8
32 #define TEST_PATH "/dev/shm/spiffs/test-data/"
34 #define ASSERT(c, m) real_assert((c),(m), __FILE__, __LINE__);
35 void real_assert(
int c,
const char *n,
const char *file,
int l);
40 #ifndef SPIFFS_USE_MAGIC
41 #define SPIFFS_USE_MAGIC 1
44 #ifndef SPIFFS_USE_MAGIC_LENGTH
45 #define SPIFFS_USE_MAGIC_LENGTH 1
48 #ifndef SPIFFS_HAL_CALLBACK_EXTRA
49 #define SPIFFS_HAL_CALLBACK_EXTRA 1
52 #ifndef SPIFFS_FILEHDL_OFFSET
53 #define SPIFFS_FILEHDL_OFFSET 1
55 #define TEST_SPIFFS_FILEHDL_OFFSET 0x1000
59 #define SPIFFS_LOCK(fs)
60 #define SPIFFS_UNLOCK(fs)
65 #define SPIFFS_LOCK(fs) test_lock(fs)
66 #define SPIFFS_UNLOCK(fs) test_unlock(fs)
70 #define SPIFFS_DBG(_f, ...)
71 #define SPIFFS_API_DBG(_f, ...)
72 #define SPIFFS_GC_DBG(_f, ...)
73 #define SPIFFS_CACHE_DBG(_f, ...)
74 #define SPIFFS_CHECK_DBG(_f, ...)
82 typedef unsigned char u8_t;
unsigned int u32_t
Definition: params_test.h:78
void real_assert(int c, const char *n, const char *file, int l)
signed short s16_t
Definition: params_test.h:79
void test_lock(struct spiffs_t *fs)
signed char s8_t
Definition: params_test.h:81
unsigned char u8_t
Definition: params_test.h:82
void test_unlock(struct spiffs_t *fs)
signed int s32_t
Definition: params_test.h:77
unsigned short u16_t
Definition: params_test.h:80