mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:35:06 -05:00
refclock_phc: add support for timestamping of external PPS
Add extpps driver option to the PHC refclock to enable external timestamping of PPS signal and also options to configure the channel and pin index. In this mode, the driver polling function accumulates samples for hwclock, which is used to convert received timestamping events to local time.
This commit is contained in:
@@ -522,6 +522,12 @@ RCL_GetPrecision(RCL_Instance instance)
|
||||
return instance->precision;
|
||||
}
|
||||
|
||||
int
|
||||
RCL_GetDriverPoll(RCL_Instance instance)
|
||||
{
|
||||
return instance->driver_poll;
|
||||
}
|
||||
|
||||
static int
|
||||
valid_sample_time(RCL_Instance instance, struct timespec *sample_time)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user