Closed GoogleCodeExporter closed 9 years ago
Original comment by philip.l...@gmail.com
on 24 Aug 2011 at 3:37
I wouldn't necessarily ignore that ADC12 warning. One of the guys who did
mspgcc4 (before me) made a change that might well have broken the alignment
between a structure declaration and physical memory. If the structure is not
marked as "packed", it's probably going to be wrong.
While a "quick fix" would be to place structure definitions that are no longer
part of mspgcc into TinyOS, this is very much the wrong approach from a
portability and reliability perspective. I strongly encourage all use of
structs that overlay MSP430 peripheral memory structures to be eliminated in
favor of the use of bit operations on the byte and word registers, as is
supported in mspgcc, IAR, and TI's CCS compilers using the headers provided by
TI.
Original comment by pabi...@gmail.com
on 24 Aug 2011 at 1:53
tos/platforms/shimmer/chips/msp430/Msp430I2CP.nc was updated with an ifdef
macro to support both old and new toolchains, as 4.x.x replaced I2CDR_ with
I2CDRB_ and W_.
fix committed.
Original comment by steveay...@gmail.com
on 24 Aug 2011 at 4:27
Original issue reported on code.google.com by
kevdaly1...@gmail.com
on 23 Aug 2011 at 7:40