Line 1... |
Line 1... |
/*!
|
/*!
|
intraffic -- example showing how the EZ-USB FIFO interface is used on ZTEX USB FPGA Module 1.2
|
intraffic -- example showing how the EZ-USB FIFO interface is used on ZTEX USB-FPGA Module 1.2
|
Copyright (C) 2009-2010 ZTEX e.K.
|
Copyright (C) 2009-2011 ZTEX GmbH.
|
http://www.ztex.de
|
http://www.ztex.de
|
|
|
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
it under the terms of the GNU General Public License version 3 as
|
it under the terms of the GNU General Public License version 3 as
|
published by the Free Software Foundation.
|
published by the Free Software Foundation.
|
Line 19... |
Line 19... |
#include[ztex-conf.h] // Loads the configuration macros, see ztex-conf.h for the available macros
|
#include[ztex-conf.h] // Loads the configuration macros, see ztex-conf.h for the available macros
|
#include[ztex-utils.h] // include basic functions
|
#include[ztex-utils.h] // include basic functions
|
|
|
// 1024 (instead of 512) byte bulk transfers.
|
// 1024 (instead of 512) byte bulk transfers.
|
// According to USB standard they are invalid but usually supported and 25% faster.
|
// According to USB standard they are invalid but usually supported and 25% faster.
|
#define[fastmode]
|
//#define[fastmode]
|
|
|
#ifdef[fastmode]
|
#ifdef[fastmode]
|
// configure endpoint 2, in, quad buffered, 1024 bytes, interface 0
|
// configure endpoint 2, in, quad buffered, 1024 bytes, interface 0
|
EP_CONFIG(2,0,BULK,IN,1024,4);
|
EP_CONFIG(2,0,BULK,IN,1024,4);
|
#else
|
#else
|