|
hello, some questions about interruptions on an 9260 : I've found one example called "Interrupt generation using AT91 timer/counter" on the atmel site, which is based on a AT91R40008. I have changed the register adresses to meet the AT91SAM9260 mapping. this example configures the TC1 and AIC for generating an interrupt every 1s. It is made of two file : Irq_timer.s : assembler timer interrupt handler Timer_Interrupt.c : main (config) and c interrupt handler
my first question is : do we really need an assembler file to install an asm_irq_handler who calls the c_irq_handler? can we do its job in C ?
the second question is about the id of the interrupt generated by TC1. In this example TC1 is used, and the AIC is configured to wait an interrupt with 5 as id. I don't understand why (and how) interrupt id 5 is associated with the TC1..
actually this program runs partially, the interrupt part doesn't.
|