31.5.10. uC/OS-III Task Embed Sem
31.5.10.1. Overview
The example shows how to use uC/OS-III’s task embed sem。
31.5.10.2. Board Setting
No special settings are required
31.5.10.3. Running the example
There are two tasks using TASK_SEM to realize the synchronization. The float task will pend until the led task post the float task’s TASK_SEM. When the example runs successfully, following message is displayed in the terminal:
float task wait Task Sem .
led0 task task sem.
float task get Task Sem .
float task wait Task Sem .
led0 task task sem.
float task get Task Sem .
float task wait Task Sem .
led0 task task sem.
float task get Task Sem .
float task wait Task Sem .
led0 task task sem.
float task get Task Sem .
float task wait Task Sem .