Hi mspgcc,
I am currently using the windows install of mspgcc version 20081230. I
am using an MSP430F233 device and I have noticed a couple of issues with
the MSPGCC header files included from <io.h>
Firstly in the file msp430x23x.h (version 1.1) it does not include
<msp430/adc12.h> which is required for the on chip 12 bit ADC. I
checked the CVS repository to see if this had been fixed but I could not
find the file.
Secondly in the file msp430/iostructures.h (version 1.11) there seems to
be some sort of packing issue with the type ioregister_t. It seems to
generate incorrect offsets because the size of ioregister is 2 and not 1
as it should be. I got around the problem by redefining ioregisters_t
as
typedef union port {
__VOLATILE __MSP430_UNS__ char reg_p;
__VOLATILE struct {
__MSP430_UNS__ char __p0:1,
__p1:1,
__p2:1,
__p3:1,
__p4:1,
__p5:1,
__p6:1,
__p7:1;
} __attribute__ ((packed)) __pin;
} __attribute__ ((packed)) ioregister_t;
I have added the "__attribute__ ((packed))" to the __pin member. Not to
sure if this was the best way to go about this but it worked.
Has anyone else come across these issues?
Regards,
James Brown
Scanned by the Netbox from
<a href="
http://netboxblue.com/">Netbox Blue</a>
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@...
https://lists.sourceforge.net/lists/listinfo/mspgcc-users