1 /******************************************************************************
2 ** File Name: common.h *
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 ******************************************************************************/
16 /*----------------------------------------------------------------------------*
18 **-------------------------------------------------------------------------- */
21 //#include "sc6600m_reg.h"
22 #include "usb200_fdl.h"
23 /**---------------------------------------------------------------------------*
25 **---------------------------------------------------------------------------*/
30 /**----------------------------------------------------------------------------*
32 **----------------------------------------------------------------------------*/
33 #define USB_RECV_LIMIT (0x400)
35 /**----------------------------------------------------------------------------*
37 **----------------------------------------------------------------------------*/
39 typedef struct USB_rx_buf_tag
41 volatile unsigned int read;
42 volatile unsigned int write;
43 volatile unsigned char usb_rx_buf[USB_RECV_LIMIT];
44 } USB_rx_buf_T, *USB_rx_buf_P;
46 /**----------------------------------------------------------------------------*
47 ** Function Prototype **
48 **----------------------------------------------------------------------------*/
49 /*****************************************************************************/
51 // Global resource dependence:
52 // Author: Daniel.Ding
54 /*****************************************************************************/
55 void USB_Init (unsigned long ext_clk26M);
56 /*****************************************************************************/
58 // Global resource dependence:
59 // Author: Daniel.Ding
61 /*****************************************************************************/
62 int USB_EPxSendData (char ep_id ,unsigned int *pBuf,int len);
64 /**----------------------------------------------------------------------------*
66 **----------------------------------------------------------------------------*/
70 /**---------------------------------------------------------------------------*/