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.

Dependencies:   mbed-rtos mbed

Download repository: zip gz

Files at revision 0:6d2b4755a904

Name Size Actions
[up]
main.cpp 863 Revisions Annotate
mbed-rtos.lib 65 Revisions Annotate
mbed.bld 65 Revisions Annotate