in modern PC based Linux Machines it is possible to use hpet and realtime processes to get a reasonable good realtime performance (+-10us response time)

While Raspberry Pi Hardware does not have a hpet device, it does have Hardware PWM.

Thus it would likely be possible to use the Hardware PWN as a Realtime source by connecting its output to another interrupt driven GPIO input.

I was now wondering if this connection could also be done by Software using a device tree overwrite.

  • For what purpose? Are you just using the PWM signal as a clock? It won't magically makes the system real time or respond any faster. You need to explain what you are actually trying to achieve. – joan Dec 10 '17 at 17:48
  • I try to solve the problem that Raspberry Pi does not have a clock source like hpet (en.wikipedia.org/wiki/High_Precision_Event_Timer). I thought I made this clear enough. – Sven Geggus Dec 10 '17 at 18:15
  • 1
    I think this is an example of the XY problem. – joan Dec 10 '17 at 18:29
  • 1
    I do not think this is the case. I am explicitly looking for an alternative solution to my x86 only stuff (hpet+realtime process). – Sven Geggus Dec 10 '17 at 19:17
  • 1
    PWM may provide an alternative to hpet. It does not help with the realtime process part. Good luck with your task. – joan Dec 10 '17 at 19:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.