On Mon, Jul 16, 2012 at 1:28 AM, Paul Voith <p...@voithconsulting.com> wrote:
> Hi all,
>
> I am trying to port code from an earlier release of msp430-gcc and
> having trouble.
>
> Specifically now that <io.h> is depreciated I don't know the expected
> mechanism to support the "port1.out.pin0" nomenclature for referencing
> bit I/O.

mspgcc no longer directly supports bitfield structures to access the
ports.  Use standard C operators &, |, ^ with the peripheral registers
and the constants defined in the header (BIT0, etc.)

If you have legacy code that expects to use those structures, I
suggest incorporating the structure declarations from the old mspgcc
into your code.  The bitfield structures are not part of the interface
defined by TI in the MCU-specific headers they provide to mspgcc and
other MSP430 toolchains.

See also 
http://www.mail-archive.com/mspgcc-users@lists.sourceforge.net/msg10843.html

Peter

>
> In the past there was an installation kit for the tool chain on windows.
> I see now that there is a built zip file for windows (Thanks Matthias!).
> Any info available on how to install this? Perhaps just unzip into a
> searchable directory is all?
>
> The have referred to the manual but it seems out of date for these aspects.
>
> Thanks
> -- Paul
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to