gPTP stack for Zephyr¶
This gPTP stack supports the protocol and procedures as defined in the IEEE 802.1AS-2011 standard (Timing and Synchronization for Time-Sensitive Applications in Bridged Local Area Networks).
The stack handles communications and state machines defined in the IEEE 802.1AS-2011 standard. Mandatory requirements for a full-duplex point-to-point link endpoint, as defined in Annex A of the standard, are supported.
The stack is in principle capable of handling communications on multiple network interfaces (also defined as “ports” in the standard) and thus act as a 802.1AS bridge. However, this mode of operation has not been validated on the Zephyr OS.
Although the stack itself is hardware independent, Ethernet frame timestamping support must be enabled in ethernet drivers.
Enabling the stack¶
The following configuration option must me enabled in
Only two Application Interfaces as defined in section 9 of the standard are available:
- ClockTargetPhaseDiscontinuity interface (
- ClockTargetEventCapture interface (
Function prototypes can be found in
include/net/gptp.h and in the
Networking API documentation.