⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 app.tcf

📁 G723.1在DM642上的实现代码
💻 TCF
字号:
load(utils.findFile('assert.tci'));	 // load assert support// seed file for C:\ti\referenceframeworks\apps\rf5\projects\teb6416\app.cdb.a02432: c:\ti\c6000\bios\include\4.80.208\c64xx.cdbprog.load("c:/ti/c6000/bios/include/c64xx.cdb");// value changed://    old  ISRAM.enter a user defined heap identifier label = 0//    new  ISRAM.enter a user defined heap identifier label = 1prog.module("MEM").instance("ISRAM").enableHeapLabel = 1// value changed://    old  ISRAM.heap size = 32768//    new  ISRAM.heap size = 8192prog.module("MEM").instance("ISRAM").heapSize = 8192// add instance MEM.SDRAMSDRAM = prog.module("MEM").create("SDRAM");// value changed://    old  SDRAM.space = "data"//    new  SDRAM.space = "code/data"prog.module("MEM").instance("SDRAM").space = "code/data"// value changed://    old  SDRAM.enter a user defined heap identifier label = 0//    new  SDRAM.enter a user defined heap identifier label = 1prog.module("MEM").instance("SDRAM").enableHeapLabel = 1// value changed://    old  SDRAM.len = 0//    new  SDRAM.len = 16777216prog.module("MEM").instance("SDRAM").len = 16777216// value changed://    old  SDRAM.base = 0//    new  SDRAM.base = -2147483648prog.module("MEM").instance("SDRAM").base = -2147483648// value changed://    old  SDRAM.comment = "<add comments here>"//    new  SDRAM.comment = "This object defines space for the DSP's off-chip memory"prog.module("MEM").instance("SDRAM").comment = "This object defines space for the DSP's off-chip memory"// add instance TSK.tskRxSplittskRxSplit = prog.module("TSK").create("tskRxSplit");// add instance TSK.tskTxJointskTxJoin = prog.module("TSK").create("tskTxJoin");// add instance TSK.tskProcesstskProcess = prog.module("TSK").create("tskProcess");// add instance TSK.tskControltskControl = prog.module("TSK").create("tskControl");// add instance LOG.logTracelogTrace = prog.module("LOG").create("logTrace");// add instance STS.stsTime0stsTime0 = prog.module("STS").create("stsTime0");// add instance STS.stsTime1stsTime1 = prog.module("STS").create("stsTime1");// add instance STS.stsTime2stsTime2 = prog.module("STS").create("stsTime2");// add instance STS.stsTime3stsTime3 = prog.module("STS").create("stsTime3");// add instance STS.stsTime4stsTime4 = prog.module("STS").create("stsTime4");// add instance STS.stsTime5stsTime5 = prog.module("STS").create("stsTime5");// add instance STS.stsTime6stsTime6 = prog.module("STS").create("stsTime6");// add instance STS.stsTime7stsTime7 = prog.module("STS").create("stsTime7");// add instance STS.stsTime8stsTime8 = prog.module("STS").create("stsTime8");// add instance STS.stsTime9stsTime9 = prog.module("STS").create("stsTime9");// add instance UDEV.udevCodecudevCodec = prog.module("UDEV").create("udevCodec");// add instance DIO.dioCodecdioCodec = prog.module("DIO").create("dioCodec");// value changed://    old  ISRAM.heap identifier label = prog.decl("segment_name", "asm")//    new  ISRAM.heap identifier label = prog.decl("INTERNALHEAP")prog.module("MEM").instance("ISRAM").heapLabel = prog.decl("INTERNALHEAP")// value changed://    old  SDRAM.heap identifier label = prog.decl("segment_name", "asm")//    new  SDRAM.heap identifier label = prog.decl("EXTERNALHEAP")prog.module("MEM").instance("SDRAM").heapLabel = prog.decl("EXTERNALHEAP")// value changed://    old  GBL.DSP Speed In MHz (CLKOUT) = 600.0000//    new  GBL.DSP Speed In MHz (CLKOUT) = 501.0000prog.module("GBL").CLKOUT = 501.0000// value changed://    old  MEM.Stack Size (MAUs) = 1024//    new  MEM.Stack Size (MAUs) = 4096prog.module("MEM").STACKSIZE = 4096// value changed://    old  TSK.Stack segment for dynamic tasks = prog.get("ISRAM")//    new  TSK.Stack segment for dynamic tasks = prog.get("SDRAM")prog.module("TSK").STACKSEG = prog.get("SDRAM")// value changed://    old  tskRxSplit.Priority = 1//    new  tskRxSplit.Priority = 2prog.module("TSK").instance("tskRxSplit").priority = 2// value changed://    old  tskRxSplit.Task function = prog.decl("FXN_F_nop")//    new  tskRxSplit.Task function = prog.decl("thrRxSplitRun")prog.module("TSK").instance("tskRxSplit").fxn = prog.decl("thrRxSplitRun")// value changed://    old  tskRxSplit.comment = "<add comments here>"//    new  tskRxSplit.comment = "Rx Split Task"prog.module("TSK").instance("tskRxSplit").comment = "Rx Split Task"// value changed://    old  tskTxJoin.Priority = 1//    new  tskTxJoin.Priority = 2prog.module("TSK").instance("tskTxJoin").priority = 2// value changed://    old  tskTxJoin.Task function = prog.decl("FXN_F_nop")//    new  tskTxJoin.Task function = prog.decl("thrTxJoinRun")prog.module("TSK").instance("tskTxJoin").fxn = prog.decl("thrTxJoinRun")// value changed://    old  tskTxJoin.comment = "<add comments here>"//    new  tskTxJoin.comment = "Tx Join Task"prog.module("TSK").instance("tskTxJoin").comment = "Tx Join Task"// value changed://    old  tskProcess.Priority = 1//    new  tskProcess.Priority = 2prog.module("TSK").instance("tskProcess").priority = 2// value changed://    old  tskProcess.Task function = prog.decl("FXN_F_nop")//    new  tskProcess.Task function = prog.decl("thrProcessRun")prog.module("TSK").instance("tskProcess").fxn = prog.decl("thrProcessRun")// value changed://    old  tskProcess.comment = "<add comments here>"//    new  tskProcess.comment = "Data Processing Task"prog.module("TSK").instance("tskProcess").comment = "Data Processing Task"// value changed://    old  tskControl.Priority = 1//    new  tskControl.Priority = 2prog.module("TSK").instance("tskControl").priority = 2// value changed://    old  tskControl.Task function = prog.decl("FXN_F_nop")//    new  tskControl.Task function = prog.decl("thrControlRun")prog.module("TSK").instance("tskControl").fxn = prog.decl("thrControlRun")// value changed://    old  tskControl.comment = "<add comments here>"//    new  tskControl.comment = "Control Task"prog.module("TSK").instance("tskControl").comment = "Control Task"// value changed://    old  LOG_system.buflen (words) = 64//    new  LOG_system.buflen (words) = 256prog.module("LOG").instance("LOG_system").bufLen = 256// value changed://    old  logTrace.buflen (words) = 64//    new  logTrace.buflen (words) = 256prog.module("LOG").instance("logTrace").bufLen = 256// value changed://    old  logTrace.comment = "<add comments here>"//    new  logTrace.comment = "default LOG object for application messages"prog.module("LOG").instance("logTrace").comment = "default LOG object for application messages"// value changed://    old  stsTime0.host operation = "Nothing"//    new  stsTime0.host operation = "A * x"prog.module("STS").instance("stsTime0").operation = "A * x"// value changed://    old  stsTime0.unit type = "Not time based"//    new  stsTime0.unit type = "High resolution time based"prog.module("STS").instance("stsTime0").unitType = "High resolution time based"// value changed://    old  stsTime0.comment = "<add comments here>"//    new  stsTime0.comment = "STS object 0 for execution time measurements"prog.module("STS").instance("stsTime0").comment = "STS object 0 for execution time measurements"// value changed://    old  stsTime1.host operation = "Nothing"//    new  stsTime1.host operation = "A * x"prog.module("STS").instance("stsTime1").operation = "A * x"// value changed://    old  stsTime1.unit type = "Not time based"//    new  stsTime1.unit type = "High resolution time based"prog.module("STS").instance("stsTime1").unitType = "High resolution time based"// value changed://    old  stsTime1.comment = "<add comments here>"//    new  stsTime1.comment = "STS object 1 for execution time measurements"prog.module("STS").instance("stsTime1").comment = "STS object 1 for execution time measurements"// value changed://    old  stsTime2.host operation = "Nothing"//    new  stsTime2.host operation = "A * x"prog.module("STS").instance("stsTime2").operation = "A * x"// value changed://    old  stsTime2.unit type = "Not time based"//    new  stsTime2.unit type = "High resolution time based"prog.module("STS").instance("stsTime2").unitType = "High resolution time based"// value changed://    old  stsTime2.comment = "<add comments here>"//    new  stsTime2.comment = "STS object 2 for execution time measurements"prog.module("STS").instance("stsTime2").comment = "STS object 2 for execution time measurements"// value changed://    old  stsTime3.host operation = "Nothing"//    new  stsTime3.host operation = "A * x"prog.module("STS").instance("stsTime3").operation = "A * x"// value changed://    old  stsTime3.unit type = "Not time based"//    new  stsTime3.unit type = "High resolution time based"prog.module("STS").instance("stsTime3").unitType = "High resolution time based"// value changed://    old  stsTime3.comment = "<add comments here>"//    new  stsTime3.comment = "STS object 3 for execution time measurements"prog.module("STS").instance("stsTime3").comment = "STS object 3 for execution time measurements"// value changed://    old  stsTime4.host operation = "Nothing"//    new  stsTime4.host operation = "A * x"prog.module("STS").instance("stsTime4").operation = "A * x"// value changed://    old  stsTime4.unit type = "Not time based"//    new  stsTime4.unit type = "High resolution time based"prog.module("STS").instance("stsTime4").unitType = "High resolution time based"// value changed://    old  stsTime4.comment = "<add comments here>"//    new  stsTime4.comment = "STS object 4 for execution time measurements"prog.module("STS").instance("stsTime4").comment = "STS object 4 for execution time measurements"// value changed://    old  stsTime5.host operation = "Nothing"//    new  stsTime5.host operation = "A * x"prog.module("STS").instance("stsTime5").operation = "A * x"// value changed://    old  stsTime5.unit type = "Not time based"//    new  stsTime5.unit type = "High resolution time based"prog.module("STS").instance("stsTime5").unitType = "High resolution time based"// value changed://    old  stsTime5.comment = "<add comments here>"//    new  stsTime5.comment = "STS object 5 for execution time measurements"prog.module("STS").instance("stsTime5").comment = "STS object 5 for execution time measurements"// value changed://    old  stsTime6.host operation = "Nothing"//    new  stsTime6.host operation = "A * x"prog.module("STS").instance("stsTime6").operation = "A * x"// value changed://    old  stsTime6.unit type = "Not time based"//    new  stsTime6.unit type = "High resolution time based"prog.module("STS").instance("stsTime6").unitType = "High resolution time based"// value changed://    old  stsTime6.comment = "<add comments here>"//    new  stsTime6.comment = "STS object 6 for execution time measurements"prog.module("STS").instance("stsTime6").comment = "STS object 6 for execution time measurements"// value changed://    old  stsTime7.host operation = "Nothing"//    new  stsTime7.host operation = "A * x"prog.module("STS").instance("stsTime7").operation = "A * x"// value changed://    old  stsTime7.unit type = "Not time based"//    new  stsTime7.unit type = "High resolution time based"prog.module("STS").instance("stsTime7").unitType = "High resolution time based"// value changed://    old  stsTime7.comment = "<add comments here>"//    new  stsTime7.comment = "STS object 7 for execution time measurements"prog.module("STS").instance("stsTime7").comment = "STS object 7 for execution time measurements"// value changed://    old  stsTime8.host operation = "Nothing"//    new  stsTime8.host operation = "A * x"prog.module("STS").instance("stsTime8").operation = "A * x"// value changed://    old  stsTime8.unit type = "Not time based"//    new  stsTime8.unit type = "High resolution time based"prog.module("STS").instance("stsTime8").unitType = "High resolution time based"// value changed://    old  stsTime8.comment = "<add comments here>"//    new  stsTime8.comment = "STS object 8 for execution time measurements"prog.module("STS").instance("stsTime8").comment = "STS object 8 for execution time measurements"// value changed://    old  stsTime9.host operation = "Nothing"//    new  stsTime9.host operation = "A * x"prog.module("STS").instance("stsTime9").operation = "A * x"// value changed://    old  stsTime9.unit type = "Not time based"//    new  stsTime9.unit type = "High resolution time based"prog.module("STS").instance("stsTime9").unitType = "High resolution time based"// value changed://    old  stsTime9.comment = "<add comments here>"//    new  stsTime9.comment = "STS object 9 for execution time measurements"prog.module("STS").instance("stsTime9").comment = "STS object 9 for execution time measurements"// value changed://    old  SYS.Putc Function = prog.decl("UTL_doPutc")//    new  SYS.Putc Function = prog.decl("FXN_F_nop")prog.module("SYS").PUTCFXN = prog.decl("FXN_F_nop")// Warning udevCodec.iParams tags do not match // value changed://    old  udevCodec.device params ptr = 0//    new  udevCodec.device params ptr = prog.decl("TEB6416_DEVPARAMS")prog.module("UDEV").instance("udevCodec").params = prog.decl("TEB6416_DEVPARAMS")// value changed://    old  udevCodec.function table type = "DEV_Fxns"//    new  udevCodec.function table type = "IOM_Fxns"prog.module("UDEV").instance("udevCodec").fxnTableType = "IOM_Fxns"// Warning udevCodec.iFxns tags do not match // value changed://    old  udevCodec.function table ptr = 0//    new  udevCodec.function table ptr = prog.decl("TEB6416_EDMA_PCM3002_FXNS")prog.module("UDEV").instance("udevCodec").fxnTable = prog.decl("TEB6416_EDMA_PCM3002_FXNS")// Warning udevCodec.iInit tags do not match // value changed://    old  udevCodec.init function = 0//    new  udevCodec.init function = prog.decl("TEB6416_EDMA_PCM3002_init")prog.module("UDEV").instance("udevCodec").initFxn = prog.decl("TEB6416_EDMA_PCM3002_init")// value changed://    old  dioCodec.comment = "<add comments here>"//    new  dioCodec.comment = "DIO Adapter for IOM Codec driver"prog.module("DIO").instance("dioCodec").comment = "DIO Adapter for IOM Codec driver"assert.add('prog.module("HWI").instance("HWI_INT9").useDispatcher == 1')assert.add('prog.module("HWI").instance("HWI_INT9").fxn == prog.decl("RTDX_Poll")')assert.add('prog.module("HWI").instance("HWI_INT9").interruptSource == prog.get("JTAGRTDX9")')assert.add('prog.module("HWI").instance("HWI_INT14").interruptSource == prog.get("Timer_0")')// check any and all asserts added in the script aboveassert.check();prog.gen("app");

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -