Class to be able to send SPI data with almost no overhead, useful at very high speeds.

Dependents:   MakerBotServer epaper_mbed_130411_KL25Z epaper_mbed_test epaper_mbed_test_copy1 ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers BurstSPI_Unsupported.cpp Source File

BurstSPI_Unsupported.cpp

00001 #if !(defined(TARGET_KL25Z) || defined(TARGET_KL46Z))
00002 #if !(defined(TARGET_LPC1768) || defined(TARGET_LPC1114) || defined(TARGET_LPC11U24) || defined(TARGET_LPC13XX) || defined(TARGET_LPC1549))
00003 #if !(defined(TARGET_NUCLEO_L152RE) || defined(TARGET_STM32F4))
00004 
00005 #warning BurstSPI target not supported, reverting to regular SPI
00006 
00007 #include "BurstSPI.h"
00008 
00009 void BurstSPI::fastWrite(int data) {
00010     write(data);
00011 }
00012 
00013 void BurstSPI::clearRX( void ) {
00014 
00015 }
00016 #endif          //Freescale
00017 #endif          //NXP
00018 #endif          //NUCLEO