Jump to main content

##

# 2.71.3 NVIC_INT_Disable Function

## C

    bool NVIC_INT_Disable( void );

## Summary

Disables all global interrupts and returns PRIMASK bit status

## Description

This function disables all global interrupts and returns the Priority Mask Register (PRIMASK) bit status.

The bit status returned should be used with NVIC_INT_Restore() API

## Precondition

None.

## Parameters

None.

## Returns

Priority Mask Register (PRIMASK) bit status (true or false)

## Example

    bool intState = NVIC_INT_Disable();

## Remarks

None.