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.

RTOS/LAUNCHXL-F28379D: Global.h include and driverlib API function.

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Hello,

I would like to ask two questions. Here they are:

1) I noticed that there is bool Interrupt_enableMaster(void) function in driverlib. I know that void Interrupt_enable(uint32_t interruptNumber) just enables specified interrupt but I don't understand what Interrupt_enableMaster does. I have never used Interrupt_enableMaster in my non-rtos projects and everything was working fine. So, my question - what that function does?

2) Second question is about RTOS. In TI RTOS Workshop I read in Swi chapter:

but, to be honest, I created simple rtos project with I2C interrupt and in my main.c file I put just two headers important to RTOS: xdc/std.h and ti/sysbios/BIOS.h. My application is running fine without global.h so why that header is described as very important in TI-RTOS workshop?

I appreciate any help.

BR,
Dawid.

  • 1. Interrupt_enableMaster() clears the global interrupt mask bit, INTM. It's in the ST1 register in the CPU if you want to look for it. BIOS does already does this for you, so you didn't need to in your code to get your interrupts to work.

    2. As the workshop says, the global.h file contains handles to BIOS objects. For example, if you created a Semaphore in the .cfg file, you would need to include the global.h file to be able use the handle for that Semaphore object in your code. You probably just didn't try to use any of these handles in your code, so the global.h wasn't needed.

    Whitney

  • Thank you Whitney, I understand that now.