Infinite Loop using While

In reply to haykp:

Can you add snapshot of waveform where spi_cs & spi_sck is present in waveform window.