Hi friends,
I am working on starter Kit with SDKv7. I wrote one handler.c file I am able to build it but while inserting it
as a module I am getting problem.
//////////////////////////////// code part ///////////////////////////////////////////////////////////////////
result = request_irq(External_nmi, (irq_handler_t) extn_irq_handler, IRQF_DISABLED, "EXTn_irq_handler", NULL);
if(result)
{
printk(KERN_INFO "Failed to get requested interrupt");
return 0;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////
request_irq( ) function is not returning '0'.
so getting Failed to get requested interrupt. When this situation arises??
I am using NMI interrupt pin(irq num = 7) also given on Kit as a SW6.
Want to toggle LED D2 which is on GPIO1_5 inside handler, but not able to give exact base address of this PIN.
I find base address of GPIO1 is 0x4804_C000 to 0x4804_CFFF. but don't know how to drive exact address for
Particular pin.
Please suggest me the solutions
Thanks in advance,
Vishal.