summaryrefslogtreecommitdiffstats
path: root/spec/rtems/task
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-11-18 08:54:46 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-11-19 08:22:34 +0100
commit2ec2fbbd8223a4baddefaa20b7075c4ca4393236 (patch)
treebf923e904c231088f739e753cec05967fcaf09c8 /spec/rtems/task
parentspec: Specify RTEMS_MINIMUM_STACK_SIZE (diff)
downloadrtems-central-2ec2fbbd8223a4baddefaa20b7075c4ca4393236.tar.bz2
spec: Specify RTEMS_MINIMUM_PRIORITY
Diffstat (limited to 'spec/rtems/task')
-rw-r--r--spec/rtems/task/req/minimum-priority.yml16
-rw-r--r--spec/rtems/task/val/task.yml9
2 files changed, 25 insertions, 0 deletions
diff --git a/spec/rtems/task/req/minimum-priority.yml b/spec/rtems/task/req/minimum-priority.yml
new file mode 100644
index 00000000..28862be3
--- /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 e7caa97e..4964922a 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;