index b3f81d2a1bc381562ed59fb38c5253dc47a0a297..18e3294b669ba5b3347e55a701c4f3ee9b70127f 100644 (file)
xdc.useModule('ti.sdo.utils.MultiProc');
-/* Added Per Recommendation from CATAPPS-171 */
-var gicHwi = xdc.useModule('ti.sysbios.family.arm.gic.Hwi');
-gicHwi.enableSecureMode = false;
-gicHwi.BPR = 3;
-gicHwi.NUM_PRIORITY_BITS = 4;
+
+var HsDevBuild = environment["HsDevBuild"];
+var hsDevBuild = (HsDevBuild == "1" ? true : false);
+if (hsDevBuild == true)
+{
+ /* Added per recommendation from CATAPPS-171 */
+ /* HS device build */
+ var gicHwi = xdc.useModule('ti.sysbios.family.arm.gic.Hwi');
+ gicHwi.enableSecureMode = false;
+ gicHwi.BPR = 3;
+ gicHwi.NUM_PRIORITY_BITS = 4;
+}
/*
* ======== IPC Configuration ========
var ProjName = environment["ProjName"];
var topo = ProjName.replace( /pa_([a-z])[0-9]+_.*/, "$1");
-var AudioClockSim = environment["AudioClockSim"];
-var acSimBuild = (AudioClockSim == "1" ? true : false);
-
-if (acSimBuild == true)
-{
- //
- // IPC simulation
- //
-
- /* Add timer to simulate Rx audio IPC message */
- var timer0Params = new Timer.Params();
- timer0Params.instance.name = "timerRxAudio";
- timer0Params.period = 5330;
- timer0Params.startMode = xdc.module("ti.sysbios.interfaces.ITimer").StartMode_USER;
- Program.global.timerRxAudio = Timer.create(1, null, timer0Params);
-
- /* Add timer to simulate Tx audio IPC message */
- var timer1Params = new Timer.Params();
- timer1Params.instance.name = "timerTxAudio";
- timer1Params.startMode = xdc.module("ti.sysbios.interfaces.ITimer").StartMode_USER;
- timer1Params.period = 5330;
- Program.global.timerTxAudio = Timer.create(2, null, timer1Params);
-
- /* Add semaphore for Rx audio DMA */
- var semaphore0Params = new Semaphore.Params();
- semaphore0Params.instance.name = "semaphoreRxAudio";
- Program.global.semaphoreRxAudio = Semaphore.create(null, semaphore0Params);
-
- /* Add semaphore for Tx audio DMA */
- var semaphore1Params = new Semaphore.Params();
- semaphore1Params.instance.name = "semaphoreTxAudio";
- Program.global.semaphoreTxAudio = Semaphore.create(null, semaphore1Params);
-}
/* Set default stack size for tasks */
Task.defaultStackSize = 2048;