[rtems commit] bsp/lm3s69xx: More access macros for UART data register
Sebastian Huber
sebh at rtems.org
Mon May 6 07:44:01 UTC 2013
Module: rtems
Branch: master
Commit: 847e2cac7c699111ba067cca9593a89562fc3f05
Changeset: http://git.rtems.org/rtems/commit/?id=847e2cac7c699111ba067cca9593a89562fc3f05
Author: Eugeniy Meshcheryakov <eugen at debian.org>
Date: Mon May 6 00:02:06 2013 +0200
bsp/lm3s69xx: More access macros for UART data register
Add mask for receive error bits and getter macro for
the data field.
---
c/src/lib/libbsp/arm/lm3s69xx/include/lm3s69xx.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/c/src/lib/libbsp/arm/lm3s69xx/include/lm3s69xx.h b/c/src/lib/libbsp/arm/lm3s69xx/include/lm3s69xx.h
index 7d54c25..7402624 100644
--- a/c/src/lib/libbsp/arm/lm3s69xx/include/lm3s69xx.h
+++ b/c/src/lib/libbsp/arm/lm3s69xx/include/lm3s69xx.h
@@ -276,7 +276,9 @@ typedef struct {
#define UARTDR_BE BSP_BIT32(10)
#define UARTDR_PE BSP_BIT32(9)
#define UARTDR_FE BSP_BIT32(8)
+#define UARTDR_ERROR_MSK BSP_MSK32(8, 11)
#define UARTDR_DATA(val) BSP_FLD32(val, 0, 7)
+#define UARTDR_DATA_GET(reg) BSP_FLD32GET(reg, 0, 7)
uint32_t dr;
uint32_t rsr_ecr;
More information about the vc
mailing list