Fix interrupt status register.
[bertos.git] / cpu / arm / drv / ser_at91.c
index dfde32a52f01d5e25965c89ad14b5871d4be9a61..14027e896604990fc3f07fc7277726c808d8fcd8 100644 (file)
@@ -708,10 +708,10 @@ static void uart0_irq_dispatcher(void)
 {
        IRQ_ENTRY();
 
-       if (US0_IMR & BV(US_RXRDY))
+       if (US0_CSR & BV(US_RXRDY))
                uart0_irq_rx();
 
-       if (US0_IMR & BV(US_TXRDY))
+       if (US0_CSR & BV(US_TXRDY))
                uart0_irq_tx();
 
        IRQ_EXIT();
@@ -769,10 +769,10 @@ static void uart1_irq_dispatcher(void)
 {
        IRQ_ENTRY();
 
-       if (US1_IMR & BV(US_RXRDY))
+       if (US1_CSR & BV(US_RXRDY))
                uart1_irq_rx();
 
-       if (US1_IMR & BV(US_TXRDY))
+       if (US1_CSR & BV(US_TXRDY))
                uart1_irq_tx();
 
        IRQ_EXIT();