SPI_linux_Pic24

My SPI code that works on both Linux and PIC24F so I can port code around.