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.

Idle function in pinInterrupt with CC2650DK

When using the example code of pinInterrupt in the cc2650DK kit, it works well. CCS v6.1 is used.

When I add an idle function using the GUI, it is supposed to call the idle function when the keys are not pressed, but it does work.

A breakpoint is set onto a the idle function, it has never been called.

the setup is as follows after using the GUI with cfg file:

in the pinInterrupt.cfg, the following code is added to the bottom of the cfg file.

Idle.idleFxns[0] = "&idle_fx";

 

in the pinInterrupt.c , the following function is added

void idle_fx(void)

{

uint32_t currVal = 0;

currVal = PIN_getPortOutputValue(ledPinHandle);

PIN_setPortOutputValue(ledPinHandle, ~currVal);

}

 

Please let me know if I have missed anything to set it right.

 

Regards,

Thomas