11.07.2015 Views

MSP430 IAR C/C++ Compiler reference guide - Rice University

MSP430 IAR C/C++ Compiler reference guide - Rice University

MSP430 IAR C/C++ Compiler reference guide - Rice University

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Descriptions of intrinsic functionsDescriptionWrites data to the <strong>MSP430</strong>X full 1-Mbyte memory area. This intrinsic function isintended to be used in the Small data model. In the Medium and Large data models it isrecommended to use __data20 variables and pointers.The following functions are supported:Function Operation size Alignmentunsigned char __data20_write_char 1 byte 1unsigned short __data20_write_short 2 bytes 2unsigned long __data20_write_long 4 bytes 2Table 38: Functions for writing data that has a 20-bit address__delay_cyclesSyntaxvoid __delay_cycles(unsigned long cycles);ParameterscyclesThe time delay in number of cycles.DescriptionInserts assembler instructions that delays execution the number of clock cyclesspecified.__disable_interruptSyntaxDescriptionvoid __disable_interrupt(void);Disables interrupts by inserting the DI instruction.__enable_interruptSyntaxDescriptionvoid __enable_interrupt(void);Enables interrupts by inserting the EI instruction.220<strong>MSP430</strong> <strong>IAR</strong> C/<strong>C++</strong> <strong>Compiler</strong>Reference Guide

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!