Synchronize PRU with interrupts

Taking example usage from the beagle-nixie project:

https://github.com/mranostay/beagle-nixie