Fast SPI write, added LPC812 Target

Dependents:   wsDrive

Fork of BurstSPI by Erik -

Revision:
14:83e3b8ba3f43
Parent:
12:c99022511536
--- a/BurstSPI_LPC_1549.cpp	Sat May 16 11:09:59 2015 +0000
+++ b/BurstSPI_LPC_1549.cpp	Sun Oct 09 16:48:17 2016 +0000
@@ -1,4 +1,4 @@
-#if defined(TARGET_LPC1549)
+#if (defined(TARGET_LPC1549))
 #include "BurstSPI.h"
 
 void BurstSPI::fastWrite(int data) {
@@ -6,7 +6,13 @@
 
     _spi.spi->TXDAT = (data & 0xffff);
     // end of transfer and receive ignore flag
+#ifndef NO_EOT_AFTER_WRITE
+    // set EOT and receive ignore flag
     _spi.spi->TXCTL |= ((1 << 20) | (1 << 22));
+#else
+    // set receive ignore flag
+    _spi.spi->TXCTL |= (1 << 22);
+#endif
 }
 
 void BurstSPI::clearRX( void ) {