3.4 Interrupt Driver
3.4.1 Introduction
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.4.2 Module Documentation
3.4.2.1 Interrupt Driver
Interrupt Priority configuration driver using dsPIC MCUs.
3.4.2.1.1 Module description
Interrupt Priority configuration driver using dsPIC MCUs.
This is the generated driver types header file for the INTERRUPT driver.
3.4.2.1.1.1 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.
3.4.2.1.2 Function Documentation
3.4.2.1.2.1 INTERRUPT_Deinitialize()
void INTERRUPT_Deinitialize (void )
Deinitializes the INTERRUPT to POR values.
none |
none |
3.4.2.1.2.2 INTERRUPT_GlobalDisable()
inline static void INTERRUPT_GlobalDisable (void )
Disables the global interrupt bit.
none |
none |
3.4.2.1.2.3 INTERRUPT_GlobalEnable()
inline static void INTERRUPT_GlobalEnable (void )
Enables the global interrupt bit.
none |
none |
3.4.2.1.2.4 INTERRUPT_Initialize()
void INTERRUPT_Initialize (void )
Initializes the interrupt priorities of the modules that have been configured.
none |
none |
3.4.2.1.2.5 INTERRUPT_VectorNumberGet()
inline static uint16_t INTERRUPT_VectorNumberGet (void )
Returns the pending Interrupt Vector number.
none |
Returns the pending Interrupt Vector number |
3.4.3 File Documentation
3.4.3.1 source/interrupt.h File Reference
3.4.3.1.1 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.
3.4.3.1.2 Detailed Description
INTERRUPT Generated Driver Header File
3.4.3.2 source/interrupt_types.h File Reference
3.4.3.2.1 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 }
3.4.3.2.2 Detailed Description
INTERRUPT Generated Driver Header File
3.4.3.2.3 Enumeration Type Documentation
3.4.3.2.3.1 INTERRUPT_PRIORITY
enum INTERRUPT_PRIORITY
INTERRUPT_PRIORITY_1 | |
INTERRUPT_PRIORITY_2 | |
INTERRUPT_PRIORITY_3 | |
INTERRUPT_PRIORITY_4 | |
INTERRUPT_PRIORITY_5 | |
INTERRUPT_PRIORITY_6 | |
INTERRUPT_PRIORITY_7 | |
INTERRUPT_MAX_PRIORITY |