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.

RTOS/CC2640: an example to see how semaphore works on CC2640

Part Number: CC2640


Tool/software: TI-RTOS

I am trying to comprehend mutex of TIRTOS on CC2640.

there is an example in SKD named mutex_cc2640r2_launchpad, which uses 2 tasks to modify valuable resource. that valuable is put between semaphore_pend and semaphore_post (lock and unlock to access that variable) 

in order to inspect the effect, I removed the semaphore line in both tasks, and the LOG still shows the same result as previous (2 tasks in turn access and increase variable resource)

So, how can I see the effect of semaphore?