[PATCH 4/6] rtems: From <rtems.h> to <rtems/rtems/types.h>

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Sep 18 07:34:54 UTC 2020


Move type related definition to <rtems/rtems/types.h>.  The goal is to
make <rtems.h> an include only header file.
---
 cpukit/include/rtems.h             | 7 -------
 cpukit/include/rtems/rtems/types.h | 7 +++++++
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/cpukit/include/rtems.h b/cpukit/include/rtems.h
index b716796fdc..ff0cb69bcf 100644
--- a/cpukit/include/rtems.h
+++ b/cpukit/include/rtems.h
@@ -61,13 +61,6 @@
 extern "C" {
 #endif
 
-/**
- * @brief Constant for indefinite wait.
- *
- * This is actually an illegal interval value.
- */
-#define RTEMS_NO_TIMEOUT  ((rtems_interval) WATCHDOG_NO_TIMEOUT)
-
 /**
  * @brief An MPCI must support packets of at least this size.
  */
diff --git a/cpukit/include/rtems/rtems/types.h b/cpukit/include/rtems/rtems/types.h
index e5dd1afc3b..5ce3eb6604 100644
--- a/cpukit/include/rtems/rtems/types.h
+++ b/cpukit/include/rtems/rtems/types.h
@@ -85,6 +85,13 @@ typedef CPU_Interrupt_frame        rtems_interrupt_frame;
  */
 typedef Watchdog_Interval rtems_interval;
 
+/**
+ * @brief Constant for indefinite wait.
+ *
+ * This is actually an illegal interval value.
+ */
+#define RTEMS_NO_TIMEOUT  ((rtems_interval) WATCHDOG_NO_TIMEOUT)
+
 /**
  * @brief Data structure to manage and manipulate calendar
  * @ref ClassicRTEMSSecTime "time".
-- 
2.26.2



More information about the devel mailing list