comparison src/cs/drivers/drv_app/ffs/ffs_pool_size.h @ 0:b6a5e36de839

src/cs: initial import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 15 Jul 2018 04:39:26 +0000
parents
children 7409b22cac61
comparison
equal deleted inserted replaced
-1:000000000000 0:b6a5e36de839
1 /**
2 * @file ffs_pool_size.h
3 *
4 * Declarations of:
5 * - the memory bank sizes and their watermark
6 * - the SWE stack size
7 * - the pool size needed (generally the sum of memory bank and stack sizes)
8 *
9 * @author Vincent Oberle
10 * @version 0.1
11 */
12
13 /*
14 * History:
15 *
16 * Date Author Modification
17 * -------------------------------------------------------------------
18 * 07/08/2003 Vincent Oberle Extracted from rvf_pool_size.h
19 * 09/03/2004 Tommy Jensen Split pool size into several defines
20 *
21 * (C) Copyright 2003 by Texas Instruments Incorporated, All Rights Reserved
22 */
23
24 #ifndef __FFS_POOL_SIZE_H_
25 #define __FFS_POOL_SIZE_H_
26
27
28 #ifndef _WINDOWS
29 #include "config/swconfig.cfg"
30 #include "config/fc-target.cfg"
31 #endif
32 #include "rv/rv_defined_swe.h"
33
34
35 /*
36 * Values used in ffs_env.h
37 */
38 #define FFS_STACK_SIZE (1024)
39 #define FFS_MAILBUF_SIZE (1024) // Default: Max 20 pending FFS mails.
40 #define FFS_TESTBUF_SIZE (0) // Must be set to zero
41
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
56 #ifdef RVM_MSFE_SWE
57 #define FFS_STREAMBUF_SIZE (40960)
58 #else
59 #define FFS_STREAMBUF_SIZE (8192)
60 #endif // RVM_MSFE_SWE
61
62 #endif
63
64 #define FFS_MB1_SIZE (FFS_STREAMBUF_SIZE + FFS_MAILBUF_SIZE + FFS_TESTBUF_SIZE)
65 #define FFS_POOL_SIZE (FFS_STACK_SIZE + FFS_MB1_SIZE)
66
67
68 #endif /*__FFS_POOL_SIZE_H_*/