summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/coremsg.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-23 13:46:38 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-28 06:19:52 +0200
commit2c09f54fc41b86265af137716013bce2e2e92b27 (patch)
tree9200c74aad1f4f08bb01e9f87b3dfd146308491d /cpukit/include/rtems/score/coremsg.h
parentscore: Simplify CORE_message_queue_Buffer (diff)
downloadrtems-2c09f54fc41b86265af137716013bce2e2e92b27.tar.bz2
score: Add <rtems/score/coremsgbuffer.h>
Move the CORE_message_queue_Buffer definition to a separate header file to be able to use it independent of the remaining Message Queue Handler API. Change license to BSD-2-Clause according to file history. Update #3053. Update #4007.
Diffstat (limited to 'cpukit/include/rtems/score/coremsg.h')
-rw-r--r--cpukit/include/rtems/score/coremsg.h39
1 files changed, 1 insertions, 38 deletions
diff --git a/cpukit/include/rtems/score/coremsg.h b/cpukit/include/rtems/score/coremsg.h
index 2131fa0765..220c9839a5 100644
--- a/cpukit/include/rtems/score/coremsg.h
+++ b/cpukit/include/rtems/score/coremsg.h
@@ -21,7 +21,7 @@
#ifndef _RTEMS_SCORE_COREMSG_H
#define _RTEMS_SCORE_COREMSG_H
-#include <rtems/score/chain.h>
+#include <rtems/score/coremsgbuffer.h>
#include <rtems/score/isrlock.h>
#include <rtems/score/threadq.h>
#include <rtems/score/watchdog.h>
@@ -43,13 +43,6 @@ extern "C" {
* @{
*/
-/**
- * This macro is defined when an API is enabled that requires that the
- * Message Queue Handler include support for priority based enqueuing
- * of messages.
- */
-#define RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY
-
#if defined(RTEMS_POSIX_API)
/**
* This macro is defined when an API is enabled that requires that the
@@ -68,36 +61,6 @@ extern "C" {
typedef struct CORE_message_queue_Control CORE_message_queue_Control;
/**
- * @brief The structure is used to organize message buffers of a message queue.
- */
-typedef struct {
- /**
- * @brief This member is used to enqueue the buffer in the pending or free
- * buffer queue of a message queue.
- */
- Chain_Node Node;
-
- /** @brief This member defines the size of this message. */
- size_t size;
-
-#if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY)
- /** @brief This member defines the priority of this message. */
- int priority;
-#endif
-
- /**
- * @brief This member contains the actual message.
- *
- * This is a zero-length array since the maximum message size is defined by
- * the user. Use a size_t array to make sure that the member offset is at
- * the structure end. This enables a more efficient memcpy() on 64-bit
- * targets and makes it easier to inspect the message buffers with a
- * debugger.
- */
- size_t buffer[ RTEMS_ZERO_LENGTH_ARRAY ];
-} CORE_message_queue_Buffer;
-
-/**
* @brief The possible blocking disciplines for a message queue.
*
* This enumerated types defines the possible blocking disciplines