Working SPI communication between STM and PIC

Added SPI functions and defines for STM-PIC communication protocol
Added a USE_OS define to enable CoOS usage and disable delay_nms() functionality (for debugging purposes)
Further segmentation of code under DEBUG & USE_OS defines