How to use pru to read any data left in the Uart?

I need to send data via uart in beaglebone you can find out what data is sent.