I have been looking through some of the demo code for K64f when using FreeRTOS. I notice one of the example code enables global interrupts before the RTOS scheduler starts. Using this "EnableGlobalIRQ(0)" function.
I don't understand why interrupts need to be enable before the scheduler starts. If anything this can lead to alot of problems.
To my understanding FreeRTOS will enable interrupts when the scheduler starts.
Can anyone give some insight into this?