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.

CC2650 Sensor Controller Interface Driver - scifStopTasksNbl will stop Event Handler Code Trigger?



Hello,

I have developed a Sensor Controller Task that employs the Initialization Code block, the Event Handler Code block and the Termination Code block. The Event Handler Code Block looks like the following:

if(state.readSensors == 1) {
  // read sensors
  // disable sensors
  state.readSensors = 0;
delay = delay1; } else { // enable sensors state.readSensors = 1;
delay = delay2; } if(cancelTrigger == 0) { evhSetupTrigger(0, delay, exponent); }

So it triggers continuously Event Handler Code Iterations. The Termination Code consists of the following:

state.readSensors = 1;
state.cancelTrigger = 1;


The intention is to avoid duplicate code to disable the sensors in the Termination Code block, since AUX RAM space is really limited. If I call the driver interface function to stop a task, will it execute a last Event Handler Code Iteration after the Termination Code has been executed?