1 /******************************************************************************
2 ** File Name: model.c *
3 ** Author: Daniel.Ding *
5 ** Copyright: 2005 Spreatrum, Incoporated. All Rights Reserved. *
7 *****************************************************************************/
8 /******************************************************************************
10 **---------------------------------------------------------------------------*
11 ** DATE NAME DESCRIPTION *
12 ** 3/25/2005 Daniel.Ding Create. *
13 *****************************************************************************/
14 /*----------------------------------------------------------------------------*
16 **---------------------------------------------------------------------------*/
18 #include <asm/arch/usb200_fdl.h>
20 /**---------------------------------------------------------------------------*
22 **---------------------------------------------------------------------------*/
28 /*--------------------------- Local Data ------------------------------------*/
29 __align (4) const uint8 DeviceDescrSerial[] =
31 0x12, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x40,
32 0x82, 0x17, 0x00, 0x4d, 0x02, 0x02, 0x00, 0x00,
34 0x00, 0x00 // insert 2byte to becom one multip 4byte packet
37 __align (4) const uint8 ConfigDescrSerial_64[] =
39 0x09,0x02,0x20,0x00,0x01,0x01,0x00,0xc0,
41 0x09,0x04,0x00,0x00,0x02,0xff,0x00,0x00,
43 0x07,0x05,0x85,0x02,0x40,0x00,0x00, //Ep 1 In 64
44 0x07,0x05,0x06,0x02,0x40,0x00,0x00 //Ep 2 OUT 64
49 /*****************************************************************************/
51 // Global resource dependence:
52 // Author: Daniel.Ding
54 /*****************************************************************************/
55 uint8 *UCOM_Get_DevDesc()
57 return (uint8 *) DeviceDescrSerial;
59 /*****************************************************************************/
61 // Global resource dependence:
62 // Author: Daniel.Ding
64 /*****************************************************************************/
66 uint8 *UCOM_Get_CfgDesc()
68 return (uint8 *) ConfigDescrSerial_64;
71 /**---------------------------------------------------------------------------*
73 **---------------------------------------------------------------------------*/