X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=cpu%2Farm%2Fdrv%2Fser_at91.c;h=14027e896604990fc3f07fc7277726c808d8fcd8;hb=69bde49895a407bf1047475cc56c57526db31710;hp=dfde32a52f01d5e25965c89ad14b5871d4be9a61;hpb=a8bcb07b39220b51a08114d74eed103ebe08ee5f;p=bertos.git 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();