Other Parts Discussed in Thread: CC3100
Hello Team,
Could I directly use the CC3100 sl_SyncObj/sl_LockObj implementation of non os environment for CC3120 or We will have to do some changes?
I have just copied sl_SyncObj/sl_LockObj implementation from CC3100 into CC3120 for nonos environment (nonos.h/nonos.c) and compile it and got error on
this
part of code (inside of function _SlNonOsSemGet).
It is showing error that IsCmdRespWaited and _SlNonOsMainLoopTask() undefined. So I have changed "IsCmdRespWaited" (CC3100) by WaitForCmdResp (CC3120) and also changed "_SlNonOsMainLoopTask()"(CC3100) by "_SlNonOsHandleSpawnTask()"(CC3120) then code properly compiled. Do you confirmed that what I did changes will work on CC3120 without any problem or is there any more changes required?
/* If we are in cmd context and waiting for its cmd response * do not handle spawn async events as the global lock was already taken */ if (FALSE == g_pCB->IsCmdRespWaited) { (void)_SlNonOsMainLoopTask(); }
Kindly help me out.
Regards,
Shubham Kant Dubey