![]() |
flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
|
The flexPTP requires a clock servo to calculate how to tune the clock in steady state. A proper servo must define the following four functions:
PTP_SERVO_INIT()
)PTP_SERVO_DEINIT()
)PTP_SERVO_RESET()
)PtpServoAuxInput
object). (refer to PTP_SERVO_RUN()
)Clock servo functions must be passed to the flexPTP core by filling the servo-related macros in the flexptp_config.h
configuration file.
Here we want to hightlight, that a servo init function is not constrained to only initialize the core of a controller. The developer is highly encouraged to include e.g. logging or debug functionality also in the controller.
A PID-controller based servo is bundled to the flexPTP package: pid_controller.c, pid_controller.h