From 69bde49895a407bf1047475cc56c57526db31710 Mon Sep 17 00:00:00 2001 From: asterix Date: Wed, 23 Jan 2008 11:53:03 +0000 Subject: [PATCH] Fix interrupt status register. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1056 38d2e660-2303-0410-9eaa-f027e97ec537 --- cpu/arm/drv/ser_at91.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(); -- 2.25.1