[rtems-central commit] spec: Use rtems_message_queue_construct()
Sebastian Huber
sebh at rtems.org
Mon Sep 28 11:27:30 UTC 2020
Module: rtems-central
Branch: master
Commit: cfbad2a47105583054675e3833ccc0c498c5c3ee
Changeset: http://git.rtems.org/rtems-central/commit/?id=cfbad2a47105583054675e3833ccc0c498c5c3ee
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Sep 28 13:27:14 2020 +0200
spec: Use rtems_message_queue_construct()
---
spec/rtems/message/val/ident.yml | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/spec/rtems/message/val/ident.yml b/spec/rtems/message/val/ident.yml
index 7b24c25..450b19e 100644
--- a/spec/rtems/message/val/ident.yml
+++ b/spec/rtems/message/val/ident.yml
@@ -28,17 +28,25 @@ test-local-includes:
- tr-object-ident.h
test-prologue: |
rtems_status_code sc;
- rtems_id id_local_object;
+ rtems_id id_local_object;
- sc = rtems_message_queue_create(
- ClassicObjectIdentName,
- 1,
- 1,
- RTEMS_DEFAULT_ATTRIBUTES,
+ sc = rtems_message_queue_construct(
+ &ClassicObjectIdentConfig,
&id_local_object
);
T_assert_rsc_success( sc );
test-support: |
+ static RTEMS_MESSAGE_QUEUE_BUFFER( 1 ) ClassicMessageIdentBuffers[ 1 ];
+
+ static rtems_message_queue_config ClassicObjectIdentConfig = {
+ .name = ClassicObjectIdentName,
+ .maximum_pending_messages = RTEMS_ARRAY_SIZE( ClassicMessageIdentBuffers ),
+ .maximum_message_size = 1,
+ .storage_area = ClassicMessageIdentBuffers,
+ .storage_size = sizeof( ClassicMessageIdentBuffers ),
+ .attributes = RTEMS_DEFAULT_ATTRIBUTES
+ };
+
static rtems_status_code ClassicMessageIdentAction(
rtems_name name,
uint32_t node,
More information about the vc
mailing list