[rtems-central commit] spec: Review the Classic API types

Sebastian Huber sebh at rtems.org
Mon Nov 9 09:49:19 UTC 2020


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Nov  9 09:50:45 2020 +0100

spec: Review the Classic API types

---

 spec/rtems/type/if/group.yml                     |  2 +-
 spec/rtems/type/if/header.yml                    |  2 +-
 spec/rtems/type/if/id.yml                        |  2 +-
 spec/rtems/type/if/interval.yml                  |  2 +-
 spec/rtems/type/if/mp-packet-classes.yml         |  2 +-
 spec/rtems/type/if/mpci-entry.yml                |  2 +-
 spec/rtems/type/if/mpci-get-packet-entry.yml     |  2 +-
 spec/rtems/type/if/mpci-initialization-entry.yml |  3 +--
 spec/rtems/type/if/mpci-receive-packet-entry.yml |  3 +--
 spec/rtems/type/if/mpci-return-packet-entry.yml  |  2 +-
 spec/rtems/type/if/mpci-send-packet-entry.yml    |  2 +-
 spec/rtems/type/if/mpci-table.yml                |  2 +-
 spec/rtems/type/if/multiprocessing-table.yml     |  2 +-
 spec/rtems/type/if/name.yml                      |  6 +++---
 spec/rtems/type/if/packet-prefix.yml             |  4 ++--
 spec/rtems/type/if/time-of-day.yml               | 16 ++++++++--------
 16 files changed, 26 insertions(+), 28 deletions(-)

diff --git a/spec/rtems/type/if/group.yml b/spec/rtems/type/if/group.yml
index af96a4c..15afdb7 100644
--- a/spec/rtems/type/if/group.yml
+++ b/spec/rtems/type/if/group.yml
@@ -1,6 +1,6 @@
 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 brief: |
-  This group contains basic types of the Classic API.
+  This group contains basic Classic API types.
 copyrights:
 - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
 description: null
diff --git a/spec/rtems/type/if/header.yml b/spec/rtems/type/if/header.yml
index 7b326e7..23691a1 100644
--- a/spec/rtems/type/if/header.yml
+++ b/spec/rtems/type/if/header.yml
@@ -1,6 +1,6 @@
 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 brief: |
-  This header file defines types provided by the Classic API.
+  This header file provides types used by the Classic API.
 copyrights:
 - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
 enabled-by: true
diff --git a/spec/rtems/type/if/id.yml b/spec/rtems/type/if/id.yml
index f0f68bd..474dccc 100644
--- a/spec/rtems/type/if/id.yml
+++ b/spec/rtems/type/if/id.yml
@@ -1,6 +1,6 @@
 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 brief: |
-  Values of this type identify an RTEMS object.
+  This type represents RTEMS object identifiers.
 copyrights:
 - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
 definition:
diff --git a/spec/rtems/type/if/interval.yml b/spec/rtems/type/if/interval.yml
index 2689708..bb53b98 100644
--- a/spec/rtems/type/if/interval.yml
+++ b/spec/rtems/type/if/interval.yml
@@ -1,6 +1,6 @@
 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 brief: |
-  This type is used to represent clock tick intervals.
+  This type represents clock tick intervals.
 copyrights:
 - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
 definition:
diff --git a/spec/rtems/type/if/mp-packet-classes.yml b/spec/rtems/type/if/mp-packet-classes.yml
index 6ca817b..82ba1ce 100644
--- a/spec/rtems/type/if/mp-packet-classes.yml
+++ b/spec/rtems/type/if/mp-packet-classes.yml
@@ -1,6 +1,6 @@
 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 brief: |
-  This enumerated type defines the packet classes.
+  This enumeration defines the MPCI packet classes.
 copyrights:
 - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
 - Copyright (C) 2006 On-Line Applications Research Corporation (OAR)
diff --git a/spec/rtems/type/if/mpci-entry.yml b/spec/rtems/type/if/mpci-entry.yml
index bc24b1b..91279ee 100644
--- a/spec/rtems/type/if/mpci-entry.yml
+++ b/spec/rtems/type/if/mpci-entry.yml
@@ -1,6 +1,6 @@
 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 brief: |
