Prusa MINI Firmware overview
Collaboration diagram for Critical sections:

Used to protect short regions of code against concurrent access.