Grant Edwards wrote:
On 2006-03-18, Brian C. Lane <b...@brianlane.com> wrote:
I'm trying to figure out how to exit from low power mode.
According to the manual, the _BIC_SR_IRQ() macro does what I
want, but I can't get it to compile without a warning. Isn't
there a way to do it that doesn't generate compiler warnings?
[...]
What's the warning look like?
hdlc.c:159: warning: concatenation of string literals with __FUNCTION__ is
deprecated
[...]
I used:
_BIC_SR_IRQ(LPM0_bits);
in my onelock project and don't remember a problem with it.
Are you sure you don't get any warning?? If so, I may switch
to gcc 3.3. I'm using 3.2, since that's the latest "released"
version from mspgcc.sourceforge.net.
I would recommend not using 3.3. We use 3.2 for a good reason. It works
better. A number of things done in 3.3 and 3.4 benefit x86 compilation,
but seem to hurt compilation for other processors.
Are you using gcc 4.x? With gcc4, the above macro isn't used,
but rather a built-in function that has been added to gcc itself.
I was using the install from http://cdk4msp.sourceforge.net/, I don't
think it uses 4.x yet.
It looks like they're at 3.3.2. I must admit I'm pretty baffled
by the statement at cdk4msp.sourceforge.net that says:
CDK4MSP is based on the GCC toolchain for the Texas
Intruments MSP430 MCUs maintained by Dimitry Diky and Chris
Lichti at Sourceforge (http://mspgcc.sourceforge.net/). Til
now MSPGCC supports Win32 developer systems as best as
possible. There is no really good Linux support.
What do they mean? The files I downloaded from
mspgcc.sourceforge.net worked fine under Linux. Have they
(cdk4msp) done something besides build RPMs?
I have no idea what that means. However, if you follow the steps in the
manual, installation on most Linux systems is very straightforward.
Steve