Platform: MS XP SP3, CCS 5.4.0, MSP-EXP430F5438 (MSP430F5438A chip installed) and the MSP-FET430UIF (USB)
I created a new CCS SYS/BIOS project that has the following code in the template that was created automatically:
* ======== Idle.c ========
* Implementation of Idle_loop.
*/
#include <xdc/std.h>
#include <ti/sysbios/BIOS.h>
#include <ti/sysbios/hal/Core.h>
#include <ti/sysbios/hal/Hwi.h>
#include "package/internal/Idle.xdc.h"
/*
* ======== Idle_loop ========
*/
Void Idle_loop(UArg arg1, UArg arg2)
{
while (TRUE) {
Idle_run();
}
}
/*
* ======== Idle_run ========
*/
Void Idle_run()
{
Int i;
UInt coreId;
if (BIOS_smpEnabled == TRUE) {
coreId = Core_getId();
}
else {
coreId = 0;
}
for (i = 0; i < Idle_funcList.length; i++) {
if (Idle_coreList.elem[i] == coreId) {
Idle_funcList.elem[i]();
}
}
}
I have no notion of why "coreId, Core_getId(), Idle_funcList.length, Idle_coreList.elem[i] ,or Idle_funcList.elem[i]();" are incluuded in an MSP430 single core project, or what this code is supposed to do. Can someone explain?