changeset 3264:32b1c6503e02

Fix FREESCALE_EDMA_NBYTES_MLOFFYES_NBYTES_M bug
author vae
date Mon, 26 Aug 2013 12:07:55 +0000
parents 13227893d387
children 1e90246544b4
files packages/hal/misc/freescale/edma/current/ChangeLog packages/hal/misc/freescale/edma/current/include/freescale_edma.h
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/misc/freescale/edma/current/ChangeLog
+++ b/packages/hal/misc/freescale/edma/current/ChangeLog
@@ -1,3 +1,8 @@
+2013-08-26  Ilija Kocho <ilijak@siva.com.mk>
+
+	* include/freescale_edma.h: Fix FREESCALE_EDMA_NBYTES_MLOFFYES_NBYTES_M bug
+	[ Bugzilla 1001896 ]
+
 2013-05-04  Ilija Kocho <ilijak@siva.com.mk>
 
 	* cdl/hal_freescale_edma.cdl: Remove requirement for WRITETHRU cache mode
--- a/packages/hal/misc/freescale/edma/current/include/freescale_edma.h
+++ b/packages/hal/misc/freescale/edma/current/include/freescale_edma.h
@@ -350,7 +350,7 @@ typedef volatile struct cyghwr_hal_frees
 // NBYTES_MLOFFYES Bit Fields
 #define FREESCALE_EDMA_NBYTES_MLOFFYES_NBYTES_M         0x3FF
 #define FREESCALE_EDMA_NBYTES_MLOFFYES_NBYTES(__val)    \
-        (__val & FREESCALE_EDMA_NBYTES_MLOFFYES_NBYTES(__val))
+        (__val & FREESCALE_EDMA_NBYTES_MLOFFYES_NBYTES_M)
 #define FREESCALE_EDMA_NBYTES_MLOFFYES_MLOFF_M          0x3FFFFC00
 #define FREESCALE_EDMA_NBYTES_MLOFFYES_MLOFF_S          10
 #define FREESCALE_EDMA_NBYTES_MLOFFYES_MLOFF(__val)     \