This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cortexm_fix_mask


fixed the MASK_ macro
diff -r bac1de69927b packages/hal/cortexm/arch/current/ChangeLog
--- a/packages/hal/cortexm/arch/current/ChangeLog	Mon Nov 24 13:36:57 2008 +0100
+++ b/packages/hal/cortexm/arch/current/ChangeLog	Mon Nov 24 13:38:39 2008 +0100
@@ -1,3 +1,7 @@
+2008-11-24  Simon Kallweit  <simon.kallweit@intefo.ch>
+
+	* include/hal_io.c: Fixed MASK_ macro.
+
 2008-11-07  Simon Kallweit  <simon.kallweit@intefo.ch>
 
 	* cdl/hal_cortexm.cdl:
diff -r bac1de69927b packages/hal/cortexm/arch/current/include/hal_io.h
--- a/packages/hal/cortexm/arch/current/include/hal_io.h	Mon Nov 24 13:36:57 2008 +0100
+++ b/packages/hal/cortexm/arch/current/include/hal_io.h	Mon Nov 24 13:38:39 2008 +0100
@@ -59,7 +59,7 @@
 //
 
 #define BIT_(__n)       (1<<(__n))
-#define MASK_(__n,__s)  (((1<<((__s)+1))-1)<<(__n))
+#define MASK_(__n,__s)  (((1<<(__s))-1)<<(__n))
 #define VALUE_(__n,__v) ((__v)<<(__n))
 
 //==========================================================================

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]