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.

Version: EXINT Driver Version 1.0.0
Functions

3.8.4.1.2 Function Documentation

EXINT_Disable_INT0_Interrupt()

void EXINT_Disable_INT0_Interrupt (void )

Disables the INT0 external interrupt.

Parameters:
None.
Returns:

None.

EXINT_Disable_INT1_Interrupt()

void EXINT_Disable_INT1_Interrupt (void )

Disables the INT1 external interrupt.

Parameters:
None.
Returns:

None.

EXINT_Enable_INT0_Interrupt()

void EXINT_Enable_INT0_Interrupt (void )

Enables the INT0 external interrupt.

Parameters:
None.
Returns:

None.

EXINT_Enable_INT1_Interrupt()

void EXINT_Enable_INT1_Interrupt (void )

Enables the INT1 external interrupt.

Parameters:
None.
Returns:

None.

EXINT_Get_INT0_InterruptFlagStatus()

bool EXINT_Get_INT0_InterruptFlagStatus (void )

Checks the INT0 flag status.

Parameters:
None.
Return values:
True

- External interrupt on INT0 detected.

False

- No External interrupt on INT0 detected.

EXINT_Get_INT1_InterruptFlagStatus()

bool EXINT_Get_INT1_InterruptFlagStatus (void )

Checks the INT1 flag status.

Parameters:
None.
Return values:
True

- External interrupt on INT1 detected.

False

- No External interrupt on INT1 detected.

EXINT_Initialize()

int8_t EXINT_Initialize (void )

Initializes the Exint interface.

Parameters:
None.
Return values:
0

- The external interrupt initialization is successful .

1

- The external interrupt initialization is unsuccessful .

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

3.8.5.1.2 Detailed Description

This file contains the API implementation for the EXINT module driver.

EXINT Generated Driver File

Version: EXINT Driver Version 1.0.0

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

3.8.5.2.2 Detailed Description

EXINT Generated Driver API Header File