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/TMS570LS1227:_enable_interrupt_();编译器无法识别

Guru**** 2422790 points
Other Parts Discussed in Thread: HALCOGEN

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/614750/ccs-tms570ls1227-_enable_interrupt_-not-recognised-by-compiler

器件型号:TMS570LS1227
主题中讨论的其他器件:HALCOGEN

工具/软件:Code Composer Studio

大家好、

我遵循 HalCoGen 中的 example_etpwm_ECAP、这建议通过 _enable_interrupt_()启用中断;由于某种原因、编译器无法识别此函数。  我用  _enable_IRQ ()替代了它;它似乎起作用。

 

 这是正常的吗? 编译器应该识别该函数吗? 还是由于某种原因而弃用了它?

我看到 HalCoGen 文档确实描述了_enable_interrupt_();  函数、因此我感到困惑。

谢谢、

索非亚

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

    您好、Sofia、

    enable_interrupt_()在 sys_core.asm 中定义。 它用于清除 CPSR 寄存器中的 IRQ 位和 FIQ 位、以启用 IRQ 和 FIQ 中断。

    若要调用此函数、请包含头文件"sys_core.h"

    #include "sys_core.h"