Lower resources demands of OMK LwIP test fit in internal eSRAM for such TMS570 link...
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Wed, 11 Nov 2015 16:26:10 +0000 (17:26 +0100)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Wed, 11 Nov 2015 16:26:10 +0000 (17:26 +0100)
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
rtems-omk-template/applwiptest/system.h

index 1282cbd..79716d8 100644 (file)
@@ -25,26 +25,28 @@ rtems_task Init(
 
 #include <bsp.h> /* for device driver prototypes */
 
+#define CONFIGURE_UNIFIED_WORK_AREAS
+
 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
 #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
 #define CONFIGURE_APPLICATION_NEEDS_LIBBLOCK
 
 #define TICKS_PER_SECOND 1000
 
-#define CONFIGURE_MAXIMUM_TIMERS                 32
-#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES         32
-#define CONFIGURE_MAXIMUM_SEMAPHORES             32
-#define CONFIGURE_MAXIMUM_TASKS                  32
+#define CONFIGURE_MAXIMUM_TIMERS                 8
+#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES         8
+#define CONFIGURE_MAXIMUM_SEMAPHORES             12
+#define CONFIGURE_MAXIMUM_TASKS                  12
 #define CONFIGURE_MAXIMUM_PERIODS                4
 #define CONFIGURE_MAXIMUM_USER_EXTENSIONS        2
-#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 32
+#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 16
 /*#define CONFIGURE_MAXIMUM_DRIVERS (CONFIGURE_NUMBER_OF_DRIVERS+10)*/
-#define CONFIGURE_MAXIMUM_DRIVERS                32
+#define CONFIGURE_MAXIMUM_DRIVERS                8
 
 #ifdef RTEMS_POSIX_API
-#define CONFIGURE_MAXIMUM_POSIX_THREADS          32
-#define CONFIGURE_MAXIMUM_POSIX_MUTEXES          20
-#define CONFIGURE_MAXIMUM_POSIX_SEMAPHORES       10
+#define CONFIGURE_MAXIMUM_POSIX_THREADS          2
+#define CONFIGURE_MAXIMUM_POSIX_MUTEXES          2
+#define CONFIGURE_MAXIMUM_POSIX_SEMAPHORES       2
 #define CONFIGURE_MAXIMUM_POSIX_KEYS             4
 #define CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS  8
 #endif /*RTEMS_POSIX_API*/
@@ -59,9 +61,9 @@ rtems_task Init(
 
 #define CONFIGURE_MICROSECONDS_PER_TICK 1000
 
-#define CONFIGURE_EXTRA_TASK_STACKS     (10 * (RTEMS_MINIMUM_STACK_SIZE + 2 * 1024))
+#define CONFIGURE_EXTRA_TASK_STACKS     (2 * (RTEMS_MINIMUM_STACK_SIZE + 0 * 1024))
 
-#define CONFIGURE_INIT_TASK_STACK_SIZE  (10*1024)
+#define CONFIGURE_INIT_TASK_STACK_SIZE  (3*1024)
 #define CONFIGURE_INIT_TASK_PRIORITY    120
 #define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \
                                            RTEMS_NO_TIMESLICE | \