Core2 for AWS IoT EduKit BSP 1.5.1
spi_poll
void spi_poll();
void spi_poll()
Polls the SPI bus for a pending SPI transaction to complete.
Definition: disp_spi.c:34

Polls the SPI bus for a pending SPI transaction to complete.

This function blocks until a pending SPI transaction has finished. Once that transaction is complete, execution of code continues. Useful for using more than one peripheral on the same SPI bus without conflicts.

Note
This function is necessary when accessing the SD card on the shared SPI bus. Uses spi_device_polling_transmit. to repeatedly poll the SPI bus until the transaction completes.