mjs513
Senior Member+
Ok - started the process of updating the library. Looks like this
should be changed to
Man forgot how intricate the library is.
Code:
while ( !(GPIOD_PDIR & 0x01) ) { // wait here until MASTER confirms F&F receipt
if ( SPI0_SR & 0xF0 ) {
SPI0_PUSHR_SLAVE = 0xBABE;
if ( SPI0_POPR == 0xD0D0 ) break;
}
}
SPI0_SR |= SPI_SR_RFDF; return;
Code:
while ( SPI0.active() ) {
if (SPI0.available()) {
SPI0.pushr(0xBABE0);
if ( SPI0.popr() == 0xD0D0 ) break; ;
}
}
Man forgot how intricate the library is.