[rtems commit] leon, gr1553b: RT status words register declarations fix

Daniel Hellstrom danielh at rtems.org
Mon Mar 6 06:58:44 UTC 2017


Module:    rtems
Branch:    master
Commit:    4431f7d262f6c5c402fda262f31facc543c905a8
Changeset: http://git.rtems.org/rtems/commit/?id=4431f7d262f6c5c402fda262f31facc543c905a8

Author:    Daniel Hellstrom <daniel at gaisler.com>
Date:      Mon Apr 13 09:01:54 2015 +0200

leon, gr1553b: RT status words register declarations fix

The fix does not affect the driver since the bit definitions
were never used by the GR5133B drivers. However it could affect
and application using the definitions.

---

 c/src/lib/libbsp/sparc/shared/include/gr1553b.h | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/shared/include/gr1553b.h b/c/src/lib/libbsp/sparc/shared/include/gr1553b.h
index 11f0980..006417b 100644
--- a/c/src/lib/libbsp/sparc/shared/include/gr1553b.h
+++ b/c/src/lib/libbsp/sparc/shared/include/gr1553b.h
@@ -198,17 +198,19 @@ struct gr1553b_regs {
 #define GR1553B_RT_CFG_RTKEY		(0xffff<<GR1553B_RT_CFG_RTKEY_BIT)
 
 /*** RT Bus Status Register ***/
-#define GR1553B_RT_STAT2_RTEN_BIT	0
+#define GR1553B_RT_STAT2_TFLG_BIT	0
 #define GR1553B_RT_STAT2_DBCA_BIT	1
 #define GR1553B_RT_STAT2_SSF_BIT	2
 #define GR1553B_RT_STAT2_BUSY_BIT	3
 #define GR1553B_RT_STAT2_SREQ_BIT	4
+#define GR1553B_RT_STAT2_TFDE_BIT	8
 
-#define GR1553B_RT_STAT2_RTEN		(1<<GR1553B_RT_STAT2_RTEN_BIT)
+#define GR1553B_RT_STAT2_TFLG		(1<<GR1553B_RT_STAT2_TFLG_BIT)
 #define GR1553B_RT_STAT2_DBCA		(1<<GR1553B_RT_STAT2_DBCA_BIT)
 #define GR1553B_RT_STAT2_SSF		(1<<GR1553B_RT_STAT2_SSF_BIT)
 #define GR1553B_RT_STAT2_BUSY		(1<<GR1553B_RT_STAT2_BUSY_BIT)
-#define GR1553B_RT_STAT2_SREQ		(1<<GR1553B_RT_STAT2_RTEN_BIT)
+#define GR1553B_RT_STAT2_SREQ		(1<<GR1553B_RT_STAT2_SREQ_BIT)
+#define GR1553B_RT_STAT2_TFDE		(1<<GR1553B_RT_STAT2_TFDE_BIT)
 
 /*** RT Status Words Register ***/
 #define GR1553B_RT_STATW_VECW_BIT	0




More information about the vc mailing list