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.

[参考译文] CCS:在这里、我可以找到用于 C 项目的__enable_IRQ 和__disable_IRQ 源文件。

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/602270/ccs-where-do-i-find-__enable_irq-and-__disable_irq-source-files-for-c-projects

工具/软件:Code Composer Studio

在哪里可以找到 C 项目的_enable_IRQ 和_disable_IRQ 源文件。

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

    //启用中断
    __attribute__(( always_inline )静态内联 void __enable_IRQ (void)

    _asm (" cpsie i");


    //禁用中断
    __attribute__(( always_inline )静态内联 void __disable_IRQ (void)

    _asm (" cpsid i");