[PATCH 1/2] bsp/lm3s69xx: More access macros for UART data register
Eugeniy Meshcheryakov
eugen at debian.org
Sun May 5 22:02:06 UTC 2013
Add mask for receive error bits and getter macro for
the data field.
---
c/src/lib/libbsp/arm/lm3s69xx/include/lm3s69xx.h | 2 ++
1 file changed, 2 insertions(+)
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;
--
1.7.10.4
More information about the devel
mailing list