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.

HALCoGen TMS570LS31x example_rtiBlinky.c中_enable_IRQ()在哪里定义了?

Other Parts Discussed in Thread: TMS570LS3137, HALCOGEN

各位大神,

我在使用gcc编译tms570ls3137的示例程序example_rtiBlinky.c,其中_enable_IRQ()报错没有定义,请问在哪个文件可以找到?

谢谢!

  • 应该是在sys_core.asm文件中。HALCoGen中的示例可能尚未使用模板sys_core.asm文件的更新进行更新。您可以尝试将_enable_IRQ替换为_enable_interrupts

    _enable_interrupt_在sys_core.asm中定义,并且启用了IRQ和FIQ。确保在使用汇编功能的C文件中包含sys_core.h。
    _enable_IRQ()是编译器的固有函数。您需要在ARM模式下进行编译才能使用此内在函数。