Microchip® Advanced Software Framework

common/services/usb/class/dfu_flip/device/bootloader/avr32/intc/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"


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...


void _evba
 Exception Vector Base Address. More...

void _unhandled_interrupt ( void  )

Default interrupt handler.

Taken and adapted from Newlib.

Referenced by INTC_init_interrupts(), uart_dfu_stop(), and vUSART_ISR_init().

void INTC_register_interrupt ( __int_handler  handler,
unsigned int  irq,
unsigned int  int_level 

Registers an interrupt handler.

handlerInterrupt handler to register.
irqIRQ of the interrupt handler to register.
int_levelInterrupt priority level to assign to the group of this IRQ.
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.
Taken and adapted from Newlib.

Referenced by init_timer(), init_touch(), main(), pdca_set_irq(), SERIAL_Init(), uart_configure(), uart_dfu_stop(), vUSART_ISR_init(), and xSerialPortInitMinimal().

void _evba

Exception Vector Base Address.

Referenced by INTC_init_evba(), and INTC_register_interrupt().