I am basically wondering what the difference between these two examples in the SDK are?
Also, I see in both cases after the spi_transfer is called there is the following piece of code
while (!spi_xfer_done) { __WFE(); }
I am just wondering what the purpose of it is and if it is necessary? It seems when I try to make multiple calls without including it between calls it does not work correctly.
Thanks