Hello there!
Beyond the FAQ for "How to synchronize the PRU IEP timer with Linux system time?", is there a good example for getting a timestamp updated in the PRU?
Our use case:
We have been successfully using a PRU for sampling data. Now we need to get serious about tagging samples with the PTP clock.
We want to use the first PTP clock to send a PPS and use it in a PRU.
Once we get the PPS we need to use the timer to compensate a PRU clock for drift, that we intend to use to sample events that happen inside of the PRU. We've seen that there are industrial registers that can do gradual compensation. Should we be using those?
With the FAQ and posts that are around we can get to having the PPS in the PRU and in a GPIO, but after that we'll have to use the industrial components.
Documentation is a bit sparse and I'm looking for code samples or pointers. I've seen related code that use the industrial registers as part of Ethernet examples, hard to see details there.
If I'm not looking at the right sources or the right lines in the sources I would appreciate if you point me in the right direction.
Best regards.



