Forum Discussion
Altera_Forum
Honored Contributor
19 years agoBasically, to register your ISR you do
alt_irq_init // enable irqs in control register 3 (nios proc ref book, chapter 3) alt_irq_register // tie your ISR alt_irq_enable // enable your IRQ That should work. __________ If you want to access CPU registers, you can use functions like: alt_irq_pending (or NIOS2_READ_IPENDING), alt_irq_enabled, alt_irq_enable, alt_irq_disable etc Check the alt_irq.h for the reference. Good luck