[Icc-430] ICC430 V7.08
Kris Heidenstrom
kris at abbey.co.nz
Mon May 12 21:05:06 PDT 2008
Richard Man wrote:
> ICCV7 for MSP430, V7.08 has been released.
[...]
> Compiler
> - Added the following INTRINSIC functions:
> int GET_SR(void), GET_SR_IRQ(void);
> void PUT_SR(int), PUT_SR_IRQ(int);
>
> for accessing the SR status register in a
> normal function and interrupt handler.
Since these aren't documented in the online help yet,
this is what they do:
_GET_SR() returns the current status register value;
_SET_SR() sets the status register from a 16-bit parameter;
_GET_SR_IRQ() returns the status register value from the
stack, i.e. the value of the status register before the
interrupt was accepted;
_SET_SR_IRQ() sets the stacked status register value.
I think they need the leading underscore in the names,
as shown above.
When I used these intrinsics, the compiler warned me that
"calling a function without a prototype may cause runtime
errors". They aren't prototyped in any include file, but
that may be normal for intrinsics.
I'm also now having trouble with include files failing to
be included. My project specifies the include file paths as
c:\fw\inc;c:\fw\libmsp\dev
I have a file
c:\fw\inc\rosiedef.h
which is included correctly, but it contains the line
#include "netdef.h"
which should find the file
"c:\fw\inc\netdef.h"
but instead I get the error
"!E c:\fw\inc\rosiedef.h(80): cannot include source
file "netdef.h"; invalid file name"
This error appears _before_ the line
"C:\iccv7430\bin\imakew -f ROSIE.mak"
Also I can't add that file to the Header Files
list in the project - I can select it in the file
selection dialog but it doesn't appear in the list
and no error is raised. I can add other files in
the same directory, but not that one. It is
read-only but so are all the others.
I also still have the clipped NoIce toolbar button.
My screen resolution is 1600x1200 but the button is
clipped even if I resize the icc430 window to less
than 640x480.
Regards
Kris
--
Kris Heidenstrom Embedded systems designer / programmer
kris at abbey.co.nz Abbey Systems Ltd - Telemetry Specialists
Wellington NEW ZEALAND Voice +64-4-385-6611 Fax +64-4-385-6848
More information about the Icc-430
mailing list