Skip to content

Commit d03ee7a

Browse files
author
Sebastien Bourdeauducq
committedMay 21, 2012
libbase: unmask UART interrupt correctly
1 parent c01594f commit d03ee7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎software/libbase/uart.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void uart_init(void)
121121
CSR_UART_EV_ENABLE = UART_EV_TX | UART_EV_RX;
122122

123123
mask = irq_getmask();
124-
mask |= UART_INTERRUPT;
124+
mask |= 1 << UART_INTERRUPT;
125125
irq_setmask(mask);
126126
}
127127

0 commit comments

Comments
 (0)
Please sign in to comment.