sio_usbtest.tci
上传用户:dahaojd
上传日期:2008-01-29
资源大小:14357k
文件大小:1k
- /*
- * ======== sio_usbtest.tci ========
- * This file is used for textual configuration of DSP/BIOS as an alternative
- * or in addition to the traditional graphical configuration tool (GCONF).
- * For more information on textual configuration and the TCONF utility,
- * please refer to the DSP/BIOS TextConf User's Guide (SPRU007).
- */
- /*
- * ======== tskEcho ========
- */
- var tskEcho = tibios.TSK.create("TSK0");
- tskEcho.comment = "USB Echo Task";
- tskEcho.fxn = prog.extern("myUsbTask");
- tskEcho.priority = 1;
- /*
- * ======== udevUsb ========
- */
- var udevUsb = tibios.UDEV.create("udevUsb");
- udevUsb.fxnTable = prog.extern("C5509_USB_Fxns");
- udevUsb.initFxn = prog.extern("C5509_USB_init");
- udevUsb.fxnTableType = "IOM_Fxns";
- udevUsb.params = prog.extern("usbDevParams");
- tibios.GIO.ENABLEGIO = 1;
- /*
- * Add instance of DIO object to use the configured USB device.
- * This is the device SIO streams use.
- */
- var dioUsb = tibios.DIO.create("dioUsb");
- dioUsb.comment = "DIO Adapter for IOM Codec driver" ;
- dioUsb.deviceName = prog.get("udevUsb");
- dioUsb.useCallBackFxn = false;
- dioUsb.chanParams = null;
- /*
- * ======== semaphore for device connect ========
- * Semaphare gets posted when USB host requests
- * USB device configuration info from DSP. After
- * this semaphore gets posted the application is free to
- * send USB data.
- */
- var deviceConnect = tibios.SEM.create("usbDeviceConnect");
- deviceConnect.comment = "USB device connect semaphore";