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_(); not recognised by compiler

Part Number: TMS570LS1227
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Hi all,

I am following example_etpwm_ecap in HalCoGen, which suggests enabling interrupts through _enable_interrupt_(); For some reason this function not recognised by the compiler.  I have substituted it by  _enable_IRQ(); and it seems to work.

 

 Is this normal? Should the compiler recognise the function? Or is it deprecated for some reason?

I see that HalCoGen the documentation does describe the _enable_interrupt_();  function, hence my confusion.

Thanks,

Sofia

  • Hello Sofia,

    The _enable_interrupt_() is defined in sys_core.asm. It is used to clear the IRQ bit and FIQ bit in CPSR register to enable the IRQ and FIQ interrupts.

    To call this function, please include the header file: "sys_core.h"

    #include "sys_core.h"