[rtems commit] rtems: From <rtems.h> to <rtems/rtems/tasks.h>

Sebastian Huber sebh at rtems.org
Fri Sep 18 16:56:51 UTC 2020


Module:    rtems
Branch:    master
Commit:    d433b724272abbf9e3516da8c426157c7994f66b
Changeset: http://git.rtems.org/rtems/commit/?id=d433b724272abbf9e3516da8c426157c7994f66b

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Jun 24 10:40:42 2020 +0200

rtems: From <rtems.h> to <rtems/rtems/tasks.h>

Move task related declarations and definitions to <rtems/rtems/tasks.h>.
The goal is to make <rtems.h> an include only header file.

---

 cpukit/include/rtems.h             | 29 -----------------------------
 cpukit/include/rtems/rtems/tasks.h | 29 +++++++++++++++++++++++++++++
 2 files changed, 29 insertions(+), 29 deletions(-)

diff --git a/cpukit/include/rtems.h b/cpukit/include/rtems.h
index 763b1e7..b716796 100644
--- a/cpukit/include/rtems.h
+++ b/cpukit/include/rtems.h
@@ -56,41 +56,12 @@
 #endif
 
 #include <rtems/rtems/support.h>
-#include <rtems/score/stack.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
 /**
- * @brief Minimum stack size which every thread must exceed.
- *
- * It is the minimum stack size recommended for use on this processor. This
- * value is selected by the RTEMS developers conservatively to minimize the
- * risk of blown stacks for most user applications. Using this constant when
- * specifying the task stack size, indicates that the stack size will be at
- * least RTEMS_MINIMUM_STACK_SIZE bytes in size. If the user configured minimum
- * stack size is larger than the recommended minimum, then it will be used.
- */
-#define RTEMS_MINIMUM_STACK_SIZE  STACK_MINIMUM_SIZE
-
-/**
- * @brief Specifies that the task should be created with the configured minimum
- * stack size.
- *
- * Using this constant when specifying the task stack size indicates that this
- * task is to be created with a stack size of the minimum stack size that was
- * configured by the application. If not explicitly configured by the
- * application, the default configured minimum stack size is the processor
- * dependent value RTEMS_MINIMUM_STACK_SIZE. Since this uses the configured
- * minimum stack size value, you may get a stack size that is smaller or larger
- * than the recommended minimum. This can be used to provide large stacks for
- * all tasks on complex applications or small stacks on applications that are
- * trying to conserve memory.
- */
-#define RTEMS_CONFIGURED_MINIMUM_STACK_SIZE  0
-
-/**
  * @brief Constant for indefinite wait.
  *
  * This is actually an illegal interval value.
diff --git a/cpukit/include/rtems/rtems/tasks.h b/cpukit/include/rtems/rtems/tasks.h
index aebd3e0..f685c31 100644
--- a/cpukit/include/rtems/rtems/tasks.h
+++ b/cpukit/include/rtems/rtems/tasks.h
@@ -23,6 +23,7 @@
 #include <rtems/rtems/types.h>
 #include <rtems/score/context.h>
 #include <rtems/score/smp.h>
+#include <rtems/score/stack.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -51,6 +52,34 @@ extern "C" {
 #define RTEMS_YIELD_PROCESSOR WATCHDOG_NO_TIMEOUT
 
 /**
+ * @brief Minimum stack size which every thread must exceed.
+ *
+ * It is the minimum stack size recommended for use on this processor. This
+ * value is selected by the RTEMS developers conservatively to minimize the
+ * risk of blown stacks for most user applications. Using this constant when
+ * specifying the task stack size, indicates that the stack size will be at
+ * least RTEMS_MINIMUM_STACK_SIZE bytes in size. If the user configured minimum
+ * stack size is larger than the recommended minimum, then it will be used.
+ */
+#define RTEMS_MINIMUM_STACK_SIZE  STACK_MINIMUM_SIZE
+
+/**
+ * @brief Specifies that the task should be created with the configured minimum
+ * stack size.
+ *
+ * Using this constant when specifying the task stack size indicates that this
+ * task is to be created with a stack size of the minimum stack size that was
+ * configured by the application. If not explicitly configured by the
+ * application, the default configured minimum stack size is the processor
+ * dependent value RTEMS_MINIMUM_STACK_SIZE. Since this uses the configured
+ * minimum stack size value, you may get a stack size that is smaller or larger
+ * than the recommended minimum. This can be used to provide large stacks for
+ * all tasks on complex applications or small stacks on applications that are
+ * trying to conserve memory.
+ */
+#define RTEMS_CONFIGURED_MINIMUM_STACK_SIZE  0
+
+/**
  *  Define the type for an RTEMS API task priority.
  */
 typedef uint32_t rtems_task_priority;



More information about the vc mailing list