Fix interrupt status register.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 23 Jan 2008 11:53:03 +0000 (11:53 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 23 Jan 2008 11:53:03 +0000 (11:53 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1056 38d2e660-2303-0410-9eaa-f027e97ec537

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();