Jump to main content

##

# 2.73.28 NVMCTRL_EnableMainFlashInterruptSource Function

## C

    void NVMCTRL_EnableMainFlashInterruptSource(NVMCTRL_INTERRUPT0_SOURCE int_source)

## Summary

Enables a given interrupt source for the Flash.

## Description

There are multiple interrupt sources supported by the NVMCTRL peripheral. It supports two interrupt vectors, one for interrupts from the SmartEEPROM and another for all other interrupts of the NVMCTRL. This function enables a given interrupt for the first vector which is used by all interrupts except the ones from SmartEEPROM.

## Precondition

Interrupt option in MCC should have been enabled.

## Parameters

Param | Description
--- | ---
int_source | Refer to enum NVMCTRL_INTERRUPT0_SOURCE for possible values.

## Returns

None.

## Example

    NVMCTRL_EnableMainFlashInterruptSource(NVMCTRL_INT_LOCKE);

## Remarks

This API is available only if the main interrupt is enabled via the MCC tree.