1.2.8 Interrupt System Service

This library provides a low-level abstraction of the Interrupt System Service Library that is available on the Microchip family micro-controllers with a convenient C language interface. It can be used to simplify low-level access to the module without the necessity of interacting directly with the module's registers/PLIB, thereby hiding differences from one micro-controller variant to another.

Library Interface

INT system service provides the following interfaces:

Functions

NameDescription
SYS_INT_EnableEnable Global Interrupt
SYS_INT_DisableDisable Global Interrupt
SYS_INT_IsEnabledReturns the interrupt controller's global enable/disable status
SYS_INT_RestoreRestores the interrupt controller to the state specified in the parameter
SYS_INT_SourceEnableEnables the specified interrupt source
SYS_INT_SourceDisableDisables the specified interrupt source
SYS_INT_SourceRestoreRestores an interrupt vector to the state specified in the parameter
SYS_INT_SourceIsEnabledGets the enable/disable status of the specified interrupt source
SYS_INT_SourceStatusGetGets the pending status of the specified interrupt source
SYS_INT_SourceStatusSetSets the pending status of the specified interrupt source manually
SYS_INT_SourceStatusClearClears the pending status of the specified interrupt source

Data types and constants

NameTypeDescription
INT_SOURCETypedefDefines the data type for all the interrupt sources associated with the interrupt controller of the device