Just a fork with fix for newer mbed versions

BurstSPI_LPC_1549.cpp

Committer:
reneg973
Date:
2021-04-18
Revision:
15:5809125b8dac
Parent:
12:c99022511536

File content as of revision 15:5809125b8dac:

#if defined(TARGET_LPC1549)
#include "BurstSPI.h"

void BurstSPI::fastWrite(int data) {
    while (!(_spi.spi->STAT & (1 << 1)));

    _spi.spi->TXDAT = (data & 0xffff);
    // end of transfer and receive ignore flag
    _spi.spi->TXCTL |= ((1 << 20) | (1 << 22));
}

void BurstSPI::clearRX( void ) {
    //We already set receive ignore flag, so this function is never run.
}

#endif