Dear All,
we are working on CC1310 Launchpad, Downloaded code example SimpleLink CC13x0 SDK 1.60.00.21 (version 1.60.00.21).
I am using NORTOS rfEasylinkTx and rfEasyLinkRx examples for my Application.
I have a question from rfEasyLinkRx ,related to the code given below:
while(rxDoneFlag == false){ bool previousHwiState = IntMasterDisable(); /* * Tricky IntMasterDisable(): * true : Interrupts were already disabled when the function was * called. * false : Interrupts were enabled and are now disabled. */ IntMasterEnable(); Power_idleFunc(); IntMasterDisable(); if(!previousHwiState) { IntMasterEnable(); } /* Break if timeout flag is set */ if(rxTimeoutFlag == true){ /* Reset the timeout flag */ rxTimeoutFlag = false; /* RX timed out, abort */ if(EasyLink_abort() == EasyLink_Status_Success) { /* Wait for the abort */ while(rxDoneFlag == false){}; } break; } }
In this snippet we used:
IntMasterEnable();
Power_idleFunc();
IntMasterDisable();
if(!previousHwiState)
{
IntMasterEnable();
}
what this functions do, and is it neccessary to use this steps?