Skip to content

Commit 04df812

Browse files
mbolivar-nordiccarlescufi
authored andcommitted
api: promote sys/util.h to experimental
This file contains definitions for macros which are integral to significant Zephyr use cases, such as CONTAINER_OF() and various macros used by devicetree.h internally. As such, in practice we expect at least advanced (if not intermediate) users to understand it, so the fact that it's not formally documented as an API with a stability level is a problem. Fix that by giving the docstrings a once-over and adding new ones where they are missing. Move all the remaining non-API macros to util_internal.h. Add a Sphinx API page for this header, and include it in the API overview at "experimental" stability level. Signed-off-by: Martí Bolívar <[email protected]>
1 parent 317eaa5 commit 04df812

File tree

5 files changed

+588
-440
lines changed

5 files changed

+588
-440
lines changed

doc/reference/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ API Reference
3030
storage/index.rst
3131
usb/index.rst
3232
usermode/index.rst
33+
util/index.rst
3334
settings/index.rst

doc/reference/overview.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,3 +273,8 @@ current :ref:`stability level <api_lifecycle>`.
273273
- Stable
274274
- 1.11
275275
- 1.11
276+
277+
* - :ref:`util_api`
278+
- Experimental
279+
- 2.4
280+
- 2.4

doc/reference/util/index.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. _util_api:
2+
3+
Utilities
4+
#########
5+
6+
This page contains reference documentation for ``<sys/util.h>``, which provides
7+
miscellaneous utility functions and macros.
8+
9+
.. doxygengroup:: sys-util
10+
:project: Zephyr

0 commit comments

Comments
 (0)