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.

[参考译文] RM48L952:如何禁用中断

Guru**** 2478485 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/689357/rm48l952-how-to-disable-interrupts

器件型号:RM48L952

我在查找有关如何禁用中断的任何类型的文档或示例时遇到困难。

我正在尝试擦除和写入闪存、因此我需要一种方法来防止代码的这些段期间发生中断。

感谢您的任何帮助、

Matt Laauer

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

    1.在器件级别:使用在 sys_core.asm 中定义的_disable_IRQ_interrupt_()
    2.在 VIM 电平中:将所有位复位为零(除了前2个 VIM 通道):vimREG->REQMASKSET0/2/3/4 = 0x0