x

Fork of BurstSPI by Erik Olieman

Committer:
Sissors
Date:
Tue Oct 07 10:55:42 2014 +0000
Revision:
10:6ed1d9f1ef37
Child:
11:36ac5fd058dd
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)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Sissors 10:6ed1d9f1ef37 1 #if !(defined(TARGET_KL25Z) || defined(TARGET_KL46Z))
Sissors 10:6ed1d9f1ef37 2 #if !(defined(TARGET_LPC1768) || defined(TARGET_LPC1114) || defined(TARGET_LPC11U24) || defined(TARGET_LPC13XX))
Sissors 10:6ed1d9f1ef37 3 #if !(defined(TARGET_NUCLEO_L152RE))
Sissors 10:6ed1d9f1ef37 4
Sissors 10:6ed1d9f1ef37 5 #warning BurstSPI target not supported, reverting to regular SPI
Sissors 10:6ed1d9f1ef37 6
Sissors 10:6ed1d9f1ef37 7 #include "BurstSPI.h"
Sissors 10:6ed1d9f1ef37 8
Sissors 10:6ed1d9f1ef37 9 void BurstSPI::fastWrite(int data) {
Sissors 10:6ed1d9f1ef37 10 write(data);
Sissors 10:6ed1d9f1ef37 11 }
Sissors 10:6ed1d9f1ef37 12
Sissors 10:6ed1d9f1ef37 13 void BurstSPI::clearRX( void ) {
Sissors 10:6ed1d9f1ef37 14
Sissors 10:6ed1d9f1ef37 15 }
Sissors 10:6ed1d9f1ef37 16 #endif //Freescale
Sissors 10:6ed1d9f1ef37 17 #endif //NXP
Sissors 10:6ed1d9f1ef37 18 #endif //NUCLEO