May 2020
Intermediate to advanced
524 pages
13h 35m
English
In multitasking systems, it is very common for the tasks to cooperate and share the available resources of the target microcontroller. For example, various tasks may want to share the communications interfaces that can only be used by one task at a time. Semaphores and mutexes are used to synchronize the access to shared resources in a system. In this chapter, the FreeRTOS semaphore and mutex application program interface functions are described in detail. Several real-time and multitasking tested projects are given in this chapter with the complete program listings and full documentation in order to demonstrate how to create binary and counting semaphores and mutexes, how to give and take semaphores and ...
Read now
Unlock full access