Skip to content

Commit

Permalink
drivers/serial/uart_nrfx_uarte: compile CONFIG_MULTITHREADING=y
Browse files Browse the repository at this point in the history
Allow to compile when multithreadin is disabled.
Needed for fix zephyrproject-rtos#35048.

Signed-off-by: Andrzej Puzdrowski <[email protected]>
  • Loading branch information
nvlsianpu committed May 14, 2021
1 parent 21d1ad3 commit 102b7ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/serial/uart_nrfx_uarte.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,9 +490,9 @@ static int wait_tx_ready(const struct device *dev)

irq_unlock(key);
}
if (IS_ENABLED(CONFIG_MULTITHREADING)) {
k_msleep(1);
}
#ifdef CONFIG_MULTITHREADING
k_msleep(1);
#endif
} while (1);

return key;
Expand Down

0 comments on commit 102b7ab

Please sign in to comment.