[keystone-rtos/edma3_lld.git] / examples / edma3_driver / evmtda2xx / rtsc_config / edma3_drv_bios6_tda2xx_st_sample.cfg
1 /*use modules*/
2 var Task = xdc.useModule ("ti.sysbios.knl.Task");
3 var BIOS = xdc.useModule ("ti.sysbios.BIOS");
4 var ECM = xdc.useModule ("ti.sysbios.family.c64p.EventCombiner");
5 var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
6 var Startup = xdc.useModule ("xdc.runtime.Startup");
7 var System = xdc.useModule ("xdc.runtime.System");
8 var Cache = xdc.useModule('ti.sysbios.family.c66.Cache');
9 var halCache = xdc.useModule('ti.sysbios.hal.Cache');
10 var InitXbar = xdc.useModule("ti.sysbios.family.shared.vayu.IntXbar");
12 ECM.eventGroupHwiNum[0] = 7;
13 ECM.eventGroupHwiNum[1] = 8;
14 ECM.eventGroupHwiNum[2] = 9;
15 ECM.eventGroupHwiNum[3] = 10;
17 /* USE EDMA3 Sample App */
18 //xdc.loadPackage('ti.sdo.edma3.drv.sample');
20 halCache.CacheProxy = Cache;
22 /***********************************************
23 * CLOCK Module Configuraion *
24 ***********************************************/
25 var Clock = xdc.useModule("ti.sysbios.knl.Clock");
26 Clock.tickMode = Clock.TickMode_PERIODIC;
27 Clock.tickSource = Clock.TickSource_USER;
29 /* allocate timer 5 to DSP1 */
30 var TimerSupport = xdc.useModule('ti.sysbios.family.shared.vayu.TimerSupport');
31 TimerSupport.availMask = 0x0020;
33 /***********************************************
34 * Timer Module Configuraion *
35 ***********************************************/
36 /* Turn off the timer frequency check. The DSP timer does not run when
37 * the host is halted because of the emulation suspend signal.
38 */
39 var Timer = xdc.useModule('ti.sysbios.timers.dmtimer.Timer');
41 Timer.intFreq.hi = 0;
42 /* system clock runs at 38.4 MHz */
43 Timer.intFreq.lo = 38400000;
45 var timerParams = new Timer.Params();
46 timerParams.period = 1000;
47 timerParams.twer.ovf_wup_ena = 1;
48 timerParams.tiocpCfg.emufree = 1;
50 Timer.create(5, '&mainDsp1TimerTick', timerParams);
52 var segPlacement = xdc.loadCapsule("app_mem_seg_placement.cfg");
53 segPlacement.init();