3.8 ExtInt - External Interrupts
3.8.1 Introduction
The MCC Melody External Interrupt Manager PLIB Driver (Peripheral Library) generates API to support External Interrupt Manager functionality on AVR target MCU's.
The external interrupts are triggered by the INT0 and INT1 pins or any of the PCINT23..0 pins. If enabled, the interrupts will trigger even if the INT0 and INT1 or PCINT23..0 pins are configured as outputs. This feature provides a way of generating a software interrupt.
3.8.2 Supported Device Families
ATmega32xx |
3.8.3 Required header files:
#include "mcc_generated_files/exint/exint.h"
3.8.4 Module Documentation
3.8.4.1 Exint Driver
This file contains the API prototypes for the External Interrupt driver.
3.8.4.1.1 Module description
This file contains the API prototypes for the External Interrupt driver.
Functions
int8_t EXINT_Initialize (void)
Initializes the Exint interface.
bool EXINT_Get_INT0_InterruptFlagStatus (void)
Checks the INT0 flag status.
bool EXINT_Get_INT1_InterruptFlagStatus (void)
Checks the INT1 flag status.
void EXINT_Enable_INT0_Interrupt (void)
Enables the INT0 external interrupt.
void EXINT_Enable_INT1_Interrupt (void)
Enables the INT1 external interrupt.
void EXINT_Disable_INT0_Interrupt (void)
Disables the INT0 external interrupt.
void EXINT_Disable_INT1_Interrupt (void)
Disables the INT1 external interrupt.
3.8.4.1.2 Function Documentation
EXINT_Disable_INT0_Interrupt()
void EXINT_Disable_INT0_Interrupt (void )
Disables the INT0 external interrupt.
|
None. |
EXINT_Disable_INT1_Interrupt()
void EXINT_Disable_INT1_Interrupt (void )
Disables the INT1 external interrupt.
|
None. |
EXINT_Enable_INT0_Interrupt()
void EXINT_Enable_INT0_Interrupt (void )
Enables the INT0 external interrupt.
|
None. |
EXINT_Enable_INT1_Interrupt()
void EXINT_Enable_INT1_Interrupt (void )
Enables the INT1 external interrupt.
|
None. |
EXINT_Get_INT0_InterruptFlagStatus()
bool EXINT_Get_INT0_InterruptFlagStatus (void )
Checks the INT0 flag status.
|
|
EXINT_Get_INT1_InterruptFlagStatus()
bool EXINT_Get_INT1_InterruptFlagStatus (void )
Checks the INT1 flag status.
|
|
EXINT_Initialize()
int8_t EXINT_Initialize (void )
Initializes the Exint interface.
|
|
3.8.5 File Documentation
3.8.5.1 source/exint.c File Reference
This file contains the API implementation for the EXINT module driver.
#include <avr/io.h> #include "../exint.h"
3.8.5.1.1 Functions
int8_t EXINT_Initialize (void)
Initializes the Exint interface.
bool EXINT_Get_INT0_InterruptFlagStatus (void)
Checks the INT0 flag status.
bool EXINT_Get_INT1_InterruptFlagStatus (void)
Checks the INT1 flag status.
void EXINT_Enable_INT0_Interrupt (void)
Enables the INT0 external interrupt.
void EXINT_Enable_INT1_Interrupt (void)
Enables the INT1 external interrupt.
void EXINT_Disable_INT0_Interrupt (void)
Disables the INT0 external interrupt.
void EXINT_Disable_INT1_Interrupt (void)
Disables the INT1 external interrupt.
ISR (INT0_vect)
ISR (INT1_vect)
3.8.5.1.2 Detailed Description
This file contains the API implementation for the EXINT module driver.
EXINT Generated Driver File
3.8.5.1.3 Function Documentation
ISR()[1/2]
ISR (INT0_vect )
ISR()[2/2]
ISR (INT1_vect )
3.8.5.2 source/exint.h File Reference
#include "../system/utils/compiler.h" #include <stdint.h> #include <stdbool.h>
3.8.5.2.1 Functions
int8_t EXINT_Initialize (void)
Initializes the Exint interface.
bool EXINT_Get_INT0_InterruptFlagStatus (void)
Checks the INT0 flag status.
bool EXINT_Get_INT1_InterruptFlagStatus (void)
Checks the INT1 flag status.
void EXINT_Enable_INT0_Interrupt (void)
Enables the INT0 external interrupt.
void EXINT_Enable_INT1_Interrupt (void)
Enables the INT1 external interrupt.
void EXINT_Disable_INT0_Interrupt (void)
Disables the INT0 external interrupt.
void EXINT_Disable_INT1_Interrupt (void)
Disables the INT1 external interrupt.
3.8.5.2.2 Detailed Description
EXINT Generated Driver API Header File