changeset 224:08543d6806b0

FFS RVF pool size has to be increased for targets with large FFS
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 24 Oct 2016 00:07:49 +0000
parents 619a33e8425e
children b16d79c550a2
files src/cs/drivers/drv_app/ffs/ffs_pool_size.h
diffstat 1 files changed, 17 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/ffs/ffs_pool_size.h	Sun Oct 16 00:53:45 2016 +0000
+++ b/src/cs/drivers/drv_app/ffs/ffs_pool_size.h	Mon Oct 24 00:07:49 2016 +0000
@@ -27,6 +27,7 @@
 
 #ifndef _WINDOWS
   #include "config/swconfig.cfg"
+  #include "config/fc-target.cfg"
 #endif
 #include "rv/rv_defined_swe.h"
 
@@ -38,15 +39,27 @@
 #define FFS_MAILBUF_SIZE (1024)      // Default: Max 20 pending FFS mails.
 #define FFS_TESTBUF_SIZE (0)         // Must be set to zero
 
-#if (!GSMLITE)
+#if defined(CONFIG_TARGET_FCFAM) || defined(CONFIG_TARGET_PIRELLI)
+
+/* large flash, large FFS */
+
+#ifdef RVM_MSFE_SWE
+   #define FFS_STREAMBUF_SIZE (163840)
+#else
+   #define FFS_STREAMBUF_SIZE (32768)
+#endif // RVM_MSFE_SWE
+
+#else
+
+/* traditional small FFS */
+
 #ifdef RVM_MSFE_SWE
    #define FFS_STREAMBUF_SIZE (40960)
 #else
    #define FFS_STREAMBUF_SIZE (8192)
 #endif // RVM_MSFE_SWE
-#else 
-   #define FFS_STREAMBUF_SIZE (4096)
-#endif // GSMLITE
+
+#endif
 
 #define FFS_MB1_SIZE (FFS_STREAMBUF_SIZE + FFS_MAILBUF_SIZE + FFS_TESTBUF_SIZE)
 #define FFS_POOL_SIZE  (FFS_STACK_SIZE + FFS_MB1_SIZE)