summaryrefslogtreecommitdiff
path: root/led
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-05-11 12:26:04 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-05-11 12:26:04 +0000
commita058e37687c1c799f639e3436da46536a98b11eb (patch)
treedbefc4f69fb873c22585b14d1ea1983a16ac92d1 /led
parentbdaa9488e88a49746e058386c3b74ba338525812 (diff)
2010-05-11 Joel Sherrill <joel.sherrilL@OARcorp.com>
* main.cc: Do not configure as much when disabling the test for small memory targets.
Diffstat (limited to 'led')
-rw-r--r--led/complex1/ChangeLog5
-rw-r--r--led/complex1/main.cc22
2 files changed, 18 insertions, 9 deletions
diff --git a/led/complex1/ChangeLog b/led/complex1/ChangeLog
index f45a0b1..759b171 100644
--- a/led/complex1/ChangeLog
+++ b/led/complex1/ChangeLog
@@ -1,3 +1,8 @@
+2010-05-11 Joel Sherrill <joel.sherrilL@OARcorp.com>
+
+ * main.cc: Do not configure as much when disabling the test for small
+ memory targets.
+
2008-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* main.cc: Rework to avoid new GCC error:
diff --git a/led/complex1/main.cc b/led/complex1/main.cc
index 4b16346..65b8c6d 100644
--- a/led/complex1/main.cc
+++ b/led/complex1/main.cc
@@ -45,17 +45,21 @@ int main(
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
-#define CONFIGURE_MAXIMUM_TASKS 102
-#define CONFIGURE_MAXIMUM_PERIODS 100
-#define CONFIGURE_MAXIMUM_POSIX_THREADS 2
-#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 2
-#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 2
-#define CONFIGURE_EXTRA_TASK_STACKS (32 * 1024)
+#if defined(BSP_SMALL_MEMORY)
+ #define CONFIGURE_MAXIMUM_TASKS 1
+#else
+ #define CONFIGURE_MAXIMUM_TASKS 102
+ #define CONFIGURE_MAXIMUM_PERIODS 100
+ #define CONFIGURE_MAXIMUM_POSIX_THREADS 2
+ #define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 2
+ #define CONFIGURE_MAXIMUM_POSIX_MUTEXES 2
+ #define CONFIGURE_EXTRA_TASK_STACKS (32 * 1024)
-#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
-#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
+ #define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
+ #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
-#define CONFIGURE_STACK_CHECKER_ENABLED
+ #define CONFIGURE_STACK_CHECKER_ENABLED
+#endif
#define CONFIGURE_INIT