summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/unlimited/system.h
diff options
context:
space:
mode:
authorGedare Bloom <gedare@rtems.org>2012-03-26 16:42:38 -0400
committerGedare Bloom <gedare@rtems.org>2012-03-27 19:51:31 -0400
commite53aae2676c42cda521328504f82d26c33827021 (patch)
treebae4748b9a2db645f8da88fe8b72e676b161c25f /testsuites/samples/unlimited/system.h
parentGRETH: added support for non-snooping GRETH 10/100 systems (diff)
downloadrtems-e53aae2676c42cda521328504f82d26c33827021.tar.bz2
confdefs: Add declaration for unlimited objects.
Adds to confdefs a way to specify rtems_resource_unlimited for classic and posix objects using a new macro CONFIGURE_OBJECTS_UNLIMITED. Use CONFIGURE_OBJECTS_ALLOCATION_SIZE to declare the allocation size for extending the set of objects at runtime. Updates the unlimited sample to demonstrate how to use the new macros. Also adds new documentation in the C User's Manual regarding configuring with unlimited objects.
Diffstat (limited to '')
-rw-r--r--testsuites/samples/unlimited/system.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuites/samples/unlimited/system.h b/testsuites/samples/unlimited/system.h
index e1c9cb7574..8acbded79e 100644
--- a/testsuites/samples/unlimited/system.h
+++ b/testsuites/samples/unlimited/system.h
@@ -50,7 +50,8 @@ extern void test3(void);
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define TASK_ALLOCATION_SIZE (5)
-#define CONFIGURE_MAXIMUM_TASKS rtems_resource_unlimited(TASK_ALLOCATION_SIZE)
+#define CONFIGURE_UNLIMITED_OBJECTS
+#define CONFIGURE_UNLIMITED_ALLOCATION_SIZE TASK_ALLOCATION_SIZE
#define CONFIGURE_INIT_TASK_STACK_SIZE (8 * 1024)