Code: Select all
char * movable txbuf;
char * movable rxbuf;
// malloc, check for NULL
memset(txbuf, 0, len);
memset(rxbuf, 0, len);
spi_if.begin_transaction(SPI_TO_DSP_SS, 5000, SPI_MODE_3);
// "trying to move aliased pointer 'rxbuf' "
// "trying to move aliased pointer 'txbuf' "
spi_if.init_transfer_array_8(move(rxbuf), move(txbuf), 2);