I have two piccolo DSPs talking to each other over SPI. One requirement I have is that I need the slave DSP to constantly load the TXFIFO so that when the master does a transaction it is getting the newest possible data. As far as I can tell you can't get control of the FIFO pointer directly so I've been toggling the SPIFFTX.bit.TXFIFO bit before trying to load it. For example:
(*spi_reg_).SPIFFTX.bit.TXFIFO = 0;
(*spi_reg_).SPIFFTX.bit.TXFIFO = 1;
(*spi_reg_).SPITXBUF = tx_[0];
(*spi_reg_).SPITXBUF = tx_[1];
(*spi_reg_).SPITXBUF = tx_[2];
But this doesn't seem to work very well. Is there a "good" way to flush and reset the FIFO? Particularly for a slave device?