Microchip® Advanced Software Framework

eic.c File Reference

EIC driver for SAM.

Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.

#include "eic.h"
#include "sysclk.h"
#include "sleepmgr.h"

Functions

void EIC_1_Handler (void)
 Interrupt handler for EIC line 1. More...
 
void EIC_2_Handler (void)
 Interrupt handler for EIC line 2. More...
 
void EIC_3_Handler (void)
 Interrupt handler for EIC line 3. More...
 
void EIC_4_Handler (void)
 Interrupt handler for EIC line 4. More...
 
void EIC_5_Handler (void)
 Interrupt handler for EIC line 5. More...
 
void EIC_6_Handler (void)
 Interrupt handler for EIC line 6. More...
 
void EIC_7_Handler (void)
 Interrupt handler for EIC line 7. More...
 
void EIC_8_Handler (void)
 Interrupt handler for EIC line 8. More...
 
void eic_disable (Eic *eic)
 Disable the EIC module. More...
 
void eic_enable (Eic *eic)
 Enable the EIC module. More...
 
static void eic_line_interrupt (uint8_t line_number)
 Common EIC line interrupt handler. More...
 
void eic_line_set_callback (Eic *eic, uint8_t line_number, eic_callback_t callback, uint8_t irq_line, uint8_t irq_level)
 Set callback for given EIC line. More...
 
void eic_line_set_config (Eic *eic, uint8_t line_number, struct eic_line_config *eic_line_conf)
 Program the EIC hardware with the specified configuration. More...
 
void NMI_Handler (void)
 Interrupt handler for EIC NMI. More...
 

Variables

eic_callback_t eic_callback_pointer [EIC_NUMBER_OF_LINES]
 EIC callback function pointer array. More...
 

void EIC_1_Handler ( void  )

Interrupt handler for EIC line 1.

References eic_line_interrupt().

void EIC_2_Handler ( void  )

Interrupt handler for EIC line 2.

References eic_line_interrupt().

void EIC_3_Handler ( void  )

Interrupt handler for EIC line 3.

References eic_line_interrupt().

void EIC_4_Handler ( void  )

Interrupt handler for EIC line 4.

References eic_line_interrupt().

void EIC_5_Handler ( void  )

Interrupt handler for EIC line 5.

References eic_line_interrupt().

void EIC_6_Handler ( void  )

Interrupt handler for EIC line 6.

References eic_line_interrupt().

void EIC_7_Handler ( void  )

Interrupt handler for EIC line 7.

References eic_line_interrupt().

void EIC_8_Handler ( void  )

Interrupt handler for EIC line 8.

References eic_line_interrupt().

static void eic_line_interrupt ( uint8_t  line_number)
static

Common EIC line interrupt handler.

The optional callback used by the interrupt handler is set by the eic_line_set_callback() function.

Parameters
[in]line_numberEIC line number to handle interrupt for

References Assert.

Referenced by EIC_1_Handler(), EIC_2_Handler(), EIC_3_Handler(), EIC_4_Handler(), EIC_5_Handler(), EIC_6_Handler(), EIC_7_Handler(), EIC_8_Handler(), and NMI_Handler().

void NMI_Handler ( void  )

Interrupt handler for EIC NMI.

References eic_line_interrupt().

eic_callback_t eic_callback_pointer[EIC_NUMBER_OF_LINES]

EIC callback function pointer array.