Hi jayesh, donq!
Sorry I was on a trip yesterday.
@jayesh:
--- Quote Start ---
so its right,problem occurs because of other thing not this.
--- Quote End ---
This might be true, I can't know it for sure.
But
alt_irq_enable(nfc_base); is
not the right call to
alt_irq_enable().
Take a look the HAL API Reference.
--- Quote Start ---
int alt_irq_enable (alt_u32 id)
--- Quote End ---
And with
id it is meant to use <YOUR_MODULE_NAME>_IRQ. This is the
id which also specifies the priority of your interrupt, at least with the LEGACY Interrupt API.
I am pretty sure with this, because I've used the interrupt API quite a time.
@donq:
--- Quote Start ---
Lots of altera macros are written based on the _BASE address of the device.
--- Quote End ---
That's true. But in general all MACROS are defined with big letters. And
alt_irq_enable() isn't. It is a function call.
--- Quote Start ---
but I'd assume that alt_irq_enable() is such a macro
--- Quote End ---
No, it isn't. Maybe it is a INLINE function, I've to check on monday at work. But it is not a MACRO.
Have a nice weekend!
Philipp