test

Dependencies:   SimpleDMA mbed-rtos mbed

Fork of spiDMAtest by Siva ram

Files at this revision

API Documentation at this revision

Comitter:
Piasiv1206
Date:
Sun Jun 26 11:45:07 2016 +0000
Parent:
3:972fa06ef0aa
Commit message:
hello

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 972fa06ef0aa -r 8e18509be6ff main.cpp
--- 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);