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.

CC3120: CC3120 Host Driver Non-OS

Part Number: CC3120

Hi 

I have managed to port the example of the CC3120 Host Driver over to another Arm Processor. I wont be using an OS just a loop and interrupt. I have it almost working, except I have to define SL_POLLING_MODE_USED to get my callbacks, I think its something to do with the semaphore handling. 

I am a bit confused by the semaphore and mutex functions (renamed to my format)  in cc_pal.c/cc_pal.h/user.h: 

#define sl_SyncObjCreate(pSyncObj,pName) SL_PAL_SemaphoreCreateHandle(pSyncObj)
#define sl_SyncObjDelete(pSyncObj) SL_PAL_SemaphoreDeleteHandle(pSyncObj)
#define sl_SyncObjSignal(pSyncObj) SL_PAL_SemaphorePostHandle(pSyncObj)
#define sl_SyncObjSignalFromIRQ(pSyncObj) SL_PAL_SemaphorePostHandle(pSyncObj)
#define sl_SyncObjWait(pSyncObj,Timeout) SL_PAL_SemaphorePending((*(pSyncObj)),Timeout)

#define sl_LockObjCreate(pLockObj, pName) SL_PAL_MutexCreateHandle(pLockObj)
#define sl_LockObjDelete(pLockObj) SL_PAL_MutexDeleteHandle(pLockObj)
#define sl_LockObjLock(pLockObj,Timeout) SL_PAL_MutexUnlock(*(pLockObj))
#define sl_LockObjUnlock(pLockObj) SL_PAL_MutexLock(*(pLockObj))

When I remove them, I get build errors, so I still have them but all they do is return 0 (success).  Do I still need these if i am running it as a non-OS? If they have to remain, how should I be implementing the semaphores? I wont be using the TI Drivers, so I have no access to semaphoreP.h or MutexP.h. 

Searched through all of the documentation.... I can seem to find anything. 

Thanks in advance 

Dom