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, ...) //printf("\x1b[32m" _f "\x1b[0m", ## __VA_ARGS__) 71 #define SPIFFS_API_DBG(_f, ...) //printf("\n\x1b[1m\x1b[7m" _f "\x1b[0m", ## __VA_ARGS__) 72 #define SPIFFS_GC_DBG(_f, ...) //printf("\x1b[36m" _f "\x1b[0m", ## __VA_ARGS__) 73 #define SPIFFS_CACHE_DBG(_f, ...) //printf("\x1b[33m" _f "\x1b[0m", ## __VA_ARGS__) 74 #define SPIFFS_CHECK_DBG(_f, ...) //printf("\x1b[31m" _f "\x1b[0m", ## __VA_ARGS__) 82 typedef unsigned char u8_t;
signed int s32_t
Definition: params_test.h:77
void test_lock(struct spiffs_t *fs)
unsigned char u8_t
Definition: params_test.h:82
signed short s16_t
Definition: params_test.h:79
unsigned short u16_t
Definition: params_test.h:80
void real_assert(int c, const char *n, const char *file, int l)
void test_unlock(struct spiffs_t *fs)
unsigned int u32_t
Definition: params_test.h:78
signed char s8_t
Definition: params_test.h:81