Quick question: Waiting SPI Status Done

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
NeAl_2298636
Level 3
Level 3
First like received First like given

Hi,

   

Is it a good practice to add timeout while waiting SPI Status done after spi_write or is it something highly unlikely to occur?

   

while(!(SPIM_1_ReadTxStatus() & SPIM_1_STS_SPI_DONE));

   

Best,

   

Nico

0 Likes
3 Replies