Question on uart

If i want to use digital pin 0 and pin 1 for rx and tx,what is initialization procedure of gpio and uart registers?
i got stuck in this place i just gave pin connections between the sensor and hifive1.