summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-12-19 09:27:02 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-12-19 10:02:12 +0100
commita6887d96ae4bbc89da7e13985954a3a0d74502e1 (patch)
tree678b85fc89f3d71e439916cfcafbbd18cb1184fa
parentd585fcb9a8a6fab15d6bba0faf19c0923190c00e (diff)
downloadrtems-docs-a6887d96ae4bbc89da7e13985954a3a0d74502e1.tar.bz2
c-user: CONFIGURE_MAXIMUM_MRSP_SEMAPHORES
Remove use of CONFIGURE_MAXIMUM_MRSP_SEMAPHORES in example. Fix other configuration options. Update #3833.
-rw-r--r--c-user/semaphore_manager.rst19
1 files changed, 12 insertions, 7 deletions
diff --git a/c-user/semaphore_manager.rst b/c-user/semaphore_manager.rst
index f28062f..3e6008d 100644
--- a/c-user/semaphore_manager.rst
+++ b/c-user/semaphore_manager.rst
@@ -923,8 +923,10 @@ EXAMPLE:
sc = rtems_semaphore_set_priority(semaphore_id, scheduler_b_id, prio, &prio);
assert(sc == RTEMS_SUCCESSFUL);
assert(prio == 2);
+
sc = rtems_semaphore_delete(semaphore_id);
assert(sc == RTEMS_SUCCESSFUL);
+
exit(0);
}
@@ -932,8 +934,8 @@ EXAMPLE:
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_MAXIMUM_TASKS 1
#define CONFIGURE_MAXIMUM_SEMAPHORES 1
- #define CONFIGURE_MAXIMUM_MRSP_SEMAPHORES 1
#define CONFIGURE_MAXIMUM_PROCESSORS 2
+
#define CONFIGURE_SCHEDULER_SIMPLE_SMP
#include <rtems/scheduler.h>
@@ -941,12 +943,15 @@ EXAMPLE:
RTEMS_SCHEDULER_CONTEXT_SIMPLE_SMP(a);
RTEMS_SCHEDULER_CONTEXT_SIMPLE_SMP(b);
- #define CONFIGURE_SCHEDULER_CONTROLS \
- RTEMS_SCHEDULER_CONTROL_SIMPLE_SMP(a, SCHED_A), \
- RTEMS_SCHEDULER_CONTROL_SIMPLE_SMP(b, SCHED_B)
- #define CONFIGURE_SMP_SCHEDULER_ASSIGNMENTS \
- RTEMS_SCHEDULER_ASSIGN(0, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY), \
- RTEMS_SCHEDULER_ASSIGN(1, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY)
+ #define CONFIGURE_SCHEDULER_TABLE_ENTRIES \
+ RTEMS_SCHEDULER_TABLE_SIMPLE_SMP(a, SCHED_A), \
+ RTEMS_SCHEDULER_TABLE_SIMPLE_SMP(b, SCHED_B)
+
+ #define CONFIGURE_SCHEDULER_ASSIGNMENTS \
+ RTEMS_SCHEDULER_ASSIGN(0, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY), \
+ RTEMS_SCHEDULER_ASSIGN(1, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY)
+
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_INIT
+
#include <rtems/confdefs.h>