#include <ctl_api.h> int ctl_global_interrupts_disable(void);
ctl_global_interrupts_disable disables global interrupts and returns the return the enabled state of interrupts before they were enabled. You can pass the return value of ctl_global_interrupts_disable to ctl_global_interrupts_set to restore the previous global interrupt enable state.
ctl_global_interrupts_disable is provided in every implementation of the CrossWorks tasking library.