Example of mutex usage to protect shared access to stdio (printf). Note that this kind of protection is needed in case of Cortex-M0 MCU-s which use C microlib. Larger MCUs (like Cortex M3), however, use the C stdlib which already provides a mutex to protect access to stdio.
File List
main.cpp [code] |
Generated on Wed Jul 20 2022 14:31:43 by 1.7.2