Browse Source

Implement block transfer for Due's SPI emulation

[#19]
James Bowman 6 years ago
parent
commit
fe159de314
1 changed files with 6 additions and 0 deletions
  1. 6 0
      GD2.h

+ 6 - 0
GD2.h

@@ -76,6 +76,12 @@ public:
     }
     return r;
   }
+  void transfer(byte*m, int s) {
+    while (s--) {
+      *m = transfer(*m);
+      m++;
+    }
+  }
 };
 static class ASPI_t ASPI;
 #define SPI ASPI