Skip to content

Commit

Permalink
zephyr: Enable interrupts unconditionally
Browse files Browse the repository at this point in the history
Due to an issue described here:
zephyrproject-rtos/zephyr#8393
interrupts are not enabled when multithreading is disabled.
Enable interrupts to allow the serial recovery mode UART to receive
characters.

Note: This commit must be reverted once the issue is addressed.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
  • Loading branch information
carlescufi committed Jun 18, 2018
1 parent 13a9f25 commit 78cd86b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions boot/zephyr/serial_adapter.c
Expand Up @@ -197,5 +197,10 @@ boot_uart_fifo_init(void)

uart_irq_rx_enable(uart_dev);

/* Enable all interrupts unconditionally. Note that this is due
* to Zephyr issue #8393. This could should be removed once the
* issue is fixed in upstream Zephyr. */
irq_unlock(0);

return 0;
}

0 comments on commit 78cd86b

Please sign in to comment.