RCM5400 FAT file system

I am trying to setup a fat file system on a SD card which I connected on serial port B with SPI interface. Can anyone point me to any tutorials of how to configure this. I can’t find where in the supplied FAT library to tell the library which port my SD is connected to.

Regards,
Robert Chen