Hello
I am trying to capture an external interrupt to pin GPIO3_6 pin at rising edge to ISR . I am not been able to capture the interrupt to ISR. Below is my code for the initialisation of interrupt on AM3358 Starter Kit.. Please tell me why i am not been able to capture interrupt,where i am wrong...
void CPUirqe()
{
asm( " dsb \n\t"
" mrs r0, CPSR\n\t"
" bic r0,0x#80\n\t"
" msr CPSR,r0");
}
void IntMasterIRQEnable()
{
CPUirqe();
}
void main()
{
GPIO3ModuleClkConfig();
GPIO3Pin6PinMuxSet();
GPIOModuleEnable(GPIO_3_INSTANCE_ADDRESS);
GPIOMduleReset(GPIO_3_INSTANCE_ADDRESS);
GPIODirModeSet(GPIO_3_INSTANCE_ADDRESS,6,GPIO_DIR_INPUT);
IntAINTCInit();
IntMasterIRQEnable();
IntRegister(SYS_INT_GPIOINT3A,ISR);
IntPrioritySet(SYS_INT_GPIOINT3A,1,AINTC_HOSTINT_ROUTE_IRQ);
IntSystemEnable(SYS_INT_GPIOINT3A);
while(1);
}
void ISR()
{
....
....
}
Please help me..
Thanks