This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

c6678 gpio interrupt

Hi,

I have c6678, sys/bios 6.32.05.54. I am trying to create an gpio interrupt.

I set gpio 15 as output and gpio 14 as input and I connect the two gpios by wire.

 

// Open the CSL GPIO Module 0

hGpio =CSL_GPIO_open (0);

//Output gpio 15

CSL_GPIO_setPinDirOutput (hGpio, 15);

//Input gpio 14

CSL_GPIO_setPinDirInput (hGpio, 14);

CSL_GPIO_setFallingEdgeDetect (hGpio, 14);

CSL_GPIO_bankInterruptEnable (hGpio,0);

 

//Create HWi

 Hwi_Params hwiParams;

 Error_Block eb;

 

  Hwi_Params_init(&hwiParams);

  Error_init(&eb);

 

  hwiParams.arg = 14;

  hwiParams.eventId = 88; //Gpio 14 event number from data manual

  hwiParams.maskSetting = Hwi_MaskingOption_SELF;

myHwi = Hwi_create(1, myIsr, &hwiParams, &eb);

if (Error_check(&eb)) {

// handle the error

  }

 

//Change gpio 15 from 1 to 0

CSL_GPIO_setOutputData (hGpio, 15);

CSL_GPIO_clearOutputData (hGpio, 15);

I don't get an Interrupt. What am I missing?

Thanks

Aviv