Skip to content

Commit

Permalink
doc: net: Add page for net_time
Browse files Browse the repository at this point in the history
So that the type is visible and "referencable" in the documentation.

Signed-off-by: Robert Lubos <[email protected]>
  • Loading branch information
rlubos authored and jhedberg committed Oct 10, 2023
1 parent ae109c6 commit fdaba20
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/connectivity/networking/api/net_time.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. _net_time_interface:

Network time representation in the network stack
################################################

API Reference
*************

.. doxygengroup:: net_time
1 change: 1 addition & 0 deletions doc/connectivity/networking/api/tsn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ Time Sensitive Networking
:maxdepth: 1

gptp.rst
net_time.rst
ptp_time.rst
8 changes: 8 additions & 0 deletions include/zephyr/net/net_time.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
* Inspired by
* https://github.com/torvalds/linux/blob/master/include/linux/ktime.h and
* https://github.com/torvalds/linux/blob/master/[tools/]include/linux/time64.h
*
* @defgroup net_time Network time representation.
* @ingroup networking
* @{
*/

#ifndef ZEPHYR_INCLUDE_NET_NET_TIME_H_
Expand Down Expand Up @@ -112,4 +116,8 @@ typedef int64_t net_time_t;
}
#endif

/**
* @}
*/

#endif /* ZEPHYR_INCLUDE_NET_NET_TIME_H_ */

0 comments on commit fdaba20

Please sign in to comment.