3.26.4 Interrupt Driver
Overview
Interrupt Module provides a tabular representation of all the Interrupts present in the system.
Features
- Interrupt Priority(IPL) can be assigned to a given interrupt based on the active Interrupts and relative priority or dependency between the interrupts.
- Alternate Working Register set can be assigned to any Interrupt Priority Level(IPL).
- Context(CTXT) can be enabled for a given interrupt to make use of Alternate Working Register Set.
- Global Interrupt is non-editable and always enabled for a given device.
- Interrupts cannot be enabled as part of the table and needs to be enabled in the their respective Driver/PLIB.
3.26.4.1 Module Documentation
3.26.4.1.1 Interrupt Driver
Interrupt Priority configuration driver using dsPIC MCUs.
Module description
Interrupt Priority configuration driver using dsPIC MCUs.
This is the generated driver types header file for the INTERRUPT driver
Enumerations
enum INTERRUPT_PRIORITY { INTERRUPT_PRIORITY_1 = 1, INTERRUPT_PRIORITY_2 = 2, INTERRUPT_PRIORITY_3 = 3, INTERRUPT_PRIORITY_4 = 4, INTERRUPT_PRIORITY_5 = 5, INTERRUPT_PRIORITY_6 = 6, INTERRUPT_PRIORITY_7 = 7, INTERRUPT_MAX_PRIORITY = 7 }
Defines the interrupt priority values.
Functions
void INTERRUPT_Initialize (void)
Initializes the interrupt priorities of the modules that have been configured.
void INTERRUPT_Deinitialize (void)
Deinitializes the INTERRUPT to POR values.
static void INTERRUPT_GlobalEnable (void)
Enables the global interrupt bit.
static void INTERRUPT_GlobalDisable (void)
Disables the global interrupt bit.
static uint16_t INTERRUPT_VectorNumberGet (void)
Returns the pending Interrupt Vector number.
Function Documentation
INTERRUPT_Deinitialize()
void INTERRUPT_Deinitialize (void )
Deinitializes the INTERRUPT to POR values.
none |
none |
INTERRUPT_GlobalDisable()
inline static void INTERRUPT_GlobalDisable (void )
Disables the global interrupt bit.
none |
none |
INTERRUPT_GlobalEnable()
inline static void INTERRUPT_GlobalEnable (void )
Enables the global interrupt bit.
none |
none |
INTERRUPT_Initialize()
void INTERRUPT_Initialize (void )
Initializes the interrupt priorities of the modules that have been configured.
none |
none |
INTERRUPT_VectorNumberGet()
inline static uint16_t INTERRUPT_VectorNumberGet (void )
Returns the pending Interrupt Vector number.
none |
Returns the pending Interrupt Vector number |
Enumeration Type Documentation
INTERRUPT_PRIORITY
enum INTERRUPT_PRIORITY
Defines the interrupt priority values.
INTERRUPT_PRIORITY_1 | |
INTERRUPT_PRIORITY_2 | |
INTERRUPT_PRIORITY_3 | |
INTERRUPT_PRIORITY_4 | |
INTERRUPT_PRIORITY_5 | |
INTERRUPT_PRIORITY_6 | |
INTERRUPT_PRIORITY_7 | |
INTERRUPT_MAX_PRIORITY |
3.26.4.2 File Documentation
3.26.4.2.1 source/interrupt.h File Reference
#include <stdint.h> #include <xc.h>
Functions
void INTERRUPT_Initialize (void)
Initializes the interrupt priorities of the modules that have been configured.
void INTERRUPT_Deinitialize (void)
Deinitializes the INTERRUPT to POR values.
static void INTERRUPT_GlobalEnable (void)
Enables the global interrupt bit.
static void INTERRUPT_GlobalDisable (void)
Disables the global interrupt bit.
static uint16_t INTERRUPT_VectorNumberGet (void)
Returns the pending Interrupt Vector number.
Detailed Description
INTERRUPT Generated Driver Header File
3.26.4.2.2 source/interrupt_types.h File Reference
Enumerations
enum INTERRUPT_PRIORITY { INTERRUPT_PRIORITY_1 = 1, INTERRUPT_PRIORITY_2 = 2, INTERRUPT_PRIORITY_3 = 3, INTERRUPT_PRIORITY_4 = 4, INTERRUPT_PRIORITY_5 = 5, INTERRUPT_PRIORITY_6 = 6, INTERRUPT_PRIORITY_7 = 7, INTERRUPT_MAX_PRIORITY = 7 }
Defines the interrupt priority values.
Detailed Description
INTERRUPT Generated Driver Header File