-  Every MPCI handler routine shall have this return type.
+  MPCI handler routines shall have this return type.
 copyrights:
 - Copyright (C) 2009, 2020 embedded brains GmbH (http://www.embedded-brains.de)
 - Copyright (C) 2008 On-Line Applications Research Corporation (OAR)
diff --git a/spec/rtems/type/if/mpci-get-packet-entry.yml b/spec/rtems/type/if/mpci-get-packet-entry.yml
index ee6f04e..6df98dd 100644
--- a/spec/rtems/type/if/mpci-get-packet-entry.yml
+++ b/spec/rtems/type/if/mpci-get-packet-entry.yml
@@ -1,6 +1,6 @@
 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 brief: |
-  This type defines the prototype for the get packet entry point in an MPCI.
+  MPCI get packet routines shall have this type.
 copyrights:
 - Copyright (C) 2009, 2020 embedded brains GmbH (http://www.embedded-brains.de)
 - Copyright (C) 2006 On-Line Applications Research Corporation (OAR)
diff --git a/spec/rtems/type/if/mpci-initialization-entry.yml b/spec/rtems/type/if/mpci-initialization-entry.yml
index f70cbaf..169de42 100644
--- a/spec/rtems/type/if/mpci-initialization-entry.yml
+++ b/spec/rtems/type/if/mpci-initialization-entry.yml
@@ -1,7 +1,6 @@
 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 brief: |
-  This type defines the prototype for the initialization entry point in an
-  MPCI.
+  MPCI initialization routines shall have this type.
 copyrights:
 - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
 - Copyright (C) 2006 On-Line Applications Research Corporation (OAR)
diff --git a/spec/rtems/type/if/mpci-receive-packet-entry.yml b/spec/rtems/type/if/mpci-receive-packet-entry.yml
index 744aa0f..a748dc1 100644
--- a/spec/rtems/type/if/mpci-receive-packet-entry.yml
+++ b/spec/rtems/type/if/mpci-receive-packet-entry.yml
@@ -1,7 +1,6 @@
 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 brief: |
-  This type defines the prototype for the receive packet entry point in an
-  MPCI.
+  MPCI receive packet routines shall have this type.
 copyrights:
 - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
 - Copyright (C) 2006 On-Line Applications Research Corporation (OAR)
diff --git a/spec/rtems/type/if/mpci-return-packet-entry.yml b/spec/rtems/type/if/mpci-return-packet-entry.yml
index 503a105..f6f68db 100644
--- a/spec/rtems/type/if/mpci-return-packet-entry.yml
+++ b/spec/rtems/type/if/mpci-return-packet-entry.yml
@@ -1,6 +1,6 @@
 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 brief: |
-  This type defines the prototype for the return packet entry point in an MPCI.
+  MPCI return packet routines shall have this type.
 copyrights:
 - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
 - Copyright (C) 2006 On-Line Applications Research Corporation (OAR)
diff --git a/spec/rtems/type/if/mpci-send-packet-entry.yml b/spec/rtems/type/if/mpci-send-packet-entry.yml
index b1afebf..f8dfd61 100644
--- a/spec/rtems/type/if/mpci-send-packet-entry.yml
+++ b/spec/rtems/type/if/mpci-send-packet-entry.yml
@@ -1,6 +1,6 @@
 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 brief: |
-  This type defines the prototype for the send packet entry point in an MPCI.
+  MPCI send packet routines shall have this type.
 copyrights:
 - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
 definition:
diff --git a/spec/rtems/type/if/mpci-table.yml b/spec/rtems/type/if/mpci-table.yml
index 3a039c2..10ba124 100644
--- a/spec/rtems/type/if/mpci-table.yml
+++ b/spec/rtems/type/if/mpci-table.yml
@@ -1,6 +1,6 @@
 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 brief: |
-  This type defines the MPCI control.
+  This type represents the user-provided MPCI control.
 copyrights:
 - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
 definition:
diff --git a/spec/rtems/type/if/multiprocessing-table.yml b/spec/rtems/type/if/multiprocessing-table.yml
index fba7966..7936e18 100644
--- a/spec/rtems/type/if/multiprocessing-table.yml
+++ b/spec/rtems/type/if/multiprocessing-table.yml
@@ -1,6 +1,6 @@
 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 brief: |
-  This type defines the MPCI configuration table.
+  This type represents the user-provided MPCI configuration.
 copyrights:
 - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
 definition:
diff --git a/spec/rtems/type/if/name.yml b/spec/rtems/type/if/name.yml
index 31e6975..1af51e3 100644
--- a/spec/rtems/type/if/name.yml
+++ b/spec/rtems/type/if/name.yml
@@ -1,6 +1,6 @@
 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 brief: |
-  This type is used to represent a Classic API object name.
+  This type represents Classic API object names.
 copyrights:
 - Copyright (C) 2009, 2020 embedded brains GmbH (http://www.embedded-brains.de)
 definition:
@@ -8,8 +8,8 @@ definition:
   variants: []
 description: |
   It is an unsigned 32-bit integer which can be treated as a numeric value or
-  initialized using rtems_build_name() to encode four ASCII characters.  A
-  value of zero may have a special meaning in some directives.
+  initialized using ${../../object/if/build-name:/name} to encode four ASCII
+  characters.  A value of zero may have a special meaning in some directives.
 enabled-by: true
 index-entries: []
 interface-type: typedef
diff --git a/spec/rtems/type/if/packet-prefix.yml b/spec/rtems/type/if/packet-prefix.yml
index 7c68136..e02a57f 100644
--- a/spec/rtems/type/if/packet-prefix.yml
+++ b/spec/rtems/type/if/packet-prefix.yml
@@ -1,7 +1,7 @@
 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 brief: |
-  This type defines the prefix found at the beginning of each MPCI packet sent
-  between nodes.
+  This type represents the prefix found at the beginning of each MPCI packet
+  sent between nodes.
 copyrights:
 - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
 definition:
diff --git a/spec/rtems/type/if/time-of-day.yml b/spec/rtems/type/if/time-of-day.yml
index 2458b2e..40e9d41 100644
--- a/spec/rtems/type/if/time-of-day.yml
+++ b/spec/rtems/type/if/time-of-day.yml
@@ -1,12 +1,12 @@
 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 brief: |
-  This type is used to represent the calendar time in the Classic API.
+  This type represents Classic API calendar times.
 copyrights:
 - Copyright (C) 2009, 2020 embedded brains GmbH (http://www.embedded-brains.de)
 definition:
 - default:
     brief: |
-      This member represents the year A.D.
+      This member contains the year A.D.
     definition: ${/c/if/uint32_t:/name} ${.:name}
     description: null
     kind: member
@@ -14,7 +14,7 @@ definition:
   variants: []
 - default:
     brief: |
-      This member represents the month of the year with values from 1 to 12.
+      This member contains the month of the year with values from 1 to 12.
     definition: ${/c/if/uint32_t:/name} ${.:name}
     description: null
     kind: member
@@ -22,7 +22,7 @@ definition:
   variants: []
 - default:
     brief: |
-      This member represents the day of the month with values from 1 to 31.
+      This member contains the day of the month with values from 1 to 31.
     definition: ${/c/if/uint32_t:/name} ${.:name}
     description: null
     kind: member
@@ -30,7 +30,7 @@ definition:
   variants: []
 - default:
     brief: |
-      This member represents the hour of the day with values from 0 to 23.
+      This member contains the hour of the day with values from 0 to 23.
     definition: ${/c/if/uint32_t:/name} ${.:name}
     description: null
     kind: member
@@ -38,7 +38,7 @@ definition:
   variants: []
 - default:
     brief: |
-      This member represents the minute of the hour with values from 0 to 59.
+      This member contains the minute of the hour with values from 0 to 59.
     definition: ${/c/if/uint32_t:/name} ${.:name}
     description: null
     kind: member
@@ -46,7 +46,7 @@ definition:
   variants: []
 - default:
     brief: |
-      This member represents the second of the minute with values from 0 to 59.
+      This member contains the second of the minute with values from 0 to 59.
     definition: ${/c/if/uint32_t:/name} ${.:name}
     description: null
     kind: member
@@ -54,7 +54,7 @@ definition:
   variants: []
 - default:
     brief: |
-      This member represents the clock tick of the second with values from 0 to
+      This member contains the clock tick of the second with values from 0 to
       ${../../clock/if/get-ticks-per-second:/name} minus one.
     definition: ${/c/if/uint32_t:/name} ${.:name}
     description: null



More information about the vc mailing list