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: gpioToggleOutput not working

Part Number: CC1310

Hi Team,

My customer found the function gpioToggleOutput didn't work. His goal: Get the IO status from init code, reverse if it is 1, and read it for overseeing in execution code.

The code in initiation:

AUXIO_I_ALARM_INPUT_PIN :IO_5, the status was high.

U16 InitSigle;

gpioGetInputValue(AUXIO_I_ALARM_INPUT_PIN; InitSigle);

if (InitSigle == 1) {

   gpioToggleOutput(AUXIO_I_ALARM_INPUT_PIN);

}

The code in execution: 

U16 alarm_InputValue;

gpioGetInputValue(AUXIO_I_ALARM_INPUT_PIN;alarm_InputValue);

output.alarmInputValue=alarm_InputValue;

And the result was: the AUXIO_I_ALARM_INPUT_PIN was reversed in init code, but not changed in execution code.