How to disable/enable the interrupts?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MaxECU
Employee
Employee
Welcome!
I would like to be able to call a function to disable/enable the interrupts on XMC1x00. How to do?

Thanks in advance.
0 Likes
1 Reply
Not applicable
Hi MaxECU,

Do you mean the global interrupt enable and disable?
You can use the CMSIS instruction:
__disable_irq();
__enable_irq();
0 Likes