Bugzilla – Bug 16085
buggy #define in config.h of msp430 fw
Last modified: 2011-05-18 15:32:59 UTC
The following define fail to clear multiple bits: #define BIC(LOC, BITS) (LOC = (LOC & (~BITS))) For example, in rtc.c the statement BIC(BCSCTL3, LFXT1S0|LFXT1S1|XCAP0) will only clear bit LFXT1S0 and fail to clear the other two bits. The correct way is: #define BIC(LOC, BITS) (LOC = (LOC & ~(BITS))) I would also change: #define BIS(LOC, BITS) (LOC = (LOC | BITS)) into #define BIS(LOC, BITS) (LOC = (LOC | (BITS)))
Made the changes and ran some tests to make sure that it works fine. It is ready to be checked in
Closing due to fix