libbase: unmask UART interrupt correctly

This commit is contained in:
Sebastien Bourdeauducq 2012-05-21 20:01:21 +02:00
parent c01594f9fd
commit d03ee7a89f
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ void uart_init(void)
CSR_UART_EV_ENABLE = UART_EV_TX | UART_EV_RX; CSR_UART_EV_ENABLE = UART_EV_TX | UART_EV_RX;
mask = irq_getmask(); mask = irq_getmask();
mask |= UART_INTERRUPT; mask |= 1 << UART_INTERRUPT;
irq_setmask(mask); irq_setmask(mask);
} }