sio_usbtest.tci

来自「DSP/BIOS Driver Developer Kit 1.11 The 」· TCI 代码 · 共 48 行

TCI
48
字号
/* *  ======== 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";

⌨️ 快捷键说明

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