I am trying to configure GPIO3-19pin as a external input interrupt on AM3359 ICE rev2.1.
I configured the pin(GPIO3-19) as input, interrupt with rise edge. I succeeded to read the input status Hi and Lo of this pin when I input the voltage ON/OFF.
However interrupt action never occurred. I couldn't understand which is appropriate to configure interrupt by sys/bios or pin configure by standard API.
How can I configure correctly?
The excerption of my code is following.
My Condition is:
CCS:Ver5.5
SDK:Am335x_sysbios_ind_sdk_1.1.0.10
SYS/BIOS 6.41.4.54
**********************************************
int main(void)
{
GPIODirModeSet(SOC_GPIO_3_REGS, 19,GPIO_DIR_INPUT);
GPIOIntTypeSet(SOC_GPIO_3_REGS, 19,GPIO_INT_TYPE_RISE_EDGE);
/*****Create a HWI **************************************/
Hwi_Params hwiparams_ff;
UInt intNum;
Hwi_FuncPtr hwiFuncPointer = NULL;
Hwi_Handle tempHwiHandler_ff;
intNum = 62;
hwiFuncPointer = (Hwi_FuncPtr)Hwi_FFint;
Hwi_Params_init(&hwiparams_ff);
hwiparams_ff.arg = 1;
tempHwiHandler_ff = Hwi_create(intNum, hwiFuncPointer, &hwiparams_ff, NULL);
if (tempHwiHandler_ff == NULL)
{
System_printf("Hwi create failed");
}
Hwi_enableInterrupt(intNum);
}
/*****HWI****************************************/
static void Hwi_FFint(void)
{
LEDGPIOSetVal(0,16 ,1); //LED1 green ON
}