neil-sarkar / MEMS_AFM_MCU_CTRL

MCU code for ADUC7122
2 stars 1 forks source link

Interrupt vectoring #10

Open ushardul opened 10 years ago

ushardul commented 10 years ago

Used vectored interrupts for better latency, lower overhead, and future addition of interrupt nesting.

neil-sarkar commented 10 years ago

Upon entering the ISR, I think we should make sure that we are not in the middle of servicing another interrupt. Once we've read the IRQ or FIQ status and stored it, should we set it back to 0 when the interrupt is handled (instead of at the top of the ISR)?

ushardul commented 10 years ago

Interrupt nesting is disabled by default and we don't enable it anywhere in the code, if this is the problem you are referencing. See page 76 of the manual.