Fast SPI write, added LPC812 Target

Dependents:   wsDrive

Fork of BurstSPI by Erik -

Files at this revision

API Documentation at this revision

Comitter:
Sissors
Date:
Tue Oct 07 10:55:42 2014 +0000
Parent:
9:b69faea5252c
Child:
11:36ac5fd058dd
Commit message:
Added support for non-supported targets
;
; Lib will revert back to regular SPI, so if this lib is integrated in a larger one it will also allow people with other boards to use it (only slower)

Changed in this revision

BurstSPI_Unsupported.cpp Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/BurstSPI_Unsupported.cpp	Tue Oct 07 10:55:42 2014 +0000
@@ -0,0 +1,18 @@
+#if !(defined(TARGET_KL25Z) || defined(TARGET_KL46Z))
+#if !(defined(TARGET_LPC1768) || defined(TARGET_LPC1114) || defined(TARGET_LPC11U24) || defined(TARGET_LPC13XX))
+#if !(defined(TARGET_NUCLEO_L152RE))
+
+#warning BurstSPI target not supported, reverting to regular SPI
+
+#include "BurstSPI.h"
+
+void BurstSPI::fastWrite(int data) {
+    write(data);
+}
+
+void BurstSPI::clearRX( void ) {
+
+}
+#endif          //Freescale
+#endif          //NXP
+#endif          //NUCLEO
\ No newline at end of file