Skip to content

Commit

Permalink
drivers: serial: Revert change to init level for nrfx uart driver.
Browse files Browse the repository at this point in the history
The nrfx uart driver will get stuck in uart_poll_out function since
the uart_console driver has been initialized at PRE_KERNEL_1 level
and is making calls to the uart driver before the uart driver has been
initialized.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
  • Loading branch information
joerchan authored and MaureenHelm committed Jun 18, 2018
1 parent ea10810 commit fc4fc65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/serial/uart_nrfx_uart.c
Expand Up @@ -413,7 +413,8 @@ DEVICE_AND_API_INIT(uart_nrfx_uart0,
uart_nrfx_init,
NULL,
NULL,
POST_KERNEL,
/* Initialize UART device before UART console. */
PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&uart_nrfx_uart_driver_api);

0 comments on commit fc4fc65

Please sign in to comment.