usbtest_params.c
上传用户:dahaojd
上传日期:2008-01-29
资源大小:14357k
文件大小:1k
- /*
- * Copyright 2003 by Texas Instruments Incorporated.
- * All rights reserved. Property of Texas Instruments Incorporated.
- * Restricted rights to use, duplicate or disclose this code are
- * granted through contract.
- *
- */
- /* "@(#) DDK 1.10.00.23 07-02-03 (ddk-b12)" */
- /*
- * ======== usbtest_params.c ========
- * C5509_USB IOM default driver parameters
- */
- #include <std.h>
- #include <c5509_usb.h>
- extern C5509_USB_DeviceConfig myDeviceConfig; /* device configuration */
- extern C5509_USB_IfcConfig myIfcConfig; /* USB endpoint configuration */
- /*
- * ======== usbDevParams ========
- * Device configuration structure.
- * Application program must correctly initialize devParams structure.
- * It is passed to C5509_USB_mdBindDev() to initialize the usb device.
- */
- C5509_USB_DevParams usbDevParams = {
- C5509_USB_VERSION_1, /* version number 1 */
- C5509_USB_IER0MASKDEFAULT, /* ier0mask=1 mask self(USB) intr */
- C5509_USB_IER1MASKDEFAULT, /* ier1mask=1 " */
- C5509_USB_INCLK12MHZ, /* inclk, input clock is 12 Mhz */
- C5509_USB_PLLDIVDEFAULT, /* plldiv, PLL divide value = 0 */
- C5509_USB_PSOFTMRCNTDEFAULT, /* pSofTmrCnt = 128 */
- &myDeviceConfig, /* USB device configuration */
- &myIfcConfig /* USB interface endpoints configuration */
- };