libbase: unmask UART interrupt correctly
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Mon, 21 May 2012 18:01:21 +0000 (20:01 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Mon, 21 May 2012 18:01:21 +0000 (20:01 +0200)
software/libbase/uart.c

index 760498340bcdf58f670f0de37026fad61cce93d9..57ed49226d85d248572b776bc95c4dff57466acb 100644 (file)
@@ -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);
 }