Skip to content

Commit c386643

Browse files
joerchanrlubos
authored andcommitted
[nrf fromtree] drivers: nrf_qspi_nor: Fix build without multithreading
Fix build of nrf_qspi_nor flash driver without multithreading enabled. This is required for builds like mcuboot. Signed-off-by: Joakim Andersson <[email protected]> (cherry picked from commit 14c896b)
1 parent 0a3f961 commit c386643

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/flash/nrf_qspi_nor.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,9 @@ static int qspi_wait_while_writing(const struct device *dev, k_timeout_t poll_pe
487487
int rc;
488488

489489
do {
490+
#ifdef CONFIG_MULTITHREADING
490491
k_sleep(poll_period);
492+
#endif
491493
rc = qspi_rdsr(dev, 1);
492494
} while ((rc >= 0)
493495
&& ((rc & SPI_NOR_WIP_BIT) != 0U));

0 commit comments

Comments
 (0)