Forum Discussion
Altera_Forum
Honored Contributor
15 years agoInterrupt Problem
Currently i am working on low level driver for Nand Flash in NIOS II.In my system following component are included DDR_SDRAM,JTAG_UART,PERFORMANCE COUNTER,PIO(LED),NFC(Nand flash controller).In my sy...
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- Did you mean alt_irq_enable(NFC_IRQ)? Because alt_irq_enable(NFC_BASE) can't be right. --- Quote End --- Lots of altera macros are written based on the _BASE address of the device. The macro then adds the offset to the proper register, masks off the correct bit, etc. I haven't checked, but I'd assume that alt_irq_enable() is such a macro (but generally their macros are ALL_CAPS). However, this does seem a little bit generic in that it implies that all devices have the interrupt enable bit in the same location. Is this so?