Skip to content
Merged
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
6 changes: 5 additions & 1 deletion drivers/flash/nrf_qspi_nor.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,11 @@ static int qspi_wait_while_writing(const struct device *dev, k_timeout_t poll_pe
int rc;

do {
k_sleep(poll_period);
#ifdef CONFIG_MULTITHREADING
if (!K_TIMEOUT_EQ(poll_period, K_NO_WAIT)) {
k_sleep(poll_period);
}
#endif
rc = qspi_rdsr(dev, 1);
} while ((rc >= 0)
&& ((rc & SPI_NOR_WIP_BIT) != 0U));
Expand Down
Loading