From 72cf78de2c184842cfbef69a755defd0c3bbc42c Mon Sep 17 00:00:00 2001 From: Deomid Ryabkov Date: Wed, 16 Mar 2016 00:46:16 +0100 Subject: [PATCH] CC3200 fixes Increase heap size to 44K (13K free after init) Add File.list() support Fix a bunch of bugs in file support Disable sys_init.js, there just isn't enough RAM... PUBLISHED_FROM=2121b8758f0596da39c3eafcfff36337a1b90b74 --- mongoose.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/mongoose.h b/mongoose.h index 58724f25..cf35386b 100644 --- a/mongoose.h +++ b/mongoose.h @@ -555,6 +555,22 @@ int gettimeofday(struct timeval *t, void *tz); long int random(void); +#ifdef CC3200_ENABLE_SPIFFS +#include + +typedef struct { + spiffs_DIR dh; + struct spiffs_dirent de; +} DIR; + +#define d_name name +#define dirent spiffs_dirent + +DIR *opendir(const char *dir_name); +int closedir(DIR *dir); +struct dirent *readdir(DIR *dir); +#endif + #endif /* CS_PLATFORM == CS_P_CC3200 */ #endif /* CS_COMMON_PLATFORMS_PLATFORM_CC3200_H_ */ /*