Tool/software: TI-RTOS
What is the difference between useModule and loadPackage, from below comments, useModule means load and use, loadPackage just load, can I understand "load" means link the related library, but what is the "use" means?
var devType = "c6657"
/* Load the OSAL package */
var osType = "tirtos"
var Osal = xdc.useModule('ti.osal.Settings');
Osal.osType = osType;
Osal.socType = devType;
/* Load the Board package and set the board name */
var Board = xdc.loadPackage('ti.board');
Board.Settings.boardName = "evmC6657";
/* Load Profiling package */
var Utils = xdc.loadPackage('ti.utils.profiling');
/* Load the gpio package */
var Gpio = xdc.loadPackage('ti.drv.gpio');
Gpio.Settings.enableProfiling = true;
Gpio.Settings.socType = devType;
/* Load the uart package */
var Uart = xdc.useModule('ti.drv.uart.Settings');
Uart.socType = devType;
var System = xdc.useModule('xdc.runtime.System');
SysStd = xdc.useModule('xdc.runtime.SysStd');
System.SupportProxy = SysStd;
/* Load and use the CSL packages */
var Csl = xdc.useModule('ti.csl.Settings');
Csl.deviceType = devType;