Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion tests/drivers/spi/spi_loopback/src/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,13 @@ ZTEST(spi_loopback, test_spi_complete_multiple_timed)
*/
zassert_ok(pm_device_runtime_get(spec->bus));

/* since this is a test program, there shouldn't be much to interfere with measurement */
/*
* since this is a test program, there shouldn't be much to interfere with measurement.
* still let's wait for the console to complete printing so it does not complete and
* suspend near the end of the spi transaction.
*/
k_msleep(10);

start_time = k_cycle_get_32();
spi_loopback_transceive(spec, &tx, &rx, 2);
end_time = k_cycle_get_32();
Expand Down