From: asterix Date: Wed, 23 Jan 2008 11:53:03 +0000 (+0000) Subject: Fix interrupt status register. X-Git-Tag: 1.0.0~186 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=69bde49895a407bf1047475cc56c57526db31710;hp=a8bcb07b39220b51a08114d74eed103ebe08ee5f;p=bertos.git Fix interrupt status register. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1056 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/cpu/arm/drv/ser_at91.c b/cpu/arm/drv/ser_at91.c index dfde32a5..14027e89 100644 --- a/cpu/arm/drv/ser_at91.c +++ b/cpu/arm/drv/ser_at91.c @@ -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();