28.2.62 __builtin_get_isr_state

Architecture

dsPIC33A, dsPIC33C/E/F, dsPIC30

Description

Determine the current CPU interrupt state.

Prototype

unsigned int __builtin_get_isr_state(void);

For dsPIC33A, unsigned int is uint32_t. For dsPIC33C/E/F and dsPIC30, unsigned int is uint16_t.

Argument

None

Return Value

Returns an integer value specifying the current CPU interrupt state.

Machine Instruction

Device dependent. Some devices have an enable or disable bit but other require a code solution.

Error Messages

None