好好找找。
/**************************************************
*
* Intrinsic functions for the IAR Embedded Workbench for MSP430.
*
* Copyright 2002-2006 IAR Systems. All rights reserved.
*
* $Revision: 1.18 $
*
**************************************************/
__intrinsic unsigned short __bcd_add_short(unsigned short,
unsigned short);
__intrinsic unsigned long __bcd_add_long (unsigned long,
unsigned long);
__intrinsic unsigned long long __bcd_add_long_long(unsigned long long,
unsigned long long);
/*
* Support for efficient switch:es. E.g. switch(__even_in_range(x, 10))
*
* Note that the value must be even and in the range from 0 to
* __bound, inclusive. No code will be generated that checks this.
*
* This is typically used inside interrupt dispatch functions, to
* switch on special processor registers like TAIV.
*/
__intrinsic unsigned short __even_in_range(unsigned short __value,
unsigned short __bound);
/* Insert a delay with a specific number of cycles. */
__intrinsic void __delay_cycles(unsigned long __cycles);
/*
* The following R4/R5 intrinsic functions are only ××aila××e when
* the corresponding register is locked.
*/
__intrinsic unsigned short __get_R4_register(void);
__intrinsic void __set_R4_register(unsigned short);
__intrinsic unsigned short __get_R5_register(void);
__intrinsic void __set_R5_register(unsigned short);
__intrinsic unsigned short __get_SP_register(void);
__intrinsic void __set_SP_register(unsigned short);
/*
* The following functions are ××aila××e in extended mode (--core=430X)
* to access the upper memory above 64kB as a data area.
*/
__intrinsic void __data20_write_char (unsigned long __addr,
unsigned char __value);
__intrinsic void __data20_write_short(unsigned long __addr,
unsigned short __value);
__intrinsic void __data20_write_long (unsigned long __addr,
unsigned long __value);
__intrinsic unsigned char __data20_read_char (unsigned long __addr);
__intrinsic unsigned short __data20_read_short(unsigned long __addr);
__intrinsic unsigned long __data20_read_long (unsigned long __addr);
/*
* The following two functions can be used to access 20-bit SFRs in the
* lower 64kB. They are only ××aila××e in extended mode (--core=430X).
*/
__intrinsic void __data16_write_addr (unsigned short __addr,
unsigned long __value);
__intrinsic unsigned long __data16_read_addr (unsigned short __addr);
#ifdef __cplusplus
}
#endif
/*
* Alias for locations used for global register varia××es. For example,
* "__no_init __regvar int x @ __R4;".
*/
#define __R4 4
#define __R5 5
/*
* Control bits in the processor status register, SR.
*/
呵呵,可能是我这个版本比较低,我这里面没有的,奇怪了,我装的是3.40啊,看来应该去下载一下更新了,那个可能就有了。
/**************************************************
*
* Intrinsic functions for the MSP430 IAR Systems C/EC++ Compiler.
*
* Copyright 2002 IAR Systems. All rights reserved.
*
* $Revision: 1.14 $
*
**************************************************/
#ifndef __INTRINSICS_H
#define __INTRINSICS_H
#pragma language=extended
/*
* The return value of "__get_interrupt_state".
*/
__intrinsic unsigned short __bcd_add_short(unsigned short, unsigned short);
__intrinsic unsigned long __bcd_add_long (unsigned long , unsigned long);
__intrinsic unsigned long long __bcd_add_long_long(
unsigned long long, unsigned long long);
/* Support for efficient switch:es. E.g. switch(__even_in_range(TAIV, 10)) */
__intrinsic unsigned short __even_in_range(unsigned short, unsigned short);
/*
* The following intrinsic functions are only ××aila××e when the
* corresponding register is locked.
*/
__intrinsic unsigned short __get_R4_register(void);
__intrinsic void __set_R4_register(unsigned short);
__intrinsic unsigned short __get_R5_register(void);
__intrinsic void __set_R5_register(unsigned short);
__intrinsic unsigned short __get_SP_register(void);
__intrinsic void __set_SP_register(unsigned short);
/*
* The following functions are ××aila××e in extended mode (--core=430X)
* to access the upper memory above 64kB as a data area.
*/
__intrinsic void __data20_write_char (unsigned long addr, unsigned char data);
__intrinsic void __data20_write_short(unsigned long addr, unsigned short data);
__intrinsic void __data20_write_long (unsigned long addr, unsigned long data);
__intrinsic unsigned char __data20_read_char (unsigned long addr);
__intrinsic unsigned short __data20_read_short(unsigned long addr);
__intrinsic unsigned long __data20_read_long (unsigned long addr);
/*
* The following two functions can be used to access 20-bit SFRs in the
* lower 64kB. They are only ××aila××e in extended mode (--core=430X).
*/
__intrinsic void __data16_write_addr (unsigned short addr, unsigned long data);
__intrinsic unsigned long __data16_read_addr (unsigned short addr);
#ifdef __cplusplus
}
#endif
/*
* Alias for locations used for global register varia××es. For example,
* "__no_init __regvar int x @ __R4;".
*/
#define __R4 4
#define __R5 5
/*
* Control bits in the processor status register, SR.
*/