Added one task

Dependencies:   mbed

Revision:
0:fb4269aa5fb4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mylib/src/spi.cpp	Fri May 26 03:51:19 2017 +0000
@@ -0,0 +1,16 @@
+#include "spi.h"
+
+uint8_t spi_tx[64];
+uint8_t spi_rx[64];
+
+SPI spi1(PA_7, PA_6, PA_5); // mosi, miso, sclk
+/*-----CS pins for spi1-----*/
+DigitalOut spi1_cs1(PC_7);   
+DigitalOut spi1_cs2(PB_6);   
+/*--------------------------*/
+
+void SPI_Init()
+{
+    spi1.format(8, 3);   
+    spi1.frequency(1000000);
+}
\ No newline at end of file