Tool/software: TI-RTOS
The status is always returned as busy and the frequency does not change. What can I do in MY SOURCE file to prepare for a frequency change. "busyMutex" is declared as static in EasyLink.c. I need to be able to change frequency on the fly.
In my source file:
EasyLink_Status el_status;
LearnMode=TRUE;
el_status = EasyLink_setFrequency(LEARN_FREQUENCY); ///
In EasyLink.c:
EasyLink_Status EasyLink_setFrequency(uint32_t ui32Freq)
{
EasyLink_Status status = EasyLink_Status_Cmd_Error;
//uint64_t ui64FractFreq;
if(!configured)
{
return EasyLink_Status_Config_Error;
}
//Check and take the busyMutex
if(Semaphore_pend(busyMutex, 0) == FALSE)
{
return EasyLink_Status_Busy_Error;
}
/* Set the frequency */
EasyLink_cmdFs.frequency = (uint16_t)(ui32Freq / 1000000);