How to diable and enable all Interrupts??

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

cross mob
Not applicable
Hi,

how can I disable or enable all Interrupts at ones.

In the core_cmFunc.h are tow functions which proiveds exactly this task.

__disable_irq()
__enable_irq()

But i can use them because there are some defines missing __CC_ARM and __GNUC__.

Why are this defines missing? Or can someone give me an example how to solve this problem?
0 Likes
1 Reply
Not applicable
Hi,

The __disable_irq() function sets the PRIMASK bit and it works for me with the XMC1300 boot kit and DAVE platform. Alternatively, you can use the __set_PRIMASK(uint32_t priMask) function to have the same effect.

Where did you encounter the missing defines?
0 Likes