23.5.9. uC/OS-III Task Embed Sem
23.5.9.1. Overview
The example shows how to use uC/OS-III’s task embed sem。
23.5.9.2. Board Setting
No special settings are required
23.5.9.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 .