Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
BurstSPI_LPC_1549.cpp
00001 #if defined(TARGET_LPC1549) 00002 #include "BurstSPI.h" 00003 00004 void BurstSPI::fastWrite(int data) { 00005 while (!(_spi.spi->STAT & (1 << 1))); 00006 00007 _spi.spi->TXDAT = (data & 0xffff); 00008 // end of transfer and receive ignore flag 00009 _spi.spi->TXCTL |= ((1 << 20) | (1 << 22)); 00010 } 00011 00012 void BurstSPI::clearRX( void ) { 00013 //We already set receive ignore flag, so this function is never run. 00014 } 00015 00016 #endif
Generated on Mon Jul 25 2022 16:59:04 by
1.7.2