Microchip® Advanced Software Framework

intc.c File Reference

Optimized INTC driver for bootloader on AVR UC3.

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

#include <avr32/io.h>
#include "compiler.h"
#include "intc.h"

Functions

void _unhandled_interrupt (void)
 Default interrupt handler. More...
 
void INTC_register_interrupt (__int_handler handler, unsigned int irq, unsigned int int_level)
 Registers an interrupt handler. More...
 

Variables

void _evba
 Exception Vector Base Address. More...
 

void _unhandled_interrupt ( void  )

Default interrupt handler.

Note
Taken and adapted from Newlib.
void INTC_register_interrupt ( __int_handler  handler,
unsigned int  irq,
unsigned int  int_level 
)

Registers an interrupt handler.

Parameters
handlerInterrupt handler to register.
irqIRQ of the interrupt handler to register.
int_levelInterrupt priority level to assign to the group of this IRQ.
Warning
The interrupt handler must manage the `rete' instruction, what can be done thanks to pure assembly, inline assembly or the `__attribute__((interrupt))' C function attribute.
If several interrupt handlers of a same group are registered, all interrupts of this group will fetch the last interrupt handler registered for this group with the last registered interrupt priority level.
Note
Taken and adapted from Newlib.

References _evba, and AVR32_INTC_MAX_NUM_IRQS_PER_GRP.

void _evba

Exception Vector Base Address.

Referenced by INTC_register_interrupt().