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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Descriptions of pragma directivesExampleIn the following example, an int object with the memory attribute __data16 isdefined:#pragma type_attribute=__data16int x;The following declaration, which uses extended keywords, is equivalent:__data16 int x;See also See the chapter Extended keywords for more details.vectorSyntax #pragma vector=vector1[, vector2, vector3, ...]ParametersvectorThe vector number(s) of an interrupt or trap function.DescriptionExample!Use this pragma directive to specify the vector(s) of an interrupt or trap function whosedeclaration follows the pragma directive. Note that several vectors can be defined foreach function.#pragma vector=0x14__interrupt void my_handler(void);214<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!