Skip to content
Commit 144d30eb authored by Martin Fletzer's avatar Martin Fletzer Committed by Carles Cufí
Browse files

net: gptp_md: Consider different resolutions regarding correction field

From https://www.ieee802.org/1/files/public/docs2007/as-garner-protocol-state-machines-frame-formats-0307.pdf

:
  The correctionField is the value of the correction
  measured in nanoseconds and multiplied by 2^16.

Zephyr uses nanoseconds for follow_up_correction_field.
Therefore, the value must be shifted by 2^16.

Signed-off-by: default avatarMartin Fletzer <martin.fletzer@kftec.at>
parent fde9a657
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment