diff src/cs/drivers/drv_app/r2d/r2d_pool_size.h @ 0:4e78acac3d88

src/{condat,cs,gpf,nucleus}: import from Selenite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:23:26 +0000
parents
children 927e8b825ed1
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/cs/drivers/drv_app/r2d/r2d_pool_size.h	Fri Oct 16 06:23:26 2020 +0000
@@ -0,0 +1,71 @@
+/**
+ * @file	r2d_pool_size.h
+ *
+ * Declarations of:
+ * - the memory bank sizes and their watermark
+ * - the SWE stack size
+ * - the pool size needed (generally the sum of memory bank and stack sizes)
+ *
+ * @author	Vincent Oberle
+ * @version 0.1
+ */
+
+/*
+ * History:
+ *
+ *	Date       	Author					Modification
+ *	-------------------------------------------------------------------
+ *	07/08/2003	Vincent Oberle			Extracted from rvf_pool_size.h
+ *
+ * (C) Copyright 2003 by Texas Instruments Incorporated, All Rights Reserved
+ */
+
+#ifndef __R2D_POOL_SIZE_H_
+#define __R2D_POOL_SIZE_H_
+
+
+#ifndef _WINDOWS
+  #include "config/r2d.cfg"
+  #include "config/board.cfg"
+  #include "config/fc-target.h"
+  #include "config/swconfig.cfg"
+#endif
+
+
+/*
+ * Values used in r2d_env.h (Stack) & r2d_inits.c (Memory Banks)
+ */
+#define R2D_STACK_SIZE   (1000)
+
+#if (R2D_LCD_TEST == 1)
+   #if defined (_WINDOWS)
+      #define R2D_MB1_SIZE   (4000)
+   #else
+      #define R2D_MB1_SIZE   (3000)
+   #endif
+#elif ((BOARD == 7) || (BOARD == 8) || (BOARD == 9) || \
+	defined(CONFIG_TARGET_C139))
+/* #if ((R2D_EMBEDDED_LCD == R2D_MIRRORED_LCD) || (R2D_EMBEDDED_LCD == R2D_SIMPLE_LCD)) */
+  #define R2D_MB1_SIZE   (2000) /* B or C-Sample with B&W LCD (default setting) */
+/* #elif (R2D_EMBEDDED_LCD == R2D_BOARD_COLOR_LCD) */
+  /* #define R2D_MB1_SIZE (3000) */ /* C-Sample with Color LCD */
+#elif ((BOARD == 40) || (BOARD == 41) || (BOARD == 42) || (BOARD == 43))
+/* #elif ((R2D_EMBEDDED_LCD == R2D_BOARD_DSAMPLE) || (R2D_EMBEDDED_LCD == R2D_BOARD_BW_DSAMPLE)) */
+  #define R2D_MB1_SIZE   (4000) /* D-Sample */
+#elif defined (_WINDOWS)
+/* #elif (R2D_EMBEDDED_LCD == R2D_PC_COLOR_LCD) */
+  #define R2D_MB1_SIZE   (4000) /* ColorPC */
+/* #elif (R2D_EMBEDDED_LCD == R2D_PC_CSAMPLE) */
+  /* #define R2D_MB1_SIZE (XXXX) */
+/* #elif (R2D_EMBEDDED_LCD == R2D_PC_DSAMPLE) */
+  /* #define R2D_MB1_SIZE (XXXX) */
+/* #elif (R2D_EMBEDDED_LCD == R2D_CUSTOMER_LCD) */
+  /* #define R2D_MB1_SIZE (XXXX) */
+/* #elif (R2D_EMBEDDED_LCD == R2D_HORIZONTAL_LCD) */
+  /* #define R2D_MB1_SIZE (XXXX) */
+#endif
+
+#define R2D_POOL_SIZE    (R2D_STACK_SIZE + R2D_MB1_SIZE)
+
+
+#endif /*__R2D_POOL_SIZE_H_*/