comparison src/cs/drivers/drv_app/r2d/r2d_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 r2d_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 *
20 * (C) Copyright 2003 by Texas Instruments Incorporated, All Rights Reserved
21 */
22
23 #ifndef __R2D_POOL_SIZE_H_
24 #define __R2D_POOL_SIZE_H_
25
26
27 #ifndef _WINDOWS
28 #include "config/r2d.cfg"
29 #include "config/board.cfg"
30 #include "config/fc-target.cfg"
31 #include "config/swconfig.cfg"
32 #endif
33
34
35 /*
36 * Values used in r2d_env.h (Stack) & r2d_inits.c (Memory Banks)
37 */
38 #define R2D_STACK_SIZE (1000)
39
40 #if (R2D_LCD_TEST == 1)
41 #if defined (_WINDOWS)
42 #define R2D_MB1_SIZE (4000)
43 #else
44 #define R2D_MB1_SIZE (3000)
45 #endif
46 #elif ((BOARD == 7) || (BOARD == 8) || (BOARD == 9) || \
47 defined(CONFIG_TARGET_C139))
48 /* #if ((R2D_EMBEDDED_LCD == R2D_MIRRORED_LCD) || (R2D_EMBEDDED_LCD == R2D_SIMPLE_LCD)) */
49 #define R2D_MB1_SIZE (2000) /* B or C-Sample with B&W LCD (default setting) */
50 /* #elif (R2D_EMBEDDED_LCD == R2D_BOARD_COLOR_LCD) */
51 /* #define R2D_MB1_SIZE (3000) */ /* C-Sample with Color LCD */
52 #elif ((BOARD == 40) || (BOARD == 41) || (BOARD == 42) || (BOARD == 43))
53 /* #elif ((R2D_EMBEDDED_LCD == R2D_BOARD_DSAMPLE) || (R2D_EMBEDDED_LCD == R2D_BOARD_BW_DSAMPLE)) */
54 #define R2D_MB1_SIZE (4000) /* D-Sample */
55 #elif defined (_WINDOWS)
56 /* #elif (R2D_EMBEDDED_LCD == R2D_PC_COLOR_LCD) */
57 #define R2D_MB1_SIZE (4000) /* ColorPC */
58 /* #elif (R2D_EMBEDDED_LCD == R2D_PC_CSAMPLE) */
59 /* #define R2D_MB1_SIZE (XXXX) */
60 /* #elif (R2D_EMBEDDED_LCD == R2D_PC_DSAMPLE) */
61 /* #define R2D_MB1_SIZE (XXXX) */
62 /* #elif (R2D_EMBEDDED_LCD == R2D_CUSTOMER_LCD) */
63 /* #define R2D_MB1_SIZE (XXXX) */
64 /* #elif (R2D_EMBEDDED_LCD == R2D_HORIZONTAL_LCD) */
65 /* #define R2D_MB1_SIZE (XXXX) */
66 #endif
67
68 #define R2D_POOL_SIZE (R2D_STACK_SIZE + R2D_MB1_SIZE)
69
70
71 #endif /*__R2D_POOL_SIZE_H_*/