www.pudn.com > sdr.rar > DSK_APP.TCF


/* 
 *  ======== dsk_app.tcf ======== 
 * 
 *! Revision History 
 *! ================ 
 *! 18-Feb-2003 mw Created. 
 * 
 * To create dsk_app.cdb, run Dosrun.bat in your Code Composer install 
 * directory then go to the example directory and type the following at 
 * the command line: 
 * 
 * tconf -Dconfig.importPath="%TI_DIR%\c6000\dsk6713\include"  
 *       -Dconfig.tiRoot="%TI_DIR%" dsk_app.tcf 
 *  
 */ 
 
/* Load 6713 DSK platform */ 
utils.loadPlatform("Dsk6713"); 
 
/* Get program objects */ 
utils.getProgObjs(prog); 
 
/* Enable all heaps, RTDX, Real Time Analysis, and the Task Mangager */ 
bios.enableFullBios(prog); 
 
/* Set CPU frequency to 225MHz */ 
GBL.CLKOUT = 225.0000; 
 
/* Disable Task Manager */ 
TSK.ENABLETSK = 0; 
 
/* Enable RTDX */ 
RTDX.ENABLERTDX = 1; 
HST.HOSTLINKTYPE = "RTDX"; 
 
/* Add processBuffer SWI */ 
processBufferSwi = SWI.create("processBufferSwi"); 
processBufferSwi.fxn = prog.extern("processBuffer"); 
processBufferSwi.priority = 2; 
 
/* Insert edmaHwi ISR */ 
HWI_INT8.interruptSource = EDMA_Controller; 
HWI_INT8.fxn = prog.extern("edmaHwi"); 
HWI_INT8.useDispatcher = 1; 
 
/* Define the PRD blinkLed */ 
var blinkLED = PRD.create("PRD_blinkLED"); 
blinkLED.comment = "Toggles LED #0 every 500ms"; 
blinkLED.fxn = prog.extern("blinkLED"); 
blinkLED.period = 500; 
 
/* Define the PRD load */ 
var load = PRD.create("PRD_load"); 
load.comment = "Dummy Load"; 
load.fxn = prog.extern("load"); 
load.period = 10; 
 
/* Generate .cdb file */ 
prog.gen();