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.

CC2340R5: Global interrupts enable

Part Number: CC2340R5


Tool/software:

I am writing code from scratch for CC2340R5 using ti-cgt-armllvm_3.2.2.LTS compiler.

I have installed SimpleLink Low Power F3 SDK.

I successfully run some LED toggling code on the eval board.

Now want to enable/disable global interrupts.

From what I fin in the SDK doc, IntMasterEnable() and IntMasterDisable() appear to be the functions to do so.

Where are they declared/defined?  Which #include do I need?

I search the whole SDK directories for them but only find references, no definition/declaration anywhere.

Regards,

Frederic

  • Hi Frederic,

    I wasn't able to find them either. My guess is they are a lower level function that the compiler finds external to the SDK.

    Generally I recommend to use HwiP_disable and HwiP_enable.

    Thanks,
    Toby

  • HwiP_disable/enable do build.  

    According to some code found on Github, HwiP_enable() would call IntMasterEnable().  Makes sense.

    If I'm not mistaken, HwiP_enable is located in some library (nortos_cc23x0r5.a in my case).  IntMasterEnable() is likely in there but not made available externally.

    Meanwhile, I had found __enable_irq() to compile but it might be a empty shell as it does not turn into anything in the assembly output.

    I can move on. Thanks!