资源简介

usb2.0芯片cy68013,bulk传输slave fifo模式,FPGA控制器代码+配套固件源码,附使用说明书和测试例程,已调试成功,下载即可应用到工程中。

资源截图

代码片段和文件信息

//-----------------------------------------------------------------------------
//   File:      fw.c
//   Contents:   Firmware frameworks task dispatcher and device request parser
//            source.
//
// indent 3.  NO TABS!
//
// $Revision: 18 $
// $Date: 12/04/01 5:33p $
//
//   Copyright (c) 1997 AnchorChips Inc. All rights reserved
//-----------------------------------------------------------------------------
#include “fx2.h“
#include “fx2regs.h“

//-----------------------------------------------------------------------------
// Constants
//-----------------------------------------------------------------------------
#define DELAY_COUNT   0x9248*8L  // Delay for 8 sec at 24Mhz 4 sec at 48
#define _IFREQ  48000            // IFCLK constant for Synchronization Delay
#define _CFREQ  48000            // CLKOUT constant for Synchronization Delay

//-----------------------------------------------------------------------------
// Random Macros
//-----------------------------------------------------------------------------
#define   min(ab) (((a)<(b))?(a):(b))
#define   max(ab) (((a)>(b))?(a):(b))

  // Registers which require a synchronization delay see section 15.14
  // FIFORESET        FIFOPINPOLAR
  // INPKTEND         OUTPKTEND
  // EPxBCH:L         REVCTL
  // GPIFTCB3         GPIFTCB2
  // GPIFTCB1         GPIFTCB0
  // EPxFIFOPFH:L     EPxAUTOINLENH:L
  // EPxFIFOCFG       EPxGPIFFLGSEL
  // PINFLAGSxx       EPxFIFOIRQ
  // EPxFIFOIE        GPIFIRQ
  // GPIFIE           GPIFADRH:L
  // UDMACRCH:L       EPxGPIFTRIG
  // GPIFTRIG
  
  // Note: The pre-REVE EPxGPIFTCH/L register are affected as well...
  //      ...these have been replaced by GPIFTC[B3:B0] registers
  
#include “fx2sdly.h“             // Define _IFREQ and _CFREQ above this #include

//-----------------------------------------------------------------------------
// Global Variables
//-----------------------------------------------------------------------------
volatile BOOL   GotSUD;
BOOL      Rwuen;
BOOL      Selfpwr;
volatile BOOL   Sleep;                  // Sleep mode enable flag

WORD   pDeviceDscr;   // Pointer to Device Descriptor; Descriptors may be moved
WORD   pDeviceQualDscr;
WORD   pHighSpeedConfigDscr;
WORD   pFullSpeedConfigDscr;   
WORD   pConfigDscr;
WORD   pOtherConfigDscr;   
WORD   pStringDscr;   

//-----------------------------------------------------------------------------
// Prototypes
//-----------------------------------------------------------------------------
void SetupCommand(void);
void TD_Init(void);
void TD_Poll(void);
BOOL TD_Suspend(void);
BOOL TD_Resume(void);

BOOL DR_GetDescriptor(void);
BOOL DR_SetConfiguration(void);
BOOL DR_GetConfiguration(void);
BOOL DR_SetInterface(void);
BOOL DR_GetInterface(void);
BOOL DR_GetStatus(void);
BOOL DR_ClearFeature(void);
BOOL DR_SetFeature(void);
BOOL DR_VendorCmnd(void);

// this table is used by the epcs macro 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件         60  2018-08-03 11:09  usb2_high_controller\code\parameter_def.v

     文件        406  2018-08-09 16:12  usb2_high_controller\code\resetn_delay.v

     文件       1618  2018-08-09 16:31  usb2_high_controller\code\syspll_ipcore\greybox_tmp\cbx_args.txt

     文件        624  2018-08-09 16:47  usb2_high_controller\code\syspll_ipcore\syspll_ipcore.ppf

     文件        454  2018-08-09 16:47  usb2_high_controller\code\syspll_ipcore\syspll_ipcore.qip

     文件      18216  2018-08-09 16:47  usb2_high_controller\code\syspll_ipcore\syspll_ipcore.v

     文件      13849  2018-08-09 16:47  usb2_high_controller\code\syspll_ipcore\syspll_ipcore_bb.v

     文件       1606  2018-08-09 16:53  usb2_high_controller\code\test_top.v

     文件       3637  2018-08-10 09:41  usb2_high_controller\code\usb2_high_controller.v

     文件      60843  2018-08-10 09:42  usb2_high_controller\code\__Previews\test_top.vPreview

     文件     213725  2018-08-10 10:51  usb2_high_controller\cy68013控制器说明书.docx

     文件       7706  2013-03-10 21:43  usb2_high_controller\Firmware\dscr.a51

     文件      16148  2013-03-10 21:43  usb2_high_controller\Firmware\dscr.LST

     文件       1056  2013-03-10 21:43  usb2_high_controller\Firmware\dscr.OBJ

     文件         31  2013-03-10 21:43  usb2_high_controller\Firmware\dscr._ia

     文件      36421  2002-09-16 19:46  usb2_high_controller\Firmware\EZUSB.LIB

     文件     125187  2013-03-10 21:43  usb2_high_controller\Firmware\Firmware

     文件       6789  2013-03-10 21:43  usb2_high_controller\Firmware\Firmware.hex

     文件       2168  2013-03-10 21:43  usb2_high_controller\Firmware\Firmware.iic

     文件        139  2013-03-10 21:43  usb2_high_controller\Firmware\Firmware.lnp

     文件     103338  2013-03-10 21:43  usb2_high_controller\Firmware\Firmware.M51

     文件       1542  2018-08-08 09:57  usb2_high_controller\Firmware\Firmware.Opt

     文件        183  2018-08-08 10:02  usb2_high_controller\Firmware\Firmware.plg

     文件       2293  2013-03-10 16:21  usb2_high_controller\Firmware\Firmware.Uv2

     文件       1546  2018-08-07 16:19  usb2_high_controller\Firmware\Firmware_Opt.Bak

     文件       2312  2013-02-18 00:05  usb2_high_controller\Firmware\Firmware_Uv2.Bak

     文件      13255  2012-06-29 17:21  usb2_high_controller\Firmware\fw.c

     文件      19730  2013-03-10 21:43  usb2_high_controller\Firmware\fw.LST

     文件      55834  2013-03-10 21:43  usb2_high_controller\Firmware\fw.OBJ

     文件      13548  2012-06-29 17:20  usb2_high_controller\Firmware\Fx2.h

............此处省略24个文件信息

评论

共有 条评论