BBB reading a real time signal through PRU

Hi guys

I have a BBB, and I’m trying to figure out using the PRUs to read inputs in C. Does anyone know a tutorial on it?

Sincerely,

Ben