This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] MSPM0L1306:如何在一段时间内禁用现有中断、然后启用它们

Guru**** 2431370 points
Other Parts Discussed in Thread: SYSCONFIG

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1349613/mspm0l1306-how-to-do-disable-existing-interrupts-for-some-time-and-then-enable-them

器件型号:MSPM0L1306
主题中讨论的其他器件:SysConfig

尊敬的香槟:

我是为我们的客户提出这个问题。

假设用户已经在 NVIC_EnableIRQ ()的初始化中启用了一些中断,那么用户如何禁用所有这些启用的中断一段时间,然后启用它们一次?

在 MSP430和 C2000 F28x 中有些采用了以下模式。

Dint;

EINT;

是否有适合用户的相应简单 API 或 C/内在函数代码?