test

Dependencies:   SimpleDMA mbed-rtos mbed

Fork of spiDMAtest by Siva ram

Revision:
4:8e18509be6ff
Parent:
3:972fa06ef0aa
--- a/main.cpp	Mon Dec 21 08:57:48 2015 +0000
+++ b/main.cpp	Sun Jun 26 11:45:07 2016 +0000
@@ -2,7 +2,14 @@
 #include "SimpleDMA.h"
 #include "dmaSPIslave.h"
 
-#define PAYLOAD_LENGTH 1024
+
+    #define PAYLOAD_LENGTH 16
+    #define PAY_SPI_MOSI PTD6
+    #define PAY_SPI_MISO PTD7
+    #define PAY_SPI_CLK PTD5
+    #define PAY_SPI_CS PTE16
+    
+   // dmaSPISlave spi(PAY_SPI_MOSI, PAY_SPI_MISO, PAY_SPI_CLK, PAY_SPI_CS);
 
 dmaSPISlave spi(PTD6, PTD7, PTD5,PTD4 ); 
 RawSerial pc(USBTX, USBRX);