On 2007-09-18, Ori Idan <[email protected]> wrote:
> I need a C only solution since my application will be later
> ported to IAR compiler.
Stuff like that is likely not portable between compilers
anyway.
> Also, I could not find the SR bits
> defined, where does bits like CPUOFF are defined?
You really should learn to do simple computer stuff like
searching files. Although I guess as long as we do your work
for you, there's no need to...
$ grep -r CPUOFF /opt/gnu/msp430/include
/opt/gnu/msp430/include/msp430/common.h:#define CPUOFF 0x0010
/opt/gnu/msp430/include/msp430/common.h:#define LPM0 CPUOFF
/opt/gnu/msp430/include/msp430/common.h:#define LPM1 SCG0+CPUOFF
/opt/gnu/msp430/include/msp430/common.h:#define LPM2 SCG1+CPUOFF
/opt/gnu/msp430/include/msp430/common.h:#define LPM3
SCG1+SCG0+CPUOFF
/opt/gnu/msp430/include/msp430/common.h:#define LPM4
SCG1+SCG0+OSCOFF+CPUOFF
/opt/gnu/msp430/include/msp430/common.h:#define LPM0_bits CPUOFF
/opt/gnu/msp430/include/msp430/common.h:#define LPM1_bits SCG0+CPUOFF
/opt/gnu/msp430/include/msp430/common.h:#define LPM2_bits SCG1+CPUOFF
/opt/gnu/msp430/include/msp430/common.h:#define LPM3_bits
SCG1+SCG0+CPUOFF
/opt/gnu/msp430/include/msp430/common.h:#define LPM4_bits
SCG1+SCG0+OSCOFF+CPUOFF
--
Grant Edwards grante Yow! Boy, am I glad it's
at only 1971...
visi.com