Solutions similar to a typical mutex in a real-time OS, but without the need for the OS. Designed for bare-metal microcontrollers.

If multiple sections of code need to access the same resource (such as a data bus) only the first to grab the mutex will be permitted. Subsequent calls to attempt to take the mutex will fail but not block the calling code. This makes the mux compatible with cooperative multi-tasking systems...

Sign Up For Full Access
Members gain full access to the Prosource library with dozens of source files for ARM Cortex, ATMega, PIC processors as well as desktop and embedded Linux systems. Solutions for bootloaders, Buildroot and Yocto targets as well as guided articles on embedded development to gain critical knowledge in new systems and speed up development.
Files size: 2.99 KB
RAM usage:4 bytes for master, 8 bytes per lock
Avg Flash:Not Set
Source #1 - Members Only
Source #2 - Members Only