Prusa MINI Firmware overview
taskDISABLE_INTERRUPTS

task. h

Macro to disable all maskable interrupts.