comparison src/cs/drivers/drv_app/ffs/ffs_pool_size.h @ 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 945cf7f506b2
children 92dbfa906f66
comparison
equal deleted inserted replaced
223:619a33e8425e 224:08543d6806b0
25 #define __FFS_POOL_SIZE_H_ 25 #define __FFS_POOL_SIZE_H_
26 26
27 27
28 #ifndef _WINDOWS 28 #ifndef _WINDOWS
29 #include "config/swconfig.cfg" 29 #include "config/swconfig.cfg"
30 #include "config/fc-target.cfg"
30 #endif 31 #endif
31 #include "rv/rv_defined_swe.h" 32 #include "rv/rv_defined_swe.h"
32 33
33 34
34 /* 35 /*
36 */ 37 */
37 #define FFS_STACK_SIZE (1024) 38 #define FFS_STACK_SIZE (1024)
38 #define FFS_MAILBUF_SIZE (1024) // Default: Max 20 pending FFS mails. 39 #define FFS_MAILBUF_SIZE (1024) // Default: Max 20 pending FFS mails.
39 #define FFS_TESTBUF_SIZE (0) // Must be set to zero 40 #define FFS_TESTBUF_SIZE (0) // Must be set to zero
40 41
41 #if (!GSMLITE) 42 #if defined(CONFIG_TARGET_FCFAM) || defined(CONFIG_TARGET_PIRELLI)
43
44 /* large flash, large FFS */
45
46 #ifdef RVM_MSFE_SWE
47 #define FFS_STREAMBUF_SIZE (163840)
48 #else
49 #define FFS_STREAMBUF_SIZE (32768)
50 #endif // RVM_MSFE_SWE
51
52 #else
53
54 /* traditional small FFS */
55
42 #ifdef RVM_MSFE_SWE 56 #ifdef RVM_MSFE_SWE
43 #define FFS_STREAMBUF_SIZE (40960) 57 #define FFS_STREAMBUF_SIZE (40960)
44 #else 58 #else
45 #define FFS_STREAMBUF_SIZE (8192) 59 #define FFS_STREAMBUF_SIZE (8192)
46 #endif // RVM_MSFE_SWE 60 #endif // RVM_MSFE_SWE
47 #else 61
48 #define FFS_STREAMBUF_SIZE (4096) 62 #endif
49 #endif // GSMLITE
50 63
51 #define FFS_MB1_SIZE (FFS_STREAMBUF_SIZE + FFS_MAILBUF_SIZE + FFS_TESTBUF_SIZE) 64 #define FFS_MB1_SIZE (FFS_STREAMBUF_SIZE + FFS_MAILBUF_SIZE + FFS_TESTBUF_SIZE)
52 #define FFS_POOL_SIZE (FFS_STACK_SIZE + FFS_MB1_SIZE) 65 #define FFS_POOL_SIZE (FFS_STACK_SIZE + FFS_MB1_SIZE)
53 66
54 67