tsk_audio.tci
上传用户:dahaojd
上传日期:2008-01-29
资源大小:14357k
文件大小:1k
- /*
- * ======== tsk_audio.tci ========
- */
- /*
- * Import the board specific MEM creation, setup and placement
- */
- utils.importFile(platformName + "_ddk.tci");
- /*
- * Import the board specific IOM driver configuration
- */
- utils.importFile(platformName + "_udevCodec.tci");
- /*
- * Override the default params values for IOM uDevCodec
- */
- udevCodec.params =
- prog.extern(platformName.toUpperCase() + "_CODEC_DEVPARAMS");
- /*
- * Add instance of DIO object to use the configured codec. This is the device
- * SIO streams use.
- */
- var dioCodec = tibios.DIO.create("dioCodec");
- dioCodec.comment = "DIO Adapter for IOM Codec driver" ;
- dioCodec.deviceName = prog.get("udevCodec");
- dioCodec.useCallBackFxn = false;
- dioCodec.chanParams = null;
- /*
- * ======== tskEcho ========
- */
- var tskEcho = tibios.TSK.create("tskEcho");
- tskEcho.comment = "Echo Task";
- tskEcho.fxn = prog.extern("echo");
- tskEcho.priority = 1;
- /*
- * ======== prd10000 ========
- * run 'prd10secs' every 10 seconds
- */
- var prd10000 = tibios.PRD.create("prd10000");
- prd10000.comment = "10 second periodic function"
- prd10000.fxn = prog.extern("prd10secs");
- prd10000.period = 10000; /* 10 seconds */