12.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

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.

C LanguageGet the value of the CPSR status register. Returns the value of the status register CPSR.__setcpsrunsigned int volatile __setcpsr( int set, int clear);Set or clear bits in the CPSR status register. Returns the new value of the CPSR status register.__getapsrunsigned int volatile __getapsr( void );Get the value of the APSR status register (<strong>ARM</strong>v6-M and <strong>ARM</strong>v7-M). Returns the value of the statusregister APSR.__setapsrunsigned int volatile __setapsr( int set, int clear);Set or clear bits in the APSR status register (<strong>ARM</strong>v6-M and <strong>ARM</strong>v7-M). Returns the new value of theAPSR status register.__getipsrunsigned int volatile __getipsr( void );Get the value of the IPSR status register (<strong>ARM</strong>v6-M and <strong>ARM</strong>v7-M). Returns the value of the statusregister IPSR.__svcvoid volatile __svc(int number);Generates a supervisor call (software interrupt). Number must be a constant value.CMSIS IntrinsicsThe <strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> supports the Cortex Micro-controller Software Interface Standard(CMSIS). You can find details about this standard on www.onarm.com.The required functions as defined in the CMSIS are supported by the compiler as intrinsic functions anddo not have any implementation in the CMSIS header files core_cm0.h and core_cm3.h. Theimplemented intrinsic functions are:__enable_irqvoid volatile __enable_irq(void);Global Interrupt enable (using the instruction CPSIE i).27

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

Saved successfully!

Ooh no, something went wrong!