[rtems commit] bsps/arm: Fix register usage
Sebastian Huber
sebh at rtems.org
Mon May 6 13:38:02 UTC 2013
Module: rtems
Branch: master
Commit: 12d182c435cfbc8c1e6dbb7eb10791a7307a1d64
Changeset: http://git.rtems.org/rtems/commit/?id=12d182c435cfbc8c1e6dbb7eb10791a7307a1d64
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon May 6 14:01:10 2013 +0200
bsps/arm: Fix register usage
---
c/src/lib/libbsp/arm/shared/arm-pl011.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/c/src/lib/libbsp/arm/shared/arm-pl011.c b/c/src/lib/libbsp/arm/shared/arm-pl011.c
index e84b3e8..6cfedfe 100644
--- a/c/src/lib/libbsp/arm/shared/arm-pl011.c
+++ b/c/src/lib/libbsp/arm/shared/arm-pl011.c
@@ -60,7 +60,7 @@ static int pl011_read_polled(int minor)
if ((regs->uartfr & PL011_UARTFR_RXFE) != 0) {
return -1;
} else {
- return PL011_UARTDR_DATA(regs->uartdr);
+ return PL011_UARTDR_DATA_GET(regs->uartdr);
}
}
More information about the vc
mailing list