Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

libbase: unmask UART interrupt correctly

  • Loading branch information...
commit d03ee7a89f7f8a555153eecc1adebfb06dd4986c 1 parent c01594f
Sébastien Bourdeauducq authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  software/libbase/uart.c
2  software/libbase/uart.c
@@ -121,7 +121,7 @@ void uart_init(void)
121 121
 	CSR_UART_EV_ENABLE = UART_EV_TX | UART_EV_RX;
122 122
 
123 123
 	mask = irq_getmask();
124  
-	mask |= UART_INTERRUPT;
  124
+	mask |= 1 << UART_INTERRUPT;
125 125
 	irq_setmask(mask);
126 126
 }
127 127
 

0 notes on commit d03ee7a

Please sign in to comment.
Something went wrong with that request. Please try again.