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.

CC1310: wake up from standby mode form GPIO Pin and back directly to execute the sequence after the sleep mode without waiting standby time out.

Part Number: CC1310

Hello,

I am working on a project to reduce power consumption in TI-CC1312 and wake up periodic or by GPIO interrupt. 

I am using pinStandby example and add GPIO pin interrupt to wake up from sleep mode(standby).

after configuring GPIO pin and its callback function.

I noticed when the button has pressed the callback function was executed successfully. but the system does not return back to its normal operation to execute the sequence after wakeup.

It must sleep by the value passed to sleep function.

I'd like to ask if there is any way to wake up directly from sleep and neglect the time (standbyDuration)

while(1) {


 /* Sleep, to let the power policy transition the device to standby */
 sleep(standbyDuration);

 /* Read current output value for all pins */
 currentOutputVal = PIN_getPortOutputValue(hPin);

 /* Toggle the LEDs, configuring all LEDs at once */
 PIN_setPortOutputValue(hPin, ~currentOutputVal);
}