[rtems-central commit] spec: Specify RTEMS_MINIMUM_PRIORITY

Sebastian Huber sebh at rtems.org
Fri Nov 19 07:51:57 UTC 2021


Module:    rtems-central
Branch:    master
Commit:    2ec2fbbd8223a4baddefaa20b7075c4ca4393236
Changeset: http://git.rtems.org/rtems-central/commit/?id=2ec2fbbd8223a4baddefaa20b7075c4ca4393236

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Nov 18 08:54:46 2021 +0100

spec: Specify RTEMS_MINIMUM_PRIORITY

---

 spec/rtems/task/req/minimum-priority.yml | 16 ++++++++++++++++
 spec/rtems/task/val/task.yml             |  9 +++++++++
 2 files changed, 25 insertions(+)

diff --git a/spec/rtems/task/req/minimum-priority.yml b/spec/rtems/task/req/minimum-priority.yml
new file mode 100644
index 0000000..28862be
--- /dev/null
+++ b/spec/rtems/task/req/minimum-priority.yml
@@ -0,0 +1,16 @@
+SPDX-License-Identifier: CC-BY-SA-4.0
+copyrights:
+- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de)
+enabled-by: true
+links:
+- role: interface-function
+  uid: ../if/minimum-priority
+functional-type: function
+rationale: null
+references: []
+requirement-type: functional
+text: |
+  The ${../if/minimum-priority:/name} constant shall expand to a constant
+  expression which evaluates to the highest task priority available to
+  application tasks.
+type: requirement
diff --git a/spec/rtems/task/val/task.yml b/spec/rtems/task/val/task.yml
index e7caa97..4964922 100644
--- a/spec/rtems/task/val/task.yml
+++ b/spec/rtems/task/val/task.yml
@@ -126,6 +126,15 @@ test-actions:
   - role: validation
     uid: ../req/minimum-stack-size
 - action-brief: |
+    Assert that ${../if/minimum-priority:/name} is a constant expression which
+    evaluates to the expected value.
+  action-code: |
+    RTEMS_STATIC_ASSERT( RTEMS_MINIMUM_PRIORITY == 1, MINIMUM_PRIORITY );
+  checks: []
+  links:
+  - role: validation
+    uid: ../req/minimum-priority
+- action-brief: |
     Validate ${../if/self-define:/name} using a sample directive call.
   action-code: |
     rtems_status_code sc;



More information about the vc mailing list