I'm trying to switch from using the legacy headers to the TI ones, in order to 
start compiling code for MSP430F55xx processors. My first flow-flushing process 
is to re-do my previous port of the slac139d code for the ez430-RF2500 
platform, since I found that it would no longer compile properly once I 
switched to the TI headers.

I'm using mspgcc4 from the git repository, from the master branch, last pulled 
around 10/6/2010. I'm building under Mac OS X.

First, I found that I had to add this #define near the beginning of 
.../msp430-gcc-4.4.4/msp430/include/iomacros.h in order to get the const_sfrb() 
macros to work:

#define __MSP430_TI_HEADERS__

I'm not sure why this definition didn't carry through from the other headers 
that included iomacros.h, but adding that line cured the barfing on 
const_sfrb(), and let my compilation proceed a lot further.

I wonder whether it would be appropriate for this tiny patch to be applied as 
part of the mspgcc4 build process?

I'm stuck on the best way to approach the second issue I'm having, though. 
There's a small amount of assembled code in the slac139d project, and it 
includes <msp430x22x4.h> to pick up register definitions. Unfortunately, lots 
of the TI header files use integer constants with "U" suffixes, and the 
assembler barfs on those. I hope that I can avoid needing to massage all of the 
TI header files to get rid of those, because that would be a headache that I'd 
need to re-live every time I upgrade mspgcc4, and such a sweeping change 
doesn't seem like something that's appropriate as part of the standard mspgcc4 
distribution.

Do any of y'all have any ideas about the cleanest way to deal with this? So 
far, I haven't found a way to either trick the C preprocessor into stripping 
out the "U" suffixes, or to get the assembler to digest them properly.

Thanks in advance for any suggestions.

-- 
Mark J. Blair, NF6X <[email protected]>
Web page: http://www.nf6x.net/
GnuPG public key available from my web page.





------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to