From e53aae2676c42cda521328504f82d26c33827021 Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Mon, 26 Mar 2012 16:42:38 -0400 Subject: 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. --- testsuites/samples/unlimited/system.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'testsuites/samples/unlimited/system.h') 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) -- cgit v1.2.3