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

📄 jpeg.tci

📁 TI evm642的源码,给那些没有买TI的评估板,却想要评估板程序的人.
💻 TCI
字号:
/*
 *  ======== video_jpeg.tci ========
 */

/*
 * ========= cache control ========= 
*/
tibios.GBL.C641XCONFIGUREL2 = false;  /* disable L2 configuration */


/*
 * ======== user init function ========
 */ 
tibios.GBL.CALLUSERINITFXN = true;
tibios.GBL.USERINITFXN = prog.extern("dm642_init");

/*
 * ========= STS ==================
 */              
var stsCycleTime = tibios.STS.create("stsCycleTime");   
var stsDispTime = tibios.STS.create("stsDispTime");
var stsExeTimeChJpegDec = tibios.STS.create("stsExeTimeChJpegDec");
var stsExeTimeChJpegEnc = tibios.STS.create("stsExeTimeChJpegEnc");
var stsCapTime = tibios.STS.create("stsCapTime");

stsCycleTime.unitType = "High resolution time based";
stsDispTime.unitType = "High resolution time based";
stsExeTimeChJpegDec.unitType = "High resolution time based";
stsExeTimeChJpegEnc.unitType = "High resolution time based";
stsCapTime.unitType = "High resolution time based";

/*
 * ============ MBX ====================
 */ 
var mbxProcess = tibios.MBX.create("mbxProcess");            
mbxProcess.messageSize = 20;
mbxProcess.length = 5;



/*
 * =========== GIO ===========
 */
tibios.GIO.ENABLEGIO = 1;

/* 
 * =========== MEM ===========
 */
tibios.ISRAM.createHeap      = true;
tibios.ISRAM.base            = 0x08;
tibios.ISRAM.len             = 0x1fff8;
tibios.ISRAM.heapSize        = 0x00016800; 
tibios.ISRAM.enableHeapLabel = true;  
tibios.ISRAM.heapLabel       = prog.extern( "intHeap" );

tibios.SDRAM.createHeap      = true;
tibios.SDRAM.heapSize        = 0x00c00000;  /* 768k */
tibios.SDRAM.enableHeapLabel = true;  
tibios.SDRAM.heapLabel       = prog.extern( "extHeap" );


/*
 * ============ videoport Device Table ===========
 */
var vp0_capture = tibios.UDEV.create("VP0CAPTURE");
vp0_capture.fxnTable = prog.decl("VPORTCAP_Fxns");
vp0_capture.fxnTableType = "IOM_Fxns";
vp0_capture.params = prog.extern("EVMDM642_vCapParamsPort", "C")
vp0_capture.deviceId = 0;

var vp2_display = tibios.UDEV.create("VP2DISPLAY");
vp2_display.fxnTable = prog.decl("VPORTDIS_Fxns");
vp2_display.fxnTableType = "IOM_Fxns";
vp2_display.params = prog.extern("EVMDM642_vDisParamsPort", "C")
vp2_display.deviceId = 2;

/*
 * ======== tasks ========
 */
var tskControl = tibios.TSK.create("tskControl");
tskControl.comment = "control task";
tskControl.fxn = prog.extern("thrControlRun");
tskControl.priority = 1;


var tskInput = tibios.TSK.create("tskInput");
tskInput.comment = "video input";
tskInput.fxn = prog.extern("tskVideoInput");
tskInput.priority = 5;     
tskInput.stackSize = 16384;

var tskOutput = tibios.TSK.create("tskOutput");
tskOutput.comment = "video output";
tskOutput.fxn = prog.extern("tskVideoOutput");
tskOutput.priority = 5;
tskOutput.stackSize = 16384;

var tskVideoProcess = tibios.TSK.create("tskVideoProcess");
tskVideoProcess.comment = "video processing";
tskVideoProcess.fxn = prog.extern("tskProcess");
tskVideoProcess.priority = 5;
tskVideoProcess.stackSize = 32000;

⌨️ 快捷键说明

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