[rtems commit] bsp/imx: Fix UART interrupt
Sebastian Huber
sebh at rtems.org
Fri Aug 4 12:46:55 UTC 2017
Module: rtems
Branch: master
Commit: ca9490ca36cedaea9f9428ce56b1b4027c159ae4
Changeset: http://git.rtems.org/rtems/commit/?id=ca9490ca36cedaea9f9428ce56b1b4027c159ae4
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Aug 4 14:46:17 2017 +0200
bsp/imx: Fix UART interrupt
Update #3090.
---
c/src/lib/libbsp/arm/imx/console/console-config.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/c/src/lib/libbsp/arm/imx/console/console-config.c b/c/src/lib/libbsp/arm/imx/console/console-config.c
index 87dac03..bc9a3d2 100644
--- a/c/src/lib/libbsp/arm/imx/console/console-config.c
+++ b/c/src/lib/libbsp/arm/imx/console/console-config.c
@@ -173,6 +173,8 @@ static void imx_uart_interrupt(void *arg)
regs = ctx->regs;
usr2 = regs->usr2;
+ regs->usr1 = IMX_UART_USR1_AGTIM;
+
while ((usr2 & IMX_UART_USR2_RDR) != 0) {
char c;
More information about the vc
mailing list