summaryrefslogtreecommitdiffstats
path: root/spec/build
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2023-07-05 15:28:54 -0500
committerJoel Sherrill <joel@rtems.org>2023-08-11 13:44:47 -0500
commitfd693085ea1fcfe41fedb877eac35875cad4aa08 (patch)
treeb5d4b04e53807892c108912c343e7dd7b531838e /spec/build
parentbuild: Make tar archives reproducible (diff)
downloadrtems-fd693085ea1fcfe41fedb877eac35875cad4aa08.tar.bz2
Add the Regulator Interface and test
Updates #4924. The Regulator is an application support class which is used to deal with the scenario where there is a bursty input source which needs to be metered out to a destination sink. The maximum size of bursts needs to be known and the delivery method must be configured to deliver messages at a rate that allows the traffic to not overflow.
Diffstat (limited to 'spec/build')
-rw-r--r--spec/build/cpukit/librtemscpu.yml2
-rw-r--r--spec/build/cpukit/objregulator.yml18
-rw-r--r--spec/build/testsuites/libtests/grp.yml2
-rw-r--r--spec/build/testsuites/libtests/regulator01.yml21
4 files changed, 43 insertions, 0 deletions
diff --git a/spec/build/cpukit/librtemscpu.yml b/spec/build/cpukit/librtemscpu.yml
index 4511627017..7cf0863859 100644
--- a/spec/build/cpukit/librtemscpu.yml
+++ b/spec/build/cpukit/librtemscpu.yml
@@ -511,6 +511,8 @@ links:
- role: build-dependency
uid: objpci
- role: build-dependency
+ uid: objregulator
+- role: build-dependency
uid: objpsxsgnl
- role: build-dependency
uid: objshell
diff --git a/spec/build/cpukit/objregulator.yml b/spec/build/cpukit/objregulator.yml
new file mode 100644
index 0000000000..56d6154de9
--- /dev/null
+++ b/spec/build/cpukit/objregulator.yml
@@ -0,0 +1,18 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+build-type: objects
+cflags: []
+copyrights:
+- Copyright (C) 2023 OAR Corporatoin
+cppflags: []
+cxxflags: []
+enabled-by: true
+includes: []
+install:
+- destination: ${BSP_INCLUDEDIR}/rtems
+ source:
+ - cpukit/include/rtems/regulator.h
+ - cpukit/include/rtems/regulatorimpl.h
+links: []
+source:
+- cpukit/libmisc/regulator/regulator.c
+type: build
diff --git a/spec/build/testsuites/libtests/grp.yml b/spec/build/testsuites/libtests/grp.yml
index addcb286ad..c1a6209e99 100644
--- a/spec/build/testsuites/libtests/grp.yml
+++ b/spec/build/testsuites/libtests/grp.yml
@@ -229,6 +229,8 @@ links:
- role: build-dependency
uid: record02
- role: build-dependency
+ uid: regulator01
+- role: build-dependency
uid: rtmonuse
- role: build-dependency
uid: setjmp
diff --git a/spec/build/testsuites/libtests/regulator01.yml b/spec/build/testsuites/libtests/regulator01.yml
new file mode 100644
index 0000000000..776d0ae34b
--- /dev/null
+++ b/spec/build/testsuites/libtests/regulator01.yml
@@ -0,0 +1,21 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+build-type: test-program
+cflags: []
+copyrights:
+- Copyright (C) 2023 OAR Corporation
+cppflags: []
+cxxflags: []
+enabled-by: true
+features: c cprogram
+includes: []
+ldflags:
+- -Wl,--wrap=malloc
+links: []
+source:
+- testsuites/libtests/regulator01/regulator01.c
+- testsuites/libtests/regulator01/rtems_config.c
+stlib: []
+target: testsuites/libtests/regulator01.exe
+type: build
+use-after: []
+use-before: []