Skip to content

Commit 4272532

Browse files
committed
[sw, spi_host] Fix timing error in smoketest
The error manifest when optimization is enabled Signed-off-by: Douglas Reis <doreis@lowrisc.org>
1 parent 7387a42 commit 4272532

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sw/device/tests/spi_host/smoketest.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ bool test_main()
1616
spi_host = mocha_system_spi_host();
1717
spi_host_init(spi_host);
1818
spi_host_write(spi_host, tx_data);
19+
spi_host_wait_for_idle(spi_host);
1920
rx_data = spi_host_read(spi_host);
2021
return tx_data == rx_data;
2122
}

0 commit comments

Comments
 (0)