From: Sebastien Bourdeauducq Date: Mon, 21 May 2012 18:01:21 +0000 (+0200) Subject: libbase: unmask UART interrupt correctly X-Git-Tag: 24jan2021_ls180~3184 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d03ee7a89f7f8a555153eecc1adebfb06dd4986c;p=litex.git libbase: unmask UART interrupt correctly --- diff --git a/software/libbase/uart.c b/software/libbase/uart.c index 76049834..57ed4922 100644 --- a/software/libbase/uart.c +++ b/software/libbase/uart.c @@ -121,7 +121,7 @@ void uart_init(void) CSR_UART_EV_ENABLE = UART_EV_TX | UART_EV_RX; mask = irq_getmask(); - mask |= UART_INTERRUPT; + mask |= 1 << UART_INTERRUPT; irq_setmask(mask); }