Synopsis
#include <in430.h>

unsigned short _BIS_SR_IRQ(unsigned short mask);
Description

_BIS_SR_IRQ clears the bits specified in mask in the saved status register of an interrupt function (i.e. it bitwise ors mask into the saved status register). This allows you to change the operating mode of the MSP430 on return from the interrupt service routine, such as changing the low power mode.

_BIS_SR_IRQ returns the value of the saved MSP430 status register before the update.

_BIS_SR_IRQ is an intrinsic function and produces inline code.

Restrictions

_BIS_SR_IRQ can only be used in interrupt functions—an error is reported if it is used outside an interrupt function.

Portability

_BIS_SR_IRQ can be used on any MSP430 device